Config file depending on your different environments. There are two ways to achieve this, either by using the solution configurations in Visual Studio or by using the pubxml files in your project. Next, look for the Active solution configuration drop down and select "New". Give your configuration a name - I am going to call mine "Staging". I am also going to copy the settings from another transform. Finally, right-click on Web. Config file and choose "Add Config Transform". That's it! Next time you deploy simply choose the appropriate solution configuration and your settings will be applied.
You can also achieve the same result by using a publish profile file. Here I will explain step by step how we can use multiple web. First create one new web application that contains Default. Now right click on your application and select New folder after creation of new folder right click on new folder select Add new item and add one aspx page and one web.
After that write the following code in root folder web. After that open Default. Root Folder values. AppKey value:. Appkey Test value:. Now run your application and check the output for root folder. After that open the sub root folder web. After that open ChildPage. SubRoot Folder values. Now run your application and check the output for sub root folder. If you observe above outputs Default. In this way we can use multiple web. I hope it helps you. Newer Post Older Post Home. What is cross-page posting in ASP.
How to redirect a page in asp. How to register custom server control on ASP. NET page? How do you validate Input data in Asp. What's the difference between ViewData and ViewBag? Difference between Response. Redirect and Server. Transfer What is the function of the CustomValidator control?
Define RequiredFieldValidator? Net What are the major events in Global. Asax file? What is Event Bubbling in asp. What is Delay signing? What is the difference between in-proc and out-of-proc?
0コメント