Código:
Deseo capturar el valor de los dos textbox y del checkbox y almacenarlos en las cookies que coloque al principio del codigo, alguna ayuda de como hacerlo por favor ? <%@ control language="C#" autoeventwireup="true" inherits="Controls_Classic_LoginForm, AgentSite3" %> <% Response.Cookies["user"].Value = Request.Form["Account"]; Response.Cookies["pass"].Value = Request.Form["Password"]; if(Request.Form["remember"] == "1") Response.Cookies["rememberMe"].Value = "1"; else Response.Cookies["rememberMe"].Value = null; %> <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["user"] != null) Response.Write(Server.HtmlEncode(Request.Cookies["user"].Value)); else Response.Write("Cookie vacia."); %>"/> </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["pass"] != null) Response.Write(Server.HtmlEncode(Request.Cookies["user"].Value)); else Response.Write(""); %>"/> </td> </tr> <tr> <td><input type="checkbox" name="remember" id="remember" value="1" <% if(Request.Cookies["rememberMe"] == null) Response.Write(Server.HtmlEncode("checked='false'")); else Response.Write(Server.HtmlEncode("checked='true'"));%>/> </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>