#234: Microsoft Asp.net 2.0 AJAX UpdatePanel Bug
-------------------------------+--------------------------------------------
  Reporter:  Anksunamon        |       Owner:                 
      Type:  Bug               |      Status:  new            
  Priority:  Normal            |   Milestone:  FCKeditor 2.6.1
 Component:  Server : ASP.Net  |     Version:  FCKeditor 2.4  
Resolution:                    |    Keywords:  Confirmed      
-------------------------------+--------------------------------------------
Comment (by justinmk):

 serializer:
 I noticed in your comment on
 [http://dev.fckeditor.net/ticket/234#comment:8 01/04/08 21:58:44] you
 mention ClientScript.RegisterOnSubmitStatement. I haven't looked at your
 uploaded test code, so I apologize if you know this already, but thought I
 should mention that the Page.ClientScript javascript registration methods
 are not AJAX aware (whatever that means). the System.Web.Extensions.dll
 adds additional ScriptManager namespace under System.Web that must be used
 if a ScriptManager is detected on the page (e.g., in the case of an update
 panel).

 so, in addition to the normal Page.ClientScript.RegisterOnSubmitStatement
 for a normal (non-AJAX) page, you must also check for a ScriptManager:
 {{{
 ScriptManager sm = ScriptManager.GetCurrent(Page);
 if(null != sm)
 { //we are on an AJAX page
 sm.RegisterOnSubmitStatement(...);
 }
 }}}


 
http://www.asp.net/AJAX/Documentation/Live/mref/M_System_Web_UI_ScriptManager_GetCurrent_1_9548b3ba.aspx

 
http://www.asp.net/AJAX/Documentation/Live/mref/O_T_System_Web_UI_ScriptManager_RegisterOnSubmitStatement.aspx

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/234#comment:18>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to