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

Professional in C# and Visual Basic Part 8. 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 1 Application and Page Frameworks control onto any of your .aspx pages. Dragging a user control onto the .aspx page causes Visual Studio 2008 to create an Register directive at the top of the page. This registers your user control on the page so that the control can then be accessed on the .aspx page by a specific name. The Register directive supports five attributes as described in the following table. Attribute Description Assembly The assembly you are associating with the TagPrefix. Namespace The namespace to relate with TagPrefix. Src The location of the user control. TagName The alias to relate to the class name. TagPrefix The alias to relate to the namespace. Here is an example of how to use the Register directive to import a user control to an page Register TagPrefix MyTag Namespace Assembly MyAssembly Assembly The Assembly directive attaches assemblies the building blocks of .NET applications to an page or user control as it compiles thereby making all the assembly s classes and interfaces available to the page. This directive supports two attributes Name and Src. Name Enables you to specify the name of an assembly used to attach to the page files. The name of the assembly should include the file name only not the file s extension. For instance if the file is the value of the name attribute should be MyAssembly. Src Enables you to specify the source of the assembly file to use in compilation. The following provides some examples of how to use the Assembly directive Assembly Name MyAssembly Assembly Src @PreviousPageType This directive is used to specify the page from which any cross-page postings originate. Cross-page posting between pages is explained later in the section Cross-Page Posting and again in Chapter 17. The PreviousPageType directive is a new directive that works with the new cross-page posting capability that provides. This simple directive contains only

TỪ KHÓA LIÊN QUAN
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.