Hola a todos...
Tengo la siguiente pagina aspx:
Código HTML:
<%@ control language="C#" autoeventwireup="true" inherits="Controls_Classic_LoginForm, AgentSite3" %>
<script type="text/javascript" lang="javascript">
function validateCookie() {
var acc = document.getElementById('Account');
var pass = document.getElementById('Password');
var reme = document.getElementById('remember');
if (acc.value != "" && pass.value != "" && reme.value == "1") {
windows.location = "../Controls/Classic/Cookies.aspx?acc='"+acc+"'&pass='"+pass+"'&reme="+reme;
}
}
</script>
<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("");
%>"/>
</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["pass"].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"));
%>/>
</td>
<td>Remember me</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="Login" class="btns" onclick="validateCookie();"/>
</td>
</tr>
<tr>
<td colspan="2">
<font color="#FF0000"><%=ErrorMsg%></font>
</td>
</tr>
</table>
Mi idea es con la funcion javascript que esta arriba redireccionar la pagina a otra llamada cookies.aspx cuando se de click al boton pero no me hace el redireccionamiento. Alguna ayudita ?