Switching Pages

Sometimes there is a need in dynamic switching to another page without using the Site Navigation Control (that you will study later). In addition to Server.Transfer there are other options for simple page switching. The most common include Response.Redirect method and HyperLink control. 

Response.Redirect can also be used for total switching to another site or subsection of the current site like some of  you might want to do in merged projects for ASP.NET and open source technologies from TEB:
Response.Redirect (http://moodle.ramapo.edu)

Read more about it in http://weblogs.asp.net/scottgu/archive/2010/01/05/asp-net-4-seo-improvements-vs-2010-and-net-4-0-series.aspx

The HyperLink control looks like a usual url link (which also can be used when clicked) but can be programmed and has a number of attributes. It can be used as following:

<asp:HyperLink Runat="Server"
  Text="Go to my next page"
  NavigateUrl="http://www.microsoft.com"
  Target="_blank"/>


Finally, for those who would want to ge a bit deeper than the course requires, – there is a new possibility in ASP.NET 4.0 Web Forms of doing the page routing modern style by using friendly page names. Read more about it in http://weblogs.asp.net/scottgu/archive/2010/01/05/asp-net-4-seo-improvements-vs-2010-and-net-4-0-series.aspx