Solved

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

Posted on 2004-10-03
3
929 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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