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

Professional in C# and Visual Basic Part 17. 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 OnTextChanged event triggered protected void Button1_Click object sender EventArgs e OnClick event triggered script As you build and run this page notice that you can type something in the text box but once you tab out of it the OnTextChanged event is triggered and the code contained in the TextBox1_TextChanged event runs. To make this work you must add the AutoPostBack attribute to the TextBox control and set it to True. This causes the Web page to look for any text changes prior to an actual page postback. For the AutoPostBack feature to work the browser viewing the page must support ECMAScript. Using AutoCompleteType You want the forms you build for your Web applications to be as simple to use as possible. You want to make them easy and quick for the end user to fill out the information and proceed. If you make a form too onerous the people who come to your site may leave without completing it. One of the great capabilities for any Web form is smart auto-completion. You may have seen this yourself when you visited a site for the first time. As you start to fill out information in a form a drop-down list appears below the text box as you type showing you a value that you have typed in a previous form. The plain text box you were working with has become a smart text box. Figure 3-5 shows an example of this feature. Figure 3-5 A great new aspect of the TextBox control is the AutoCompleteType attribute which enables you to apply the auto-completion feature to your own forms. You have to help the text boxes on your form to recognize the type of information that they should be looking for. What does that mean Well first look at the possible values of the AutoCompleteType attribute BusinessCity BusinessCountryRegion BusinessFax BusinessPhone Businessstate BusinessStateAddress BusinessUrl BusinessZipCode Cellular Company Department Disabled DisplayName Email FirstName Gender HomeCity HomeCountryRegion .

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.