Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
QuestionListview index problem Pin
GermanDM23-Nov-06 21:08
GermanDM23-Nov-06 21:08 
AnswerRe: Listview index problem Pin
Jasmine250123-Nov-06 21:25
Jasmine250123-Nov-06 21:25 
Questionremote execution Pin
ingsgr01@gmail.com23-Nov-06 20:42
ingsgr01@gmail.com23-Nov-06 20:42 
AnswerRe: remote execution Pin
Pete O'Hanlon24-Nov-06 1:26
mvePete O'Hanlon24-Nov-06 1:26 
QuestionNeed a custom Explorer... Pin
Waqas Nasir23-Nov-06 20:36
Waqas Nasir23-Nov-06 20:36 
AnswerRe: Need a custom Explorer... Pin
Jasmine250123-Nov-06 21:01
Jasmine250123-Nov-06 21:01 
AnswerRe: Need a custom Explorer... Pin
Stefan Troschuetz23-Nov-06 21:24
Stefan Troschuetz23-Nov-06 21:24 
QuestionAbout SqlConnection String in App.config file Pin
mwith23-Nov-06 20:35
mwith23-Nov-06 20:35 
Confused | :confused: Cry | :(( Hi sir,

I wrote a app.config as follows

<appsettings>
<add name="dbConnection"
="" connectionstring="data source=MANGALA;initial catalog=Northwind;persist security info=False;user id=sa;pwd=sa;workstation id=MANGALA;packet size=4096" providername="System.Data.SqlClient">




I called that connection string like this,

SqlConnection cn;
sConn = System.Configuration.ConfigurationManager.AppSettings("dbconnection");
cn = new SqlConnection(sConn);
cn.Open();

then it is an error :

The type or namespace name 'ConfigurationManager' does not exist in the class or namespace 'System.Configuration' (are you missing an assembly reference?)

I am a beginner for c# can you help me?

thank you
AnswerRe: About SqlConnection String in App.config file Pin
Eduard Keilholz23-Nov-06 21:07
Eduard Keilholz23-Nov-06 21:07 
GeneralRe: About SqlConnection String in App.config file Pin
mwith23-Nov-06 21:19
mwith23-Nov-06 21:19 
GeneralRe: About SqlConnection String in App.config file Pin
Jasmine250123-Nov-06 21:27
Jasmine250123-Nov-06 21:27 
AnswerRe: About SqlConnection String in App.config file Pin
Jasmine250123-Nov-06 21:16
Jasmine250123-Nov-06 21:16 
GeneralRe: About SqlConnection String in App.config file Pin
Russell Jones23-Nov-06 21:31
Russell Jones23-Nov-06 21:31 
GeneralRe: About SqlConnection String in App.config file Pin
Eduard Keilholz23-Nov-06 22:36
Eduard Keilholz23-Nov-06 22:36 
GeneralRe: About SqlConnection String in App.config file Pin
Jasmine250123-Nov-06 22:43
Jasmine250123-Nov-06 22:43 
GeneralRe: About SqlConnection String in App.config file Pin
Eduard Keilholz23-Nov-06 22:57
Eduard Keilholz23-Nov-06 22:57 
AnswerRe: About SqlConnection String in App.config file Pin
Colin Angus Mackay24-Nov-06 3:35
Colin Angus Mackay24-Nov-06 3:35 
Question[Message Deleted] Pin
PREMSONBABY23-Nov-06 19:59
PREMSONBABY23-Nov-06 19:59 
AnswerRe: Hi regarding ERP Pin
Jasmine250123-Nov-06 20:30
Jasmine250123-Nov-06 20:30 
General[Message Deleted] Pin
PREMSONBABY23-Nov-06 23:20
PREMSONBABY23-Nov-06 23:20 
GeneralRe: Hi regarding ERP Pin
Jasmine250124-Nov-06 19:45
Jasmine250124-Nov-06 19:45 
QuestionDevexpress Mask Editor Pin
praveenqwe23-Nov-06 19:56
praveenqwe23-Nov-06 19:56 
Questionget unused port number Pin
utsav turray23-Nov-06 19:50
utsav turray23-Nov-06 19:50 
AnswerRe: get unused port number Pin
Shajeel23-Nov-06 20:16
Shajeel23-Nov-06 20:16 
QuestionDate Validation Pin
Deepasubramanian23-Nov-06 19:27
Deepasubramanian23-Nov-06 19:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.