Using <sessionState sqlConnectionString="..." /> in WEB.CONFIG

Hi,

I have web-app which uses SQL server to get/set data.

Where is the best place to hold the connection string data?

In WEB.CONFIG, attribute sqlConnectionString="..."  in tag <sessionState> used for session-data-saving, right?

10x, El.
eladkaAsked:
Who is Participating?
 
eozz_2000Connect With a Mentor Commented:
I prefer to use me.Session("sqlConnectionString") = strConnectionString, and retrieve like this:

msgbox me.Session("sqlConnectionString")
0
 
eladkaAuthor Commented:
Great !
It works ok
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.