In my project I declare the one string like public string str="dbname";,
that string value use the overall application.
Where can I declare that string?
Another problem is that I can change that string value after publishing the site in iis,
(or)
I am giving client that time also change the string value, so where I can declare the variable?
please give me any suggestion.
dbname is string value so i can chage that name after publishing or any time
thank u
hemanth
DBName is something that belongs in a configuration file. ASP.NET uses files that are called web.config and they can store ‘Connection strings’, Application specific settings and other settings.
A configuration file can be edited after the program has been deployed to a production server. You can even automate this process so the settings are automatically set if you, for example, deploy to a test server, an acceptance or a production server.
Here is some documentation about how to use configuration files.