提交 a1a32358 编写于 作者: M Marek Habersack

[asp.net] Fix for bug #658278. Panels render children only when parent is...

[asp.net] Fix for bug #658278. Panels render children only when parent is present and ChildrenAsTriggers is enabled

Fix from Avior Computing <jmilillo@aviorcomputing.com>, thanks!
上级 f222bb2a
......@@ -321,7 +321,8 @@ namespace System.Web.UI
base.RenderChildren (w);
w.Flush ();
if (sb.Length > 0) {
if (ParentPanel != null)
UpdatePanel parent = ParentPanel;
if (parent != null && parent.ChildrenAsTriggers)
writer.Write (sb.ToString ());
else
ScriptManager.WriteCallbackPanel (responseOutput, this, sb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册