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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 小柯

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系列(二) 局部页面呈现