首页 > Windows开发 > 详细

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

时间:2018-11-05 18:29:46      阅读:293      评论:0      收藏:0      [点我收藏+]

@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")" onclick="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>
}

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

原文:https://www.cnblogs.com/100234ltf/p/9910465.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!