Where to run initialization code in Asp.net MVC
Posted
by Nosh
on Stack Overflow
See other posts from Stack Overflow
or by Nosh
Published on 2010-03-09T03:15:48Z
Indexed on
2010/03/09
3:21 UTC
Read the original article
Hit count: 358
I need to run some code that will fetch some configuration values from the web.config during first run of an asp.net mvc application. These values will not change frequently but that is not my main concern.
One way that I can think of is calling the method in Application_Start() method in the global.asax.cs file, but I am hoping someone has a better idea.
© Stack Overflow or respective owner