I have a page signup.aspx where user can register, how this page will find from which page request came from and how it will redirect user after registration to the requesting page, i want to do this using query string but don't know how PLZ SHOW ME CODES. i am a beginner plz help. Thanks

let's say you are at abc.aspx. Upon detecting user is not authenticated you perform the following code to redirect user to signup.aspx

Response.Redirect("signup.aspx?from_page=abc.aspx");

User is being redirect to signup.aspx. On the page load event you may want to capture the information where this user belong by

protected void Page_Load(object sender, EventArgs e)
{
     string originating_page = Request.QueryString["from_page"].ToString();
}

By having this information captured you may redirect user back to the originating page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.