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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

ASP.NET webform navigation between pages

  • 20-04-2004 3: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, Registered Users 2 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,724 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,724 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, Registered Users 2 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