Solved

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

Posted on 2004-10-03
3
933 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

688 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