TAILIEUCHUNG - Professional ASP.NET 3.5 in C# and Visual Basic Part 23

Professional in C# and Visual Basic Part 23. 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 Listing 3-39 Uploading the file contents into a Byte array VB Dim myByteArray As Byte Dim myStream As myStream myByteArray C Byte myByteArray myStream myStream myByteArray In this example instances of a Byte array and a MemoryStream object are created. First the MemoryStream object is created using the FileUpload control s Filecontent property as you did previously. Then it s fairly simple to use the MemoryStream object s ToArray method to populate the myByteArray instance. After the file is placed into a Byte array you can work with the file contents as necessary. MultiView and View Server Controls The MultiView and View server controls work together to give you the capability to turn on off sections of an page. Turning sections on and off which means activating or deactivating a series of View controls within a MultiView control is similar to changing the visibility of Panel controls. For certain operations however you may find that the MultiView control is easier to manage and work with. The sections or views do not change on the client-side rather they change with a postback to the server. You can put any number of elements and controls in each view and the end user can work through the views based upon the sequence numbers that you assign to the views. You can build these controls like all server controls from the source view or design view. If working with Visual Studio 2008 you can drag and drop a MultiView control onto the design surface and then drag and drop any number of View controls inside the MultiView control. Place the elements you want within the View controls. When you are finished you have something like the view shown in Figure 3-41. You also can create your controls directly in the code as shown in Listing 3-40. Listing 3-40 Using the MultiView and View server controls VB @ Page

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
8    164    3    24-12-2024
11    164    2    24-12-2024
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.