Abstract:
The process will improve the response speed of Web application by using Ajax technology when Web pages communicate with Web server, however, when the Web pages refreshed by Web server widget, the view state process model of the Web page records Web server widget’s state value does not record the Ajax widget’s value and leads to the loss of the Ajax widget’s value. This paper presents a new state value storage mechanism, which makes Ajax widget’s state value be stored in the Web server session object or the user data object of the client side, so that the Ajax widget of the client side can still hold the same value after the Web page refreshed, which ensures the Ajax widgets state continuance.
Key words:
Ajax widget,
userData behavior,
session,
view state,
state storage mechanism,
.NET technology
摘要: 在页面内使用Ajax技术与服务器通信可提高Web应用的响应速度,但Web服务器控件引起的页面刷新导致整个页面回传后,页面的视图状态处理模型并没有记录Ajax控件在页面变化之前的值,造成Ajax控件值的丢失。该文提出一种状态保存机制,将Ajax控件状态值存储到服务器的Session或者客户端的userData中,使页面刷新后客户端的Ajax控件仍可保留原有值,保证控件状态的持续。
关键词:
Ajax控件,
userData行为,
会话,
视图状态,
状态保存机制,
.NET技术
CLC Number:
TAN Jian-ping; WANG Cheng-liang. Ajax Widget’s Value Keeping Technology Based on .NET and Its Application[J]. Computer Engineering, 2008, 34(19): 83-85.
谭建平;王成良. 基于.NET的Ajax控件保值技术及其应用[J]. 计算机工程, 2008, 34(19): 83-85.