Hello,
This may be a silly question but I may be doing this inefficiently.
In your GetStarted manual it mentions Configless connections, and it has
this sentence "Note that you only need to do this once for the life of your
application."
In the previous version of ES I was creating the connection in the
Page_Init of every page (its the Poker League Management module on PokerDIY).
Code:
protected void Page_Init(object sender, System.EventArgs e)
{
new SmartThinker.DNN.Modules.League.Business.Utils().SetupESConnection();
}
Should I cache the connection (or a flag that it has been done once for this module already) once it has been set and check it each time? I do
not have access to the web config or Global.asax. Or should I at the very least
only instantiate it if it is not a postback?
Thanks
Rodney Joyce
Smart-Thinker.com
PokerDIY.com