re:
how come I need to compile for this data to get set?
You don't. All that's needed is for the Application to start.
re:
how come it doesnt read the file at run time?
It does.
re:
What you do is read the value of ConfigurationManager.AppSettings["u"]
from the server's memory.
No compilation; no reading of the file.
web.config is automatically read into memory when the Application starts.
Juan T. Llibre, asp.net MVP
aspnetfaq.com :
http://www.aspnetfaq.com/
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
rjl said:
I have the following in code:
ConfigurationManager.AppSettings["u"]
how come I need to compile for this data to get set? how come it doesnt
read the file at run time? How can I?