艺海无涯,学无止境。欢迎一起探讨技术和人生,了解我

FineUI AjaxAspnetControls 设置ajax控件


<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AjaxAspnetControls="Label1,Literal1,Literal2_Container" runat="server" />
<asp:Label ID="Label1" Text="Label1" runat="server"></asp:Label>
<br />
<asp:Literal ID="Literal1" Text="Literal1" runat="server"></asp:Literal>
<br />
<div id="Literal2_Container">
<asp:Literal ID="Literal2" Text="Literal2" runat="server"></asp:Literal>
</div>
<br />
<f:Button ID="Button1" runat="server" Text="更新上面几个文本值" OnClick="Button1_Click">
</f:Button>
<br />
注意:只有Label1和Literal2的值更新了。
</form>
</body>