Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 4 Unleased - p 154

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Chú ý Một trong những điều tuyệt vời về ASP NET MVC. Framework là nó có thể sử dụng hầu như bất kỳ ASP NET cơ sở., Bao gồm các mô hình cung cấp toàn bộ. Điều này cho phép bạn tạo ra các ứng dụng MVC với trạng thái phiên, vai trò, thành viên, thẩm định hình thức, và nhiều hơn nữa. | 1504 CHAPTER 33 Building ASPNET MVC Applications NOTE One of the great things about ASPNET MVC Framework is that it can utilize virtually any ASPNET facility including the entire provider model. This enables you to create MVC applications with session state roles membership forms authentication and much more. The stock project structure includes some prepopulated folders Content Starting point for your site s content. By default the Site.css file starts here and you can add subdirectories for images and other media types. Controllers Where all your controllers reside. All controller classes must have a Controller postfix as shown in Figure 33.3. Models A handy starting point for all your web application models. Many enterprise applications start by deleting this folder and placing the models in a reusable class library. Scripts Where all your JavaScript resides. This folder comes prepopulated with a version of jQuery and all the scripts required to support ASP.NET Ajax. Views The root of the view folder hierarchy. Below this folder you can find a folder for each controller named exactly the same as that controller. For example a Views Account folder contains all the views used by the Accountcontroller class. FIGURE 33.3 Stock ASPNET MVC 2 project structure in Solution Explorer. From the Library of Wow eBook Building an MVC Page 1505 Figure 33.3 shows a screenshot of the stock project structure after creating a new ASP.NET MVC project. At this point because the default project template contains enough scaffolding for you to start you can press F5 and watch the application run. Note that the application supports forms authentication new user creation and user login out-of-the-box. Figure 33.4 shows what it looks like when you run the default ASP.NET MVC project. FIGURE 33.4 Default ASPNET MVC 2 application. 33 In the next section you create your own MVC page that shows you how MVC s internal plumbing works. Building an MVC Page This section walks you through the .

TÀI LIỆU 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.