日期:2014-05-17 浏览次数:20434 次
<td width="29%" align="right" class="nei1"><span id="cardpass1">验 证 码:</span></td>
<td width="71%" align="left"><input type="text" name="RndPassword" class="input" size="8" maxlength="4" dataType="LimitB" min="4" max="4" msg="输入验证码"> <script>document.write("<img id=imgVerify align=absMiddle style={cursor:hand;} src='Include/RandPass.asp?",Math.random(),"' onclick='javascript:changeRndImg();'>")</script> </td>
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
//生成验证码
string temp = this.GetCode(4);
HttpCookie cookie = new HttpCookie("yzm");
cookie.Value = temp;
Response.Cookies.Add(cookie);
//画图