0 Replies Latest reply on Feb 2, 2010 10:59 PM by rayavoy

    Flex desktop app with embedded browser incompatible with asp.net ToolkitScriptManager??

    rayavoy

      Hi, I have a website that's developed in ASP.NET and uses the AJAX Toolkit (asp:ToolkitScriptManager) for a couple of extenders. The AJAX effects (e.g. ) work perfectly across IE 7, IE8, FF3.5, Safari, and Chrome. However, I embedded my site in a desktop Flex-AdobeAir application using the component which is able to run the entire site including javascript except where the AJAX is used.

      I narrowed the source of the problem down to the difference between using asp:ToolkitScriptManager and asp:ScriptManager. Here's an example page that will display "Safari" in the embedded flex browser as the result of document.write(Sys.Browser.name):

       

       

      <%@ Page Language="C#" %> 
      <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" >
         
      <head id="Head1" runat="server">
             
      <title>Flex test</title>
         
      </head>
         
      <body>
             
      <form runat="server">
                 
      <asp:ScriptManager ID="TheScriptManager" runat="server"></asp:ScriptManager>
                 
      <script type="text/javascript">
                        document
      .write(Sys.Browser.name);
                 
      </script>
             
      </form>
         
      </body>
      </html>

       

       

      However, if you change

       

       

      <asp:ScriptManager ID="TheScriptManager" runat="server"></asp:ScriptManager>

      to

      <asp:ToolkitScriptManager ID="TheScriptManager" runat="server"></asp:ToolkitScriptManager>

      it suddenly does not display anything on the flex browser.

       

       

      Can anyone help?  Thank you.