Hi,
I am redesigning a site in .net; I come from a Coldfusion background and when designing/writing a web site in coldfusion I could declare a global variable based on conditions in the coldfusion application file (which is coldfusion's equivalent to web.config). For instance, based on the url I would set file paths to graphics etc.
I would like to do that with this site but I read that I can not use conditional statements in the web.config. Is there a way to declare variables based on conditions so that the variables could be accessible to the whole app? If it is possible how would a person go about setting that up?
I am using VS 2005 with vb.net.
Thanks.
I am redesigning a site in .net; I come from a Coldfusion background and when designing/writing a web site in coldfusion I could declare a global variable based on conditions in the coldfusion application file (which is coldfusion's equivalent to web.config). For instance, based on the url I would set file paths to graphics etc.
I would like to do that with this site but I read that I can not use conditional statements in the web.config. Is there a way to declare variables based on conditions so that the variables could be accessible to the whole app? If it is possible how would a person go about setting that up?
I am using VS 2005 with vb.net.
Thanks.