locked
A very basic question RRS feed

  • Question

  • User-1235235759 posted

     Hi everybody, I'm a Windows developer, so a web application is new for me. Now I'm trying to do my first one. My first basic question is this:

    I have a main page, how do I show another page?

    Thanks in advance.

     

    Wednesday, October 10, 2007 3:39 PM

Answers

  • User61600105 posted

     The easiest way to go from one page to another is to use Response.Redirect("newPageURL")

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 10, 2007 3:51 PM
  • User942311321 posted

    Hello,

    Response.Redirect("~/MySecondPage.aspx"); 

    You should check out this good tutorial that will get you started with web applications:

    http://msconline.maconstate.edu/tutorials/ASPNET20/default.htm 

     

    Hope this helps you get on your feet :) 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 10, 2007 3:54 PM

All replies

  • User61600105 posted

     The easiest way to go from one page to another is to use Response.Redirect("newPageURL")

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 10, 2007 3:51 PM
  • User942311321 posted

    Hello,

    Response.Redirect("~/MySecondPage.aspx"); 

    You should check out this good tutorial that will get you started with web applications:

    http://msconline.maconstate.edu/tutorials/ASPNET20/default.htm 

     

    Hope this helps you get on your feet :) 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 10, 2007 3:54 PM
  • User-1101627847 posted

    Page Methods provide a type safe way of navigating one from page to another

    Page Methods

    Wednesday, October 10, 2007 4:34 PM
  • User-429620783 posted

     I believe there is also the Server.Transfer("page2.aspx") method.

    Wednesday, October 10, 2007 4:47 PM
  • User1143081791 posted

    Hello C#,

    I think this is a very good online resource!

     

     

    Wednesday, October 10, 2007 5:56 PM
  • User-128772008 posted

    Both Response.Redirect and Server.Transfer can be used, but Response.Redirect is the more common. There are differences between using the two, however.

    I keep this link in my favorites, because I tend to forget the exact differences:

    http://www.developer.com/net/asp/article.php/3299641

    Wednesday, October 10, 2007 7:30 PM
  • User-1325633082 posted

    Perhaps you want to add a link from the main page to the next page.

    This is one example:

    In the aspx source you simply add

    <asp:HyperLink ID="link1" runat="server" NavigateUrl="NextPage.aspx" Text="View next page" />

     

    Thursday, October 11, 2007 6:36 AM