帮忙纯手动翻译下asp.net4.5英文?
1.WhenrenderingtheHTML,theUpdatePanellooksatitscontentsandnoticesthatitcontainsonecon...
1. When rendering the HTML, the UpdatePanel looks at its contents and notices that it contains one control that can trigger a postback—the button. The UpdatePanel adds some JavaScript code that will intercept the button’s Click event on the client and use a JavaScript routine to handle it.
2. When you click the Refresh Time button, you trigger the JavaScript routine.
3. The JavaScript routine doesn’t perform a full-page postback. Instead, it sends a background request to the web server. This request is asynchronous, which means your page remains responsive while the request is under way.
4. The background request is processed in exactly the same way as a normal postback. All the data from all the web controls is sent back to the web server, along with the view state information and any cookies. On the web server, the page life cycle is the same—first the Page.Load event fires, followed by the event that triggered the postback (in this case, Button.Click). If you’re using data source controls such as SqlDataSource, all the normal querying and data binding takes place. The final page is then rendered to HTML and sent back to the page.
5. When the browser receives the rendered HTML for the page, it updates the current view state and grabs any cookies that were returned.
6. The JavaScript routine then replaces a portion of the HTML on the page—just the portion that you wrapped in the UpdatePanel. The rest of the HTML for the page is simply discarded. In the current example, that means the HTML with the animated GIF is tossed out. (This really has no effect, because this part of the HTML is exactly the same in the new response as it was originally. However, it’s important to understand that if you modify this part of your page on the web server, you won’t see the results of your change in the web browser, because that area of the page isn’t being updated.) 展开
2. When you click the Refresh Time button, you trigger the JavaScript routine.
3. The JavaScript routine doesn’t perform a full-page postback. Instead, it sends a background request to the web server. This request is asynchronous, which means your page remains responsive while the request is under way.
4. The background request is processed in exactly the same way as a normal postback. All the data from all the web controls is sent back to the web server, along with the view state information and any cookies. On the web server, the page life cycle is the same—first the Page.Load event fires, followed by the event that triggered the postback (in this case, Button.Click). If you’re using data source controls such as SqlDataSource, all the normal querying and data binding takes place. The final page is then rendered to HTML and sent back to the page.
5. When the browser receives the rendered HTML for the page, it updates the current view state and grabs any cookies that were returned.
6. The JavaScript routine then replaces a portion of the HTML on the page—just the portion that you wrapped in the UpdatePanel. The rest of the HTML for the page is simply discarded. In the current example, that means the HTML with the animated GIF is tossed out. (This really has no effect, because this part of the HTML is exactly the same in the new response as it was originally. However, it’s important to understand that if you modify this part of your page on the web server, you won’t see the results of your change in the web browser, because that area of the page isn’t being updated.) 展开
1个回答
展开全部
1、在提交HTML过程中,从更新面板可以看到其内容及公告中包含了一个可以触发返回的控件按钮。该更新面板添加了一些java解释代码,用于解释即执行按钮在客户端的点击动作并用使用java解释程序来处理它。
2、当点击刷新时间按钮时,触发java解释程序。
3、java解释程序本身并不执行整个页面的返回的指令。它只是发送一个后台请求指令到web服务器。该指令不会同步响应,其意义在于当它处于执行过程时你的页面保留响应。
4、后台指令的执行如同正常的返回动作指令一样的准确。所有来自各个控制web的全部数据均被返回web服务器,同时返回的还有视图状态信息和每一次访问的记录信息。在web服务器上,每个页面的保存周期都与首页一致:载入被触发的事件,响应被返回按钮触发的事件即点击该按钮。假如使用数据源控制,比如SQI数据源,所有的正常查询和数据绑定均可执行。最后一页也在那里进行提交给HTML同时返回到该页。
5、当浏览器打开提交到HTML的该页时,它就更新当前视图状态并捕捉过去记录的任何访问信息。
6、这个java解释程序也在此时刷新该页上HTML的部份内容——即刚刚收集到更新面板上的那一部份内容。该页面上HTML的其它部份内容便只能废弃。(这些内容其实对页面浏览没有什么影响,因为HTML的这一部份内容实际上是一致的,即本次更新与它过去更新的内容是相同的。不管怎样,假如你在web服务器上定义了页面的这一部份内容,而你在浏览器上是看不到那些你更改过的结果,因为该页面的这一区域内容是不会被更新的,了解这一点是非常重要的。)
2、当点击刷新时间按钮时,触发java解释程序。
3、java解释程序本身并不执行整个页面的返回的指令。它只是发送一个后台请求指令到web服务器。该指令不会同步响应,其意义在于当它处于执行过程时你的页面保留响应。
4、后台指令的执行如同正常的返回动作指令一样的准确。所有来自各个控制web的全部数据均被返回web服务器,同时返回的还有视图状态信息和每一次访问的记录信息。在web服务器上,每个页面的保存周期都与首页一致:载入被触发的事件,响应被返回按钮触发的事件即点击该按钮。假如使用数据源控制,比如SQI数据源,所有的正常查询和数据绑定均可执行。最后一页也在那里进行提交给HTML同时返回到该页。
5、当浏览器打开提交到HTML的该页时,它就更新当前视图状态并捕捉过去记录的任何访问信息。
6、这个java解释程序也在此时刷新该页上HTML的部份内容——即刚刚收集到更新面板上的那一部份内容。该页面上HTML的其它部份内容便只能废弃。(这些内容其实对页面浏览没有什么影响,因为HTML的这一部份内容实际上是一致的,即本次更新与它过去更新的内容是相同的。不管怎样,假如你在web服务器上定义了页面的这一部份内容,而你在浏览器上是看不到那些你更改过的结果,因为该页面的这一区域内容是不会被更新的,了解这一点是非常重要的。)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询