Link to home
Start Free TrialLog in
Avatar of jeremiahscott
jeremiahscott

asked on

ASP.net Global.aspx

I read from the web.config in my global.aspx. How can I get this variable from my form?

protected void Application_Start(Object sender, EventArgs e)
{
   propertyId = ConfigurationSettings.AppSettings.Get("ID");      
}
Avatar of sforcier
sforcier

Have you tried:

propertyId = ConfigurationSettings.AppSettings("ID");
Avatar of jeremiahscott

ASKER

yea, i call that once when my app starts up in global.aspx. should i just call that each time from my form instead? is it costly to do that?
ASKER CERTIFIED SOLUTION
Avatar of sforcier
sforcier

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
gotcha. thx!