I am new to .net and I usually had a common file which was having information of username,server,password,IPS and fixed integers in php and asp classic which i used to include in all files so that i could use them in any page. Since I have come to know that .net has no include function. how i can do it in asp.net?
Thank You
You wouldn’t necessarily use an include file for sharing variables across a site. In .Net you would normally store values like this in the
AppSettingssection of the web.config file.You can then access the values using code like: