A
A.M
Hi,
I have an encrypted database connection string stored in web.config file and
i need to have the connection string several times in my application.
What would be the best way to have that connection string in memory variable
?
I am thinking to add a member variable to Global class in global.aspx.cs and
initialize it in Application_Start event handler. Is it the best practice?
Thanks,
Ali
I have an encrypted database connection string stored in web.config file and
i need to have the connection string several times in my application.
What would be the best way to have that connection string in memory variable
?
I am thinking to add a member variable to Global class in global.aspx.cs and
initialize it in Application_Start event handler. Is it the best practice?
Thanks,
Ali