Simple windows forms question

Hi,

First off sorry if this is in the wrong forum but I think it is.

Ok the problem I have is that I would like to know how by pressing a button I can change between two pages. I am using visual studio and I have two web pages craeted called page 1 and page 2. In page one I have a button called "Go to page 2", so when I click it it will go to page 2, but how do I  do that

 private void button1_click(object sender, System.Event.args e)
{
//Need code to switch to page two
}

Thanks in advance for any help




Answer this question

Simple windows forms question

  • ramk

    private void button1_click(object sender, System.Event.args e)
    {
        Response.Redirect("Page2.aspx");
        or
        Server.Transfer("Page2.aspx");
    }


    Hope that helps


  • Simple windows forms question