tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 24

Professional in C# and Visual Basic Part 24. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 3 Web Server Controls By working with these events you can create a multi-step form that saves all the end user s input information when he changes from one step to the next. You can also use the FinishButtonClick event to save everything that was stored in each of the steps at the end of the process. The Wizard control remembers all the end user s input in each of the steps by means of the view state in the page which enables you to work with all these values in the last step. It also gives the end user the capability to go back to previous steps and change values before those values are saved to a data store. The event appears in your code behind or inline code as shown in Listing 3-44. Listing 3-44 The FinishButtonClick event VB script runat server Sub Wizard1_FinishButtonClick ByVal sender As Object _ ByVal e As End Sub script C script runat server void Wizard1_FinishButtonClick object sender WizardNavigationEventArgs e script The OnFinishButtonClick attribute should be added to the main asp Wizard element to point at the new Wizard1_FinishButtonClick event. Listing 3-45 shows how to do this. Listing 3-45 The asp Wizard Element Changes asp Wizard ID Wizard1 runat server ActiveStepIndex 0 OnFinishButtonClick Wizard1_FinishButtonClick The Wizard control is one of the great new controls that enable you to break up longer workflows into more manageable pieces for your end users. By separating longer Web forms into various wizard steps you can effectively make your forms easy to understand and less daunting to the end user. Using the Wizard Control to Show Form Elements So far you have learned how to work with each of the Wizard control steps including how to add steps to the process and how to work with the styling of the control. Now look at how you put form elements into the Wizard control to collect information from the end user in a stepped process. This is just as simple as the first examples

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
10    158    0    29-04-2024
20    198    2    29-04-2024
23    157    0    29-04-2024
7    128    0    29-04-2024
2    110    0    29-04-2024
165    86    0    29-04-2024
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.