惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
D
Docker
有赞技术团队
有赞技术团队
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
爱范儿
爱范儿
H
Help Net Security
美团技术团队
MyScale Blog
MyScale Blog
B
Blog RSS Feed
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
G
Google Developers Blog
月光博客
月光博客
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs

博客园 - mecn

好久没来了。。。。。。。。。。 2007最全网页设计实用代码(史上最全) zt javascript 客户端验证上传文件是否合法 c# 汉语拼音排序函数 vs2005 ActiveX c# 注意几点! 关于IE非安全更新带来flash和ActivX不能激活的解决办法(zt) NHibernate 学习 (转园子里子两篇关于NHibernate的文章) 将后台数据读取到前台的EXCEL文件中去,用javascript实现,asp.net,javacript(发一个原创) 浅谈图形验证码的识别 用ajax打造和gmail一样的加载进度条显示!(原创) asp.net大页面载入时以进度条显示zt 在asp.net Sql server (可以是存储过程)中使用事务回滚 网页一屏到底有多大 1024*768 800*600 网页设计大小 网页设计尺寸 在vs2005中用push方式来用水晶报表,比pull方式好用多了! 去掉VS2005中水晶报表的登录界面(ZT) Visual Studio 2005 IDE 技巧和窍门 得到页面所有的form内对象数值——————为一个控件加一个客户端属性 从webservice读取string[]至downlist,增加onchange事件,更改相关显示。 动态生成表格内容,支持多个textbox,自动生成textboxID,比较好用
ajax中 同一页面中 UpdatePanel 区别 更新多个区域的关键 tim...
mecn · 2007-04-23 · via 博客园 - mecn

关键是将updatepanel的 UpdateMode  设置为 UpdateMode ="Conditional"  默认的话是always 所以同一个页面中的不同updatepanel 总不同时更新,觉的十分不爽,我们设置为 UpdateMode ="Conditional" ,即条件更新后,情况就不同了。

接下来我们再在我们想要触发更新的updatepanel 中加入

<Triggers ><asp:AsyncPostBackTrigger ControlID ="Button2"  EventName ="Click" /></Triggers>
这样的话呢,点击button时的updatepanel2才更新呦。好的问题解决了,和大家共享吧。

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode ="Conditional">
            <ContentTemplate>
                2---<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
            </ContentTemplate>
            <Triggers ><asp:AsyncPostBackTrigger ControlID ="Button2"  EventName ="Click" /></Triggers>
        </asp:UpdatePanel>

下面的是使用timer

<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode ="Conditional" >
            
<ContentTemplate>
                
<asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="1000" >
                
</asp:Timer>
                
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label><br />
            
</ContentTemplate>
        
</asp:UpdatePanel>