不从@ url.action输入控制器

时间:2018-07-26 15:03:40

标签: c# asp.net-mvc

我有问题,它什么也没有退还给我,也没有进入我的控制器。有人知道为什么

<div class="col-xs-12 input-group input-group-sm">
    <span  style="padding: 2px 20px 0px 50px;"><strong>Ingrese Código de la Imagen:</strong></span>
    <div class="form-validator" style="padding: 2px 10px 0px 350px;">
        <div style="float: left;">
            <img id="CaptchaImg" src="@Url.Action("ShowCaptchaImage", "Account", new { random = Guid.NewGuid().ToString() })" alt="" />&nbsp;&nbsp;
        </div>
        <div style="float: left;">
            <img alt="" src="" class="invoice img_refresh" id="refresh" onclick="RecargaCaptcha('@Url.Action("ShowCaptchaImage", "Account")');" />
        </div>
        @Html.TextBoxFor(m => m.PasswordNuevo, new { @class = "form-control input-sm", style = "width:500px;" })
    </div>
</div>

我的控制器:

[Authorize]
[OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]
public CaptchaImageResult ShowCaptchaImage(string random)
{
    return new CaptchaImageResult();
}

0 个答案:

没有答案