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

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - 稽首本然

Nhibernate 教程,有空看看 Jquery专题写的不少,有空看看,另该研究下门面模式了! Java开源权限管理中间件 《需求规格说明书》业务描述活动图 《需求规格说明书》(用例)陷阱 《需求规格说明书》核心功能表现方式(用例) LINQ TO SQL Nunti测试工具使用整理 一个关于NHiberante,Linq数据源与UI交互引发的思考 数据库联接字符串 LINQ TO OBJECT ASPX直接编写脚本function后使用javascript Aspx页面中直接编写javascript脚本 母版事件中注册javascript脚本 ASPNET跨页面传值技巧总结 javascript捣乱程序 Javascript在Asp.Net中的应用汇总 AjaxPanel中使用javascript AjaxPanel控件说明
ScriptManager与UpdatePanel总结
稽首本然 · 2011-02-11 · via 博客园 - 稽首本然

1.部分来源: http://hi.baidu.com/grayworm/blog/category/ajax.net1.0

   Ajax Extensions

2.ScriptManager

   2.1一个.aspx页面只允许存在1个ScriptManager控件

   2.2属性

  EnablePartialRendering :true页面局部刷新/false页面整体刷新

3.UpdatePanel

   3.1一个页面可以存在多个UpdatePanel控件,可以嵌套

   3.2属性

       RenderMode : InLine-UpdatePanel 控件被解析为HTML的<SPAN>

                              Block-UpdatePanel   控件被解析为HTML的<DIV>

       UpdateMode :Always-UpdatePanel 页面任何一处发生回调都产生页面局部更新

            Conditional 只在特定的情况下产生页面回调用,如执行UpdatePanel控件的update()方法

     ChildAsTrigger :指示UpdatePanel内部控件引发的回调是否产生当前UpdatePanel控件局部更新

             UpdateMode="Always"则ChildAsTrigger必须="True" 

4.UpdatePanel应用的几种情况

 4.1 由UpdatePanel外部的控件引起的回调,更新UpdatePanel内部控件,需要进行注册

方法1 ScriptManager1.RegisterAsyncPostBackControl()注册的控件

方法2 ScriptManager1.RegisterAsyncPostBackControl()注册的控件

发法3 触发器

   4.2 两个UpdatePanel控件,其中一个UpdatePanel内的控件引发两个UpdatePanel控件的同时刷新。

   4.3 两个UpdatePanel控件,其中一个UpdatePanel内的控件引发当前的UpdatePanel控件的刷新,而另一个不刷新。

   4.4 两个UpdatePanel控件,其中一个UpdatePanel内的控件引发另一个UpdatePanel控件的刷新,而本身不刷新。

5.母板页中添加UpdatePanel ,在母板页中添加了ScriptManager则在aspx页面中不再需要添加ScriptMager