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

推荐订阅源

Vercel News
Vercel News
Recorded Future
Recorded Future
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
N
News | PayPal Newsroom
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Help Net Security
Help Net Security
博客园 - Franky
SecWiki News
SecWiki News
Recent Announcements
Recent Announcements
T
Troy Hunt's Blog
The Register - Security
The Register - Security
The Last Watchdog
The Last Watchdog
Webroot Blog
Webroot Blog
S
Security Affairs
博客园 - 司徒正美
S
Schneier on Security
I
InfoQ
博客园_首页
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threat Research - Cisco Blogs
Forbes - Security
Forbes - Security
腾讯CDC
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic
Cloudbric
Cloudbric
T
The Exploit Database - CXSecurity.com
P
Proofpoint News Feed
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Recent Commits to openclaw:main
Recent Commits to openclaw:main
B
Blog
V
Vulnerabilities – Threatpost
C
Check Point Blog
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cisco Blogs
Schneier on Security
Schneier on Security
O
OpenAI News
K
Kaspersky official blog

博客园 - 小柯

Enterprise Library 4.1 Configuration的使用 C#模仿QQ截图功能 asp.net 中 DropDownList 加入可输入功能解决方案 - 小柯 解决SQL Server Management Studio Express为英文的问题 Visual Studio 2008 简体中文正式版下载及序列号(无使用期限限制,正式版) 程序人生--一个程序员对学弟学妹建议(转) .NET 换肤软件 IrisSkin 2.0 破解版下载及多款皮肤下载 (转)JavaScript 弹出窗口总结 (转)JavaScript常用判断函数(正则表达式版) C#中常用的经典文件操作方法 反编译工具Reflector下载(集成两个常用.net插件,FileGenerator和FileDisassembler) C#遍历指定目录的递归(完美改进版+完整程序源码) C#遍历目录树的递归 在ASP.NET中自动给URL加上超链接 ASP.NET 中 Cookie 的基本知识 ASP.NET2.0统计图表(转) ASP.NET获取IP及电脑名等信息的简单方法+通用类文件源码 (转)了解你的兵器---VS2005 快捷键 Asp.Net Ajax系列(二) 局部页面呈现(Partial-Page Rendering)
Asp.net Ajax 系列(一) ----------用了再说
小柯 · 2006-12-17 · via 博客园 - 小柯

随着Ajax的应用越来越流行,微软也推出了asp.net ajax 1.0 beta2.   我将在下面的文章里谈到asp.net中微软ajax组件的应用。(适合有asp.net使用经验的读者)

   MrXie 之Asp.net Ajax   系列() ----------用了再说

确认安装vs2005 。下载 Asp.net Ajax 的相关组件(http://ajax.asp.net) Asp.Net Ajax 1.0 beta2 ,进行默认安装。 然后我们就开始动工

Step 1  打开vs2005 –〉新建〉网站,选择“ASP.NET AJAX-Enabled Web Site(下载组件会安装该模版),并起名AjaxTest.

 

Step2 :你会发现default.aspx页面上有个叫做“ScriptManager1”的组件,暂时不要理它。分别拖拽三个控件Label1, Button1,TextBox1.

Step3 : 然后我做一个简单的Button1click事件响应。当点击Button1的时候,Label1将显示TextBox1当中的值。

 

Step 4: Ctrl+F5 运行, TextBox1中输入字符串以后,点击Button1,你会发现页面刷新后,Label1上会有TextBox1的值。

Step 5: 下面将是令人激动的Ajax时间。 停止程序运行,回到default.aspx的设计视图,将工具箱中Ajax Extensions栏中的UpdatePanel拖拽到页面上。

 

Step6 :Label1Button1都拖拽到UpdatePanel1控件中

再次Ctrl+F5运行, 还是执行刚才的操作,这次,你将发现 当点击Button1,将不会刷新整个页面,而结果是一样,只是进行了局部刷新。

到了这个地方,你将知道Ajax是一种使得局部页面刷新的技术,它将大大优于整个页面重新加载的效果。而其原理正如其英文名称Asynchronous JavaScript + XML 这是一种利用javascript +xml利用 xmlhttp组件技术 进行异步调用的技术。

在后面的文章里,我将一步一步解析其原理和使用。

下一篇: MrXie 之Asp.Net Ajax系列(二) 局部页面呈现