如题,如果那样的话验证码的更新也没什么意思了,还不如按F5把代码贴在下面<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="admin_Login" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta http-equiv="Content-Language" content="zh-cn" />
<title>后台登录页面</title>
<link href="../Styleshop.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.foot {
background-image: url('images/loginfoot.gif');
}
.login {
text-align: right;
color:#008080;
height: 25px;
}
</style>
<script language ="javascript" type ="text/javascript" >
function getnewcode(Id)
{
document.getElementById (Id).src="Images.aspx";
}
</script>
</head><body>
<form id="form1" runat="server">
<div>
<table style="width: 100%; height: 158px" cellspacing="0" cellpadding="0">
<tr>
<td style="height: 119px">
<table style="width: 100%" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="3" style="height: 70px"></td>
</tr>
<tr>
<td colspan="3">
<img alt="" src="images/login1.gif" width="582" height="256" /></td>
</tr>
<tr>
<td> </td>
<td style="height: 139px; width: 582px" class="foot">
<table style="width: 100%" cellspacing="0" cellpadding="0" >
<tr>
<td style="height: 25px; width: 195px" class="login">
用户名:</td>
<td style="width: 200px">
<asp:TextBox runat="server" id="TextName" BorderColor="Teal" BorderWidth="1px" BorderStyle="Solid" Width="130px">
</asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td style="height: 25px; width: 195px" class="login">
密 码:</td>
<td style="width: 200px">
<asp:TextBox runat="server" id="TextPwd" BorderColor="Teal" BorderWidth="1px" TextMode="Password" BorderStyle="Solid" Width="130px">
</asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td style="height: 25px; width: 195px" class="login">
验证码:</td>
<td style="width: 200px">
<asp:TextBox runat="server" id="TextVerifyCode" BorderColor="Teal" BorderWidth="1px" BorderStyle="Solid" Width="130px">
</asp:TextBox>
</td>
<td align="left" >
<img id ="imgverify" alt ="点击刷新验证码图片" src = "Images.aspx" onclick ="getnewcode('imgverify')"/></td>
</tr>
<tr>
<td style="width: 195px"> </td>
<td style="width: 200px">
<asp:ImageButton runat="server" id="LoginBtn" ImageUrl="images/loginbtn.gif" />
<asp:ImageButton runat="server" id="Clear" ImageUrl="images/loginclear.gif" /></td>
<td align="left">点击刷新验证码</td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
<head runat="server">
<meta http-equiv="Content-Language" content="zh-cn" />
<title>后台登录页面</title>
<link href="../Styleshop.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.foot {
background-image: url('images/loginfoot.gif');
}
.login {
text-align: right;
color:#008080;
height: 25px;
}
</style>
<script language ="javascript" type ="text/javascript" >
function getnewcode(Id)
{
document.getElementById (Id).src="Images.aspx";
}
</script>
</head><body>
<form id="form1" runat="server">
<div>
<table style="width: 100%; height: 158px" cellspacing="0" cellpadding="0">
<tr>
<td style="height: 119px">
<table style="width: 100%" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="3" style="height: 70px"></td>
</tr>
<tr>
<td colspan="3">
<img alt="" src="images/login1.gif" width="582" height="256" /></td>
</tr>
<tr>
<td> </td>
<td style="height: 139px; width: 582px" class="foot">
<table style="width: 100%" cellspacing="0" cellpadding="0" >
<tr>
<td style="height: 25px; width: 195px" class="login">
用户名:</td>
<td style="width: 200px">
<asp:TextBox runat="server" id="TextName" BorderColor="Teal" BorderWidth="1px" BorderStyle="Solid" Width="130px">
</asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td style="height: 25px; width: 195px" class="login">
密 码:</td>
<td style="width: 200px">
<asp:TextBox runat="server" id="TextPwd" BorderColor="Teal" BorderWidth="1px" TextMode="Password" BorderStyle="Solid" Width="130px">
</asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td style="height: 25px; width: 195px" class="login">
验证码:</td>
<td style="width: 200px">
<asp:TextBox runat="server" id="TextVerifyCode" BorderColor="Teal" BorderWidth="1px" BorderStyle="Solid" Width="130px">
</asp:TextBox>
</td>
<td align="left" >
<img id ="imgverify" alt ="点击刷新验证码图片" src = "Images.aspx" onclick ="getnewcode('imgverify')"/></td>
</tr>
<tr>
<td style="width: 195px"> </td>
<td style="width: 200px">
<asp:ImageButton runat="server" id="LoginBtn" ImageUrl="images/loginbtn.gif" />
<asp:ImageButton runat="server" id="Clear" ImageUrl="images/loginclear.gif" /></td>
<td align="left">点击刷新验证码</td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
解决方案 »
- MVC ActionLink跳转到其他页面 问题
- 移除字符串的问题
- 如何设置母版页content的title
- 什么是委托??
- 关于Duwamish7的一个问题
- 水晶报表中的切换字段视图按钮~~~
- I am sent abroad by the company. And suddenly having that error message... Waiting online...
- 关于页面传值
- 100分相送:请教网站压力测试的工具。
- 连不上数据库,给为再给看看,多谢了
- 小妹问一个菜鸟问题:关于数据库登录,PostBackUrl
- 那个好心的同志帮忙看一下,GridView中的数据导出到客户端excel文件出错
Response.Expires = -100
{
document.getElementById (Id).src="Images.aspx?t="+(new Date()).getTime();
}
问题解决。两种答案都正确
能不能说说其中的原因?