Question : Major problem with AJAX and server.transfer to AJAX page

I have an AJAX enabled page that holds a Tab Control in an Update Panel. Each Panel holds a user control. If I start the page directly everything is fine. I can also call the AJAX page from another page doing a a server.transfer in the Page Load event. But if I place the server.transfer call in an Button_Click event procedure I receive a runtime error, stating that the 'AjaxControlToolkit' is not defined!

I found some posts that server.transfer inside an update panel doesn't work, but I'm calling the AJAX page not from it. (I still need to make a call from it later, too) Does anybody know how to solve the problem? I'm devastated!

Marcus
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
FAILS:

Partial Class test
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub


    Protected Sub btnOrder_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOrder.Click
        Session("TempOID") = 19
        Server.Transfer("PlaceOrder.aspx")
    End Sub
End Class

RUNS:
Partial Class test
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Session("TempOID") = 19
        Server.Transfer("PlaceOrder.aspx")
    End Sub


    Protected Sub btnOrder_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOrder.Click
    End Sub
End Class

Answer : Major problem with AJAX and server.transfer to AJAX page

I found the solution!!!! After two hours of searching.

Just add CombineScripts="false to the Script Manager Tag!

 anager runat="server" ID="ajaxScriptManager" EnablePartialRendering="true" CombineScripts="false" />
Random Solutions  
 
programming4us programming4us