.net 中UpdatePanel1怎么用

来源:百度知道 编辑:UC知道 时间:2024/07/11 06:41:03
有人试过把.net3.5版本的,设置会.net2.0版本的吗?
因为某些原因,我设置了,在.net2.0版本中,不知道怎样用UpdatePanel1,把UpdatePanel1的属性逐个设置了,就是不起作用,有人知道怎么回事么?
在.net3.5版本中,只要拖拖控件就可以了(不需要管属性)都可以设置,
如果转回.net2.0版本,那怎么用UpdatePanel1实现无刷新功能啊?
我晕了,怎么这样都理解不到,直接说了:我在3.5版本里,用updatepanel,可以起到作用,但在调到(vs2008)2.0版本里,用updatepanel,就不起作用~~为什么~~“把做无刷新的内容放到updatepanel里”,这个我,也知道,不要在这方面回答了,你们只要说"""""""""""""""""""""""""""""我在3.5版本里,用updatepanel,可以起到作用,但在调到(vs2008)2.0版本里,用updatepanel,就不起作用~~为什么~""""""""""""""""""""""""""""""""""""""""

强晕,,,updatepanel和scriptmanager两个应该一起使用,这个我也知道了

那个是Ajax运用~
你只要把你想不让刷新的控件或内容放进去就可以了~
UpdatePanel1 是个容器 是存放东西的 这样更好理解~

2.0版本的也是直接拖进去就行了,但是你要把想做无刷新的内容放到updatepanel里。给你举个例子看看。
<asp:UpdatePanel id="UpdatePanel1" runat="server"><contenttemplate>
<asp:DropDownList ID="ddlType" runat="server" Style="position: static" Width="160px" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged"> <asp:ListItem>单页图文</asp:ListItem>
<asp:ListItem>在线表单</asp:ListItem>
</asp:DropDownList>
主模块<asp:DropDownList ID="ddlItem" runat="server" Style="position: static" Width="158px" >

</asp:DropDownList>
子模块<asp:ObjectDataSource ID="ObjectDataSource1" r