Server.Transfer causes AjaxControlToolkit undefined error.

Last post 09-06-2007 1:22 PM by jarellxede. 1 replies.

Sort Posts:

  • Server.Transfer causes AjaxControlToolkit undefined error.

    09-06-2007, 9:26 AM
    • Member
      point Member
    • mtiemeyer
    • Member since 09-06-2007, 1:14 PM
    • Posts 1
     

    I know this is a newbie issue so I’m hoping that somebody already has a work around beside. Response.redirect. So here is my situation. I have webfrom1.aspx with a button on it and in the click of the button on the server side I do a server.transfer to webform2.aspx. WebForm2.aspx contains a ToolkitScriptManager, a textbox and a CalendarExtender that points to the textbox. When webform2 loads I get an AjaxControlToolkit undefined error but if I do a Response.redirect everything works. So I assume webfor2 is fine and I need to do something with my web.config or webform1. Does anyone now how to get the ToolkitScriptManager to work when the page is called from server.transfer?

     Thanks in advance

    Matt

     

  • Re: Server.Transfer causes AjaxControlToolkit undefined error.

    09-06-2007, 1:22 PM
    Answer
    • Member
      230 point Member
    • jarellxede
    • Member since 04-18-2007, 8:34 PM
    • southfield, mi
    • Posts 35

    I don't know the exact cause of your error or how to fix it Confused, but it may have to do with the differences between Response.Redirect and Server.Transfer.  Response.Redirect creates a new web request; it behaves similar to requesting a page through a browser.  Server.Transfer doesn't leave and "come back," it transfers processing to the specified page.  I think this difference could be the reason why your webform2.aspx doesn't like the Server.Transfer, it could be missing info from the web request.

    Jarell Lloyd
    Senior Consultant
    Xede Consulting Group
Page 1 of 1 (2 items)