2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > C#_asp.net mvc 验证码功能的具体实现

C#_asp.net mvc 验证码功能的具体实现

时间:2020-03-19 22:36:17

相关推荐

C#_asp.net mvc 验证码功能的具体实现

@using (Html.BeginForm("Login", "HomePage",FormMethod.Post))

{

<h2>登录</h2><p class="tyg-p">欢迎访问 智慧能力</p>

<div style="margin:5px 0px;">

<input id="UserName" name="UserName" type="text" placeholder="请输入账号..." />

</div>

<div style="margin:5px 0px;">

<input id="Pwd" name="Pwd" type="password" placeholder="请输入密码..." />

</div>

<div style="margin:5px 0px;">

<input id="code" name="code" type="text" style="width:150px;" placeholder="请输入验证码..." />

<img id="CheckCodeImage" src="@Url.Content("~/Common/ValidateCode.ashx")" οnclick="this.src='@Url.Content("~/Common/ValidateCode.ashx")?time='+new Date().getTime()" style="cursor:pointer;" title="看不清?换一张" alt="看不清?换一张" />

</div>

<button type="submit">登<span style="width:20px;"></span>录</button>

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。