更新模式和渲染模式 [英] update mode and render mode
本文介绍了更新模式和渲染模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请在更新面板中解释我更新模式和Rendermode
Please explain me update mode and Rendermode in update panel
<asp:UpdatePanel ID="UpdatePanel2" runat="server" RenderMode="Inline" UpdateMode="Conditional">
<ContentTemplate>
<span class="button">
<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
</span>
</ContentTemplate>
</asp:UpdatePanel>
推荐答案
http://forums.asp.net /t/1236541.aspx/1 [ ^ ]
http://msdn.microsoft.com/en-IN/library/system.web。 ui.updatepanel.rendermode(v = vs.100).aspx [ ^ ]
从代码隐藏的按钮单击或DropDownList选择更改中触发AJAX UpdatePanel [< a href =http://www.codeproject.com/Articles/25661/Triggering-AJAX-UpdatePanel-from-a-Button-Click-ortarget =_ blanktitle =New Window> ^ ]
http://ajax.net -tutorials.com/controls/updatepanel-control/ [ ^ ]
这可能对你有所帮助: )
http://forums.asp.net/t/1236541.aspx/1[^]
http://msdn.microsoft.com/en-IN/library/system.web.ui.updatepanel.rendermode(v=vs.100).aspx[^]
Triggering AJAX UpdatePanel from a Button Click or DropDownList Selection Change in Code-Behind[^]
http://ajax.net-tutorials.com/controls/updatepanel-control/[^]
may this help u :)
RenderMode
[ ^ ]属性定义如何在HTML中呈现UpdatePanel
。使用Block
表示该元素呈现为div
,而内联
将元素呈现为span
。
UpdateMode
[ ^ ]属性定义触发<$的内容c $ c> UpdatePanel 更新自己。同样,有两种选择:条件
和始终
(默认)。设置为始终
时,UpdatePanel
将在任何子控件的回发中更新自身。虽然条件
表示您可以定义特定触发器(或使用更新
[ ^ ]方法),例如您可能只想在单击某个按钮时更新面板。
TheRenderMode
[^] property defines how theUpdatePanel
is rendered in HTML. UsingBlock
means the element is rendered as adiv
, whileInline
renders the element as aspan
.
TheUpdateMode
[^] property defines what triggers theUpdatePanel
to update itself. Again, there are two choices:Conditional
andAlways
(default). When set toAlways
, theUpdatePanel
will update itself on a postback from any of the child controls. WhileConditional
means you can define specific triggers (or update it manually, using theUpdate
[^] method), e.g. you might only want to update the panel when a certain button is clicked.
这篇关于更新模式和渲染模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文