J
Justin Morris via DotNetMonster.com
i am starting to develop some websites using ASP.NET, and would like
clearification on global.asax and web.config.
I have several variables that are specific to certain websites, Admin
Email, Company Name, Company Phone, Address...so on. I would like to store
these some place and call them throughout the web pages or applications.
These pages and apps are being used by several sites but the actions don't
change.
Example = Newsletter sign up -> the same application just changing the from
email address and website name on the auto email sent to user.
Example = Footer. The footer page is the same just change the company name
and address.
Instead of changing each instance of the company name or email in the
webpages I would like store a list of variables in one place. Should this
be in the global.asax or web.config. I don't think a database is necessary
because these variables shouldn't change (often) once the site is setup
clearification on global.asax and web.config.
I have several variables that are specific to certain websites, Admin
Email, Company Name, Company Phone, Address...so on. I would like to store
these some place and call them throughout the web pages or applications.
These pages and apps are being used by several sites but the actions don't
change.
Example = Newsletter sign up -> the same application just changing the from
email address and website name on the auto email sent to user.
Example = Footer. The footer page is the same just change the company name
and address.
Instead of changing each instance of the company name or email in the
webpages I would like store a list of variables in one place. Should this
be in the global.asax or web.config. I don't think a database is necessary
because these variables shouldn't change (often) once the site is setup