Tham khảo tài liệu 'www xddl info introducing dot net_5', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 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 .