如何用asp:UpdatePanel和asp:TreeView 进行在div中局部刷新

davidpeng 发布于 2012/03/19 14:24
阅读 1K+
收藏 0

请高手指教详细如何用asp:UpdatePanel和asp:TreeView 进行在<div class="lefmiddle">中局部刷新。本人搞了好久。。。。!

<div class="lefmiddle" >
	<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true" RenderMode="Block">
	   <ContentTemplate>
	      <asp:TreeView ID="JilinTree" runat="server"  ShowLines="true" 
		 OnTreeNodeCheckChanged="JilinTree_TreeNodeCheckChanged"  ShowCheckBoxes="All"  ExpandImageUrl="images/icon_06.gif" CollapseImageUrl="images/icon_03.gif" EnableClientScript="True">
		 <SelectedNodeStyle BackColor="SlateGray"/>  
		 <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="#2264A1" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" Font-Bold="True" />                  
	     </asp:TreeView>
		<asp:Button ID="Button1" runat="server" Text="Button" onclientclick="Button1_Click" style="display:none"/>
	  </ContentTemplate>
	      <triggers>
		<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
	      </triggers>
	</asp:UpdatePanel> 
	<ul id="treeMenu" class="contextMenu" runat="server" >
	    <li id="add" class="copy"><a href="#add">增加</a></li> 
      <li id="edit" class="edit"><a href="#edit">编辑</a></li> 
      <li id="delete" class="delete"><a href="#delete">删除</a></li>
      </ul>
</div>

加载中
返回顶部
顶部