login register Sysop! about ME  

2010년 07월 30일 18시 55분 00초,     조회수 : 144
  제목 : VS2010 데이터베이스 연결
SEQ : 31115 글쓴이 : jwk

작성 포맷 : TEXT 모드, 자동 줄바꿈 사용

web. config
<connectionStrings>
  <add name="ConnectionString" connectionString="Password=inatech;Persist Security Info=True;User 
ID=inatech;Initial Catalog=Inatech;Data Source=PDM_SERVER" />

list.cs
string ConnectionString = ConfigurationManager.ConnectionStrings[
                "ConnectionString"].ConnectionString;

VS2008  버전에서는 이렇게 불러와 사용했는데

VS2010 에서는 ConfigurationManager 가 없는것 같아요..

web.config 에 등록된 데이터베이스 cs에서 어떻게 불러오나요..

  youngsunkr
  2010-08-02(09:02)
캐릭 이미지
혹시나해서요...
System.Configuration 어셈블리를 참조 하셨나요?



제목 작성자 날짜 조회
VS2010 데이터베이스 연결 (1) jwk 2010-07-30 144

 
 
.NET과 Java 동영상 기반의 교육사이트

로딩 중입니다...

서버 프레임워크 지원 : 드원 테크놀로지 (NeoDEEX)
based on ASP.NET 3.5
Creative Commons License
{5}
{2} 읽음   :{3} ({4})