PreviousPage function causes CSK to crash

Last post 08-21-2007 11:57 AM by neo302. 0 replies.

Sort Posts:

  • PreviousPage function causes CSK to crash

    08-21-2007, 11:57 AM
    • Member
      131 point Member
    • neo302
    • Member since 04-10-2006, 5:10 PM
    • Posts 78

    Does anyone know what causes the starter kit to crash when calling the PreviousPage function when you have a button go to the page via the buttons "postbackurl"?

    What is weird is if you put a breakpoint on line with PreviousPage, it won't crash if you step through it.

    Remove the breakpoint and try to click the button to go to the page and the PreviousPage causes the error:

    Error executing child request for handler 'ASP.default_aspx'. and on the webpage it says:

    Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

    i.e-

    if (PreviousPage != null)
    {
           Console.WriteLine("Hi there!");     
    }

    I think it will do this on any page you try it.

    Thanks

     

Page 1 of 1 (1 items)