Tengo el siguiente codigo:
Código HTML:
<%@ control language="C#" autoeventwireup="true" inherits="Controls_Classic_LoginForm, AgentSite3" %> <% if(Request.remember == 1){ Response.Cookies ( "username" ) = Request.Account; Response.Cookies ( "password" ) = Request.Password; Response.Cookies ( "remember" ) = Request.remember; } %> <table border="0" cellpadding="2" cellspacing="0" width="70%"> <tr > <td align="right"><b class="fblue">Agent ID:</b></td> <td align="right"> <input type="text" name="Account" size="12" id="Account" style="width:115px;" value="<% if(Request.Cookies("Account") != "") Response.Write(Request.Cookies("Account")); else Response.Write(""); %>"/> </td> </tr> <tr> <td align="right"><b class="fblue">Password:</b></td> <td align="right"> <input type="password" name="Password" size="12" id="Password" style="width:115px;" value="<% if(Request.Cookies("Password") != "") Response.Write(Request.Cookies("Password")); else Response.Write(""); %>"/> </td> </tr> <tr> <td><input type="checkbox" name="remember" id="remember" value="1" checked="false"/></td> <td>Remember me</td> </tr> <tr> <td colspan="2" align="right"> <input type="submit" value="Login" class="btns" /> </td> </tr> <tr> <td colspan="2"> <font color="#FF0000"><%=ErrorMsg%></font> </td> </tr> </table>