Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 ?)

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Posted

Recompilation is automatic on ASP.NET pages (what they told me)

Okay... What do I do to add it to Web.Config ?

 

I'm talking about SqlDataAdapter and SqlConnection objects. Not a connection string.

 

:) :p

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Posted

And this class... I make it static and I access it through my pages ?

Does it make more sense ?

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Posted
Thanx helped a lot.

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...