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 RajputPosted Mar 11, 2015, 7:44 AM
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
KrishnaPosted Mar 11, 2015, 7:53 AM
KrishnaPosted Mar 11, 2015, 7:35 AM
Zishanali TailorPosted Mar 11, 2015, 7:10 AM
remove action="UserQuery.aspx" from form tag and then try.
Manish Kumar ChoudharyPosted Mar 11, 2015, 7:08 AM
KrishnaPosted Mar 11, 2015, 7:05 AM
Zishanali TailorPosted Mar 11, 2015, 7:02 AM
.aspx.cs code
protected void Button1_Click1(object sender, EventArgs e)
{
TextBox3.Text = "********";
TextBox4.Text = "******";
Response.Redirect("UserQuery.aspx");
}
Manish Kumar ChoudharyPosted Mar 11, 2015, 7:01 AM
Response.Redirect("~/UserQuery.aspx");