Click here to Skip to main content
15,923,376 members
Home / Discussions / C#
   

C#

 
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 
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 
mwith wrote:
Hi sirs and madams,

(fixed that for ya)

You need to have:

using System.Configuration;

at the top of your code file. You might also need to explicitly add the reference to the System.Configuration assembly to your project. (Right-click on 'References' in the solution explorer, and click 'Add Reference...', then select the System.Configuration assembly, which is under the .Net tab in the window that pops up, and add that assembly to your project.)

You will need to add a name attribute to your config file entry, or the app can't tell what you mean by 'dbconnection'. I do it like this:

<appSettings>
<add key="dbconnection" value="myconnectionstringwhateveritis"/>
</appSettings>

Also, I hope you didn't just give us all your SA login info. You need to change that right away if you did.

"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

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 
Questionredirecting the contents of command promt to a file Pin
sanki77923-Nov-06 19:23
sanki77923-Nov-06 19:23 
QuestionUsing java script to a XML onto grid view Pin
ah_jiang_923-Nov-06 18:54
ah_jiang_923-Nov-06 18:54 
AnswerRe: Using java script to a XML onto grid view Pin
Benoy Bose23-Nov-06 19:33
Benoy Bose23-Nov-06 19:33 
Questionhow to open a folder in a designated location Pin
Shirley, Wang23-Nov-06 18:14
Shirley, Wang23-Nov-06 18:14 

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.