tailieunhanh - Beginning Ajax with ASP.NET- P22

Beginning Ajax with P22:Thank you for purchasing Beginning Ajax with . We know that you have a lot of options when selecting a programming book and are glad that you have chosen ours. We’re sure you will be pleased with the relevant content and high quality you have come to expect from the Wrox Press line of books. | Atlas Controls The preceding code contains several things it s important to understand This is the same code that would be generated when the page is first loaded. The ViewState is at its default setting within the view source. While the ViewState has been clipped for brevity in this example the ViewState does not seem to hold all the data-bound content of the GridView that you would expect to see from a page that contained the data bound to the Gridview and resent to the client. The UpdatePanel has handled the updating of ViewState. The GridView is not displayed on the page. The UpdatePanel is replaced by the span tag. This will be the location where the GridView is placed when the data is returned to the web client. When the data is returned the data is placed within the span tag. This methodology allows for the integration of Ajax functionality into applications while preserving the server-centric development methodology that has traditionally provided. Timed Refreshes Atlas contains a timer control that provides for timed actions to occur. Situations where this would be useful might be Stock symbol updates for an investor Inventory updates within a manufacturing environment Retail inventory Executive information system or dashboard Try It Out Performing a Timed Update with the Timer Control Take a look at some code to perform a timed update atlas TimerControl runat server ID tc Interval 5000 OnTick tc_Tick atlas UpdatePanel ID up runat server Mode Conditional ContentTemplate asp Label ID lblInv runat server AssociatedControlID lblNum asp Label ID lblNum runat server ContentTemplate Triggers atlas ControlEventTrigger ControlID tc EventName Tick Triggers atlas UpdatePanel The event control is protected void tc_Tick object sender EventArgs e Widget if Something happened true 291 Chapter 11 How It Works In this example an Atlas server control called the atlas TimerControl is

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.