TAILIEUCHUNG - Introducing dot NET 4 0 with Visual Studio_4

Để sử dụng một cú nhấp chuột xuất bản, bạn sẽ cần một hoster có hỗ trợ One Click (tại thời điểm viết Giảm ASP hoặc OrcsWeb) hoặc, nếu triển khai máy chủ của riêng của bạn, có kích hoạt dịch vụ IIS quản lý từ xa | CHAPTER 10 One-Click Publishing One-click publishing uses IIS remote management services to allow you to publish your application to a remote server with one click. One-click publishing only deploys files that have changed so is very efficient. To use one-click publishing you will need a hoster that supports One Click at the time of writing Discount ASP or OrcsWeb or if deploying to your own server to have IIS remote management services enabled http en-us library cc731771 .aspx . One Click is also only available for projects in the VS2010 format. Before we can use one-click publishing we need to configure a number of settings. Right-click on your project and select the Publish option. You will see a screen similar to Figure . Figure 10-4. One-click publishing profile settings Fill in the details as shown using MSDeploy Publish as the Publish Method and click Close. Once these details are completed you can publish your application by selecting the Publish Profile you want to use from the drop-down menu top left-hand side of the VS2010 screen and clicking the Publish button Figure 10-5 . Note if this tool bar is not showing right-click on the toolbar and select Web One Click Publish. VS2010 allows a single project to contain up to 50 different one click publishing profiles. 237 CHAPTER 10 Figure 10-5. Initiating one-click publishing ViewState ViewState is the mechanism by which stores the state of controls on a web form. This information is held in a hidden form value called_VIEWSTATE. Depending on the page s content ViewState can get pretty large and is often unnecessary for controls that don t change such as labels. gives you the ability for controls to inherit ViewState settings from parent controls by using the new ViewStateMode property. This makes it very easy to efficiently set ViewStateMode on a large number of controls. ViewStateMode has three settings Enabled ViewState used Disabled .

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