Update of /cvsroot/magicajax/magicajax/Core/UI/Controls
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19417/Core/UI/Controls
Modified Files:
AjaxPanel.cs
Log Message:
Fix for the problem of the AjaxPanel not displaying its contents on VS 2005 when in a UserControl
Index: AjaxPanel.cs
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** AjaxPanel.cs 3 Jan 2006 01:49:09 -0000 1.46
--- AjaxPanel.cs 5 Jan 2006 01:07:33 -0000 1.47
***************
*** 356,359 ****
--- 356,366 ----
protected override void RenderChildren(HtmlTextWriter writer)
{
+ if (MagicAjaxContext == null)
+ {
+ // It's in VS Designer, do the default render
+ base.RenderChildren(writer);
+ return;
+ }
+
System.Text.StringBuilder sbFull = new System.Text.StringBuilder();
System.Text.StringBuilder sb = new System.Text.StringBuilder();
|