Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ASP.NET webform navigation between pages

Options
  • 20-04-2004 4:09pm
    #1
    Moderators, Society & Culture Moderators Posts: 2,688 Mod ✭✭✭✭


    ARG!!!! (IM REALLY SCREAMING!)

    I cant get a simple command button when clicked to redirect to the proper page....

    how do you do it?
    private void Button1_Click(object sender, System.EventArgs e)
    {
    	FormsAuthentication.SignOut() ;
    	Response.Redirect("MainMenu.aspx") ;
    }
    

    :rolleyes: this doesnt seem to work!!!


Comments

  • Registered Users Posts: 4,276 ✭✭✭damnyanks


    Redirect seems to be correct. Can You post the signout code ?


  • Moderators, Home & Garden Moderators, Regional Midwest Moderators, Regional West Moderators Posts: 16,722 Mod ✭✭✭✭yop


    I do not have .NET on my machine here but as far as I can remember that there is a POSTBACK property that needs to be set to TRUE


  • Moderators, Society & Culture Moderators Posts: 2,688 Mod ✭✭✭✭Morpheus


    ive just got a command button with
    {
            Formsauthentication.signout() ;
            response.redirect("thepage.aspx") ;
    }
    

    funny, it seems ok now... i dunno what was going on.


  • Moderators, Home & Garden Moderators, Regional Midwest Moderators, Regional West Moderators Posts: 16,722 Mod ✭✭✭✭yop


    Ahh, he joy of .NET!!

    Download the sample packages on www.asp.net

    I found them excellent, self taught and thought they were a great teaching aid


  • Registered Users Posts: 4,276 ✭✭✭damnyanks


    I got a book called ASP.Net Unleashed by SAMS publishing.

    Its pricey but a good intro to asp.net


  • Advertisement
Advertisement