My html code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
.aspx.cs code
protected void Button1_Click1(object sender, EventArgs e)
{
TextBox3.Text = "********";
TextBox4.Text = "******";
Response.Redirect("http://localhost:number/UserQuery.aspx");
}
while clicking on the submit button on the web page its not getting navigate to the other page
thanks in advance


Khargesh RajputRank #616 · 3.9K reputationPosted Mar 11, 2015, 3:44 AM EDT
I think you need to use Regular expression
To debug code remove Range validator
Follow below link
http://www.aspsnippets.com/Articles/ASP.Net-Regular-Expression-Validator-to-validate-Minimum-and-Maximum-Text-Length.aspx
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 11, 2015, 3:01 AM EDT
Response.Redirect("~/UserQuery.aspx");
Zishanali Tailor4 reputationPosted Mar 11, 2015, 3:02 AM EDT
.aspx.cs code
protected void Button1_Click1(object sender, EventArgs e)
{
TextBox3.Text = "********";
TextBox4.Text = "******";
Response.Redirect("UserQuery.aspx");
}
Krishna39 reputationPosted Mar 11, 2015, 3:05 AM EDT
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 11, 2015, 3:08 AM EDT
Zishanali Tailor4 reputationPosted Mar 11, 2015, 3:10 AM EDT
remove action="UserQuery.aspx" from form tag and then try.
Krishna39 reputationPosted Mar 11, 2015, 3:35 AM EDT
Krishna39 reputationPosted Mar 11, 2015, 3:53 AM EDT