Re: Editor at AJAX loaded Control

  •  07-05-2010, 8:04 AM

    Re: Editor at AJAX loaded Control

    It seems the following code can solve the problem...
    But can I be shure that there are no other undiscovered problems?
     
    1. var browserType = Request.Browser.Browser.Equals("IE") ? "IE_Loader" : "Gecko_Loader";   
    2. var jsUrl = string.Format("../CuteSoft_Client/CuteEditor/Scripts/{0}/Loader.js", browserType);   
    3.   
    4. var js = new HtmlGenericControl("script");   
    5. js.Attributes["type"] = "text/javascript";   
    6. js.Attributes["src"] = jsUrl;   
    7. Page.Header.Controls.Add(js);  
    Greetings empty
     
    PS: We support FireFox and IE only.
     
    edit: Code is in Page_Load()
View Complete Thread