Click here to Skip to main content
15,888,009 members
Please Sign up or sign in to vote.
1.62/5 (3 votes)
See more:
HOW TO REDIRECT 1 FORM TO ANOTHER FORM IN ASP.NET WITH C#.?

I MADE APPLICATION SO I USE FORM AND HOW TO REDIRECT FORM.
E.G(CLICK LOGIN THEN REDIRECT NEXT FORM.)
IN WEBSITE I USE RESPONSE.REDIRECT("");
Posted

1 solution

Asp.Net

Write following code to Redirect to Next Page from Login Page.
C#
Response.Redirect("NextPage.aspx");

Here NextPage.aspx Should be in the same project folder.
Otherwise, you need to provide the relative path of the page.


Windows Form

If you are asking about Windows Forms, then do like below.

First you need to create a object of the Form and then show it.
C#
NextForm form = new NextForm();
form.Show():
 
Share this answer
 
v3
Comments
rushabh10693 7-Nov-13 10:07am    
bt i use form.
You have tagged your question with Asp.Net. So, I gave you this answer.

If you are asking about Windows Forms, then do like below.

First you need to create a object of the Form and then show it.

NextForm form = new NextForm();
form.Show():
rushabh10693 8-Nov-13 0:51am    
Thanks its work...
Most welcome. My pleasure. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900