日期:2014-05-18  浏览次数:20489 次

验证码不是不能更新,而是先要点击服务器控件刷新页面后才能更新(奇怪的不得不问高手)
如题,如果那样的话验证码的更新也没什么意思了,还不如按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> &nbsp; </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> &nbsp; </td>
</tr>