Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: Error In Connection Pin
padmanabhan N23-Jun-09 20:56
padmanabhan N23-Jun-09 20:56 
GeneralRe: Error In Connection Pin
rhtbhegade23-Jun-09 21:00
rhtbhegade23-Jun-09 21:00 
GeneralRe: Error In Connection Pin
Philip.F23-Jun-09 21:29
Philip.F23-Jun-09 21:29 
GeneralRe: Error In Connection Pin
rhtbhegade23-Jun-09 22:55
rhtbhegade23-Jun-09 22:55 
QuestionHow to get active window event Pin
Jacobb Michael23-Jun-09 19:37
Jacobb Michael23-Jun-09 19:37 
AnswerRe: How to get active window event Pin
Anubhava Dimri23-Jun-09 19:50
Anubhava Dimri23-Jun-09 19:50 
GeneralRe: How to get active window event Pin
Jacobb Michael24-Jun-09 1:18
Jacobb Michael24-Jun-09 1:18 
AnswerRe: How to get active window event Pin
Anubhava Dimri24-Jun-09 2:11
Anubhava Dimri24-Jun-09 2:11 
GeneralRe: How to get active window event Pin
Jacobb Michael24-Jun-09 2:18
Jacobb Michael24-Jun-09 2:18 
GeneralRe: How to get active window event Pin
Anubhava Dimri24-Jun-09 2:32
Anubhava Dimri24-Jun-09 2:32 
QuestionIs there any learning docs for begines? Pin
behesht23-Jun-09 19:01
behesht23-Jun-09 19:01 
AnswerRe: Is there any learning docs for begines? Pin
behesht23-Jun-09 19:22
behesht23-Jun-09 19:22 
GeneralRe: Is there any learning docs for begines? Pin
Anubhava Dimri23-Jun-09 19:42
Anubhava Dimri23-Jun-09 19:42 
AnswerRe: Is there any learning docs for begines? Pin
JollyMansArt23-Jun-09 19:29
JollyMansArt23-Jun-09 19:29 
QuestionXMODEM File Transfer Pin
Sifar - 023-Jun-09 18:41
Sifar - 023-Jun-09 18:41 
AnswerRe: XMODEM File Transfer Pin
Philip.F23-Jun-09 21:33
Philip.F23-Jun-09 21:33 
QuestionXML -- Call me stupid -- LOL [modified] Pin
JollyMansArt23-Jun-09 16:40
JollyMansArt23-Jun-09 16:40 
AnswerRe: XML -- Call me stupid -- LOL Pin
N a v a n e e t h23-Jun-09 18:13
N a v a n e e t h23-Jun-09 18:13 
QuestionRe: XML -- Call me stupid -- LOL [modified] Pin
JollyMansArt23-Jun-09 19:04
JollyMansArt23-Jun-09 19:04 
I tried that but I can not seem to get the value to return properly... Here is what I do..


I go to the application project manager,
right click on project
Say properties
Go to the settings tab and put


Name: SQLConnectionString
Type: string
Scope: Application
Value: "Data Source=PA-DEVPLATFORM1\SQL2005;Initial Catalog=AppLoader;Persist Security Info=True;User ID=Mike;Password=zephyr"


This SQLConnection String I am wanting in a external XML file editable to the end user so I do not have to recompile the application for every sql server change.

Here is the code I am using to call it. It does not work.
SqlConnection conn = new SqlConnection(Properties.Settings.Default.SQLConnectionString);


I can not seem to get
ConfigurationSettings.AppSettings
to be identified as a valid command...

I got close by adding
public static NameValueCollection AppSettings { get; }

but the applications says it needs a set added to it.

PLEASE any help on this?



----------------------------------------------------------

So far I have figured out to get the setting I think I need to do this?
SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["SQLConnectionString"].ToString());
But it still comes back saying the string is null... Why?

modified on Wednesday, June 24, 2009 1:54 AM

AnswerRe: XML -- Call me stupid -- LOL [modified] Pin
JollyMansArt23-Jun-09 19:58
JollyMansArt23-Jun-09 19:58 
AnswerRe: XML -- Call me stupid -- LOL Pin
OriginalGriff23-Jun-09 21:27
mveOriginalGriff23-Jun-09 21:27 
GeneralRe: XML -- Call me stupid -- LOL Pin
Sk9323-Jun-09 23:07
Sk9323-Jun-09 23:07 
AnswerRe: XML -- Call me stupid -- LOL Pin
Eslam Afifi23-Jun-09 18:25
Eslam Afifi23-Jun-09 18:25 
QuestionHttp post [modified] Pin
kibromg23-Jun-09 12:32
kibromg23-Jun-09 12:32 
AnswerRe: Http post Pin
Gary Stafford23-Jun-09 14:34
Gary Stafford23-Jun-09 14:34 

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.