WebConfig file
-
I want to update webconfig file in a system or in winform using c#. I have a web application and system application but i want the system application updates the databasename, username and password. I tried this one: Configuration config = WebConfigurationManager.OpenWebConfiguration("~\\DataMaintenance\\Web.Config"); but its not work :(
****************************** I just want to know everything
-
I want to update webconfig file in a system or in winform using c#. I have a web application and system application but i want the system application updates the databasename, username and password. I tried this one: Configuration config = WebConfigurationManager.OpenWebConfiguration("~\\DataMaintenance\\Web.Config"); but its not work :(
****************************** I just want to know everything
In windows application config file named as App.Config. You can try following procedure to update data in App.config. Create a Place Holder for your DataBaseName. read App.config from Application.StartupPath as a text File Replace the Place Holder and save the file
-
In windows application config file named as App.Config. You can try following procedure to update data in App.config. Create a Place Holder for your DataBaseName. read App.config from Application.StartupPath as a text File Replace the Place Holder and save the file
-
no. no. no. what i mean is is it possible to write web.config from a windows form.
****************************** I just want to know everything
again i am confused. I got two impression from your statements 1.You want to make an application which produces WebConfig Files 2.You Want to Update an webConfig from a windows Application Ans: 1. Yes you can. Just follow the formatting and tags given in webconfig file and write is as normal text File and save it as desired name. 2. Yes you can. Create a web service that does the desired changes i.e. upadting your webconfig and call it from your windows application