Home Page

UPDATE: 2010 Developer Action Plan The folks at LearnVisualStudio.NET have created a new Developer Action Plan packed with strategies and advice to help you get that elusive first .NET development job and also become an awesome ASP.NET developer. This action plan is perfect:

  • For those with little or no .NET experience, or...
  • For those with programming experience, but who feel like their skills are deteriorating or becoming stale

If you simply enter your email in the next 15 minutes, you will get:

  • A download link for the 2010 Developer Action Plan
  • 4 hours of free ASP.NET training videos you can watch from the comfort of your computer
==> Click HERE to get your gifts immediately. It's safe and easy. <==


Click here to download the source code for this lesson.

While developing in ASP.NET, a lot of functionality can be implemented using a single web form, but there are scenarios where multiple web forms are necessary.  A common example of this on the web is order forms on shopping web sites.  Order forms can typically be comprised of several web pages, each page requests different information from the user about the purchase.  One page may request shipping information, whereas another web page may request credit card information.

Normally when you add a Button control to an ASP.NET web form and create the Click event, the Button will postback to the same web form when it is clicked.  But suppose you want to bring up another web form when the Button is clicked.  You can accomplish this by using a redirect.  A redirect simply means you are sending a message to the browser, telling it to visit a different web page.

ASP.NET gives you access to a special object called the Response object.  The Response object contains a method called Redirect that you can use to perform the redirection to another web page.  You should pass the name of the web page to the Redirect method as a string parameter.


Response.Redirect("Page2.aspx");

Click here to watch an example video where I redirect from Page1.aspx to Page2.aspx

2 Comments »

  1. This is good stuff

    Comment by Lee Griffith — December 30, 2008 @ 3:02 pm

  2. superb……..

    Comment by pradeep — November 27, 2009 @ 2:38 am

RSS feed for comments on this post. TrackBack URL

Leave a comment