S
simon
hello,
what i'm looking to do is store the path of the app on a the server
for reuse in the site.
my thoughts so far are...
-make a key in the web.config file
-retrieve the value in globals.asax in application startup
-store it in a variable that can be reference from all pages
-use that variable on many pages
my questions
1) what is the syntax of the lines in global.asax page to put this
value into a variable that is accessible to other site pages
2) what is the syntax of using a variable in an aspx page (that may or
may not be part of a .net object - straight html).
for example to use this variable as the first part of a path..
<% rootDir %> & 'images/logo.gif'
thanks for any tips
what i'm looking to do is store the path of the app on a the server
for reuse in the site.
my thoughts so far are...
-make a key in the web.config file
-retrieve the value in globals.asax in application startup
-store it in a variable that can be reference from all pages
-use that variable on many pages
my questions
1) what is the syntax of the lines in global.asax page to put this
value into a variable that is accessible to other site pages
2) what is the syntax of using a variable in an aspx page (that may or
may not be part of a .net object - straight html).
for example to use this variable as the first part of a path..
<% rootDir %> & 'images/logo.gif'
thanks for any tips