Arch4ngel
Senior Contributor
Did I drink too much beer last weekend ?
Okay... I want to put all my SqlDataAdapter and SqlConnection in my Global.asax because I used them so often that it's too much trouble putting them apart in each page.
How can I resolve my problem ? I wanted to resolve it by property but... I need to instanciate Global to access them... so they don't containt much information from page to page.
Solution ?
N.B.: The use of Session or Application isn't recommended. Since putting an object in their content lock an application thread as long as it is present... I'll loose a bunch of performance. (Learned this at school... is it right ?)
Okay... I want to put all my SqlDataAdapter and SqlConnection in my Global.asax because I used them so often that it's too much trouble putting them apart in each page.
How can I resolve my problem ? I wanted to resolve it by property but... I need to instanciate Global to access them... so they don't containt much information from page to page.
Solution ?
N.B.: The use of Session or Application isn't recommended. Since putting an object in their content lock an application thread as long as it is present... I'll loose a bunch of performance. (Learned this at school... is it right ?)