Solved

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

Posted on 2004-10-03
3
927 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:eladka
3 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 125 total points
ID: 12212797
I prefer to use me.Session("sqlConnectionString") = strConnectionString, and retrieve like this:

msgbox me.Session("sqlConnectionString")
0
 

Author Comment

by:eladka
ID: 12331559
Great !
It works ok
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now