Click here to Skip to main content
16,006,442 members
Home / Discussions / C#
   

C#

 
QuestionDo you prefer data binding or doing it yourself? Pin
3DoorsDown16-Oct-06 2:29
3DoorsDown16-Oct-06 2:29 
AnswerRe: Do you prefer data binding or doing it yourself? Pin
Judah Gabriel Himango16-Oct-06 4:51
sponsorJudah Gabriel Himango16-Oct-06 4:51 
AnswerRe: Do you prefer data binding or doing it yourself? Pin
Amar Chaudhary16-Oct-06 9:05
Amar Chaudhary16-Oct-06 9:05 
QuestionHow to Set Focus to a cell on DataGridView Control [modified] Pin
ASysSolvers16-Oct-06 2:19
ASysSolvers16-Oct-06 2:19 
AnswerRe: How to Set Focus to a cell on DataGridView Control Pin
sam#16-Oct-06 2:49
sam#16-Oct-06 2:49 
GeneralRe: How to Set Focus to a cell on DataGridView Control Pin
ASysSolvers16-Oct-06 3:00
ASysSolvers16-Oct-06 3:00 
GeneralRe: How to Set Focus to a cell on DataGridView Control Pin
sam#16-Oct-06 3:24
sam#16-Oct-06 3:24 
QuestionCan't find System.Configuration.ConfigurationManager Pin
ZeedijkMike16-Oct-06 1:56
ZeedijkMike16-Oct-06 1:56 
Hi all,

I want to retrieve settings (connection string etc) from app.config and that shouldn't be a big problem, I thought. Sigh | :sigh:
My app.config looks a little like this:
<configuration><br />
    <configSections><br />
    </configSections><br />
    <connectionStrings><br />
        <add name="vrsConnectionString" <br />
             connectionString="Data Source=LT01;Initial Catalog=vrs;Integrated Security=True"<br />
             providerName="System.Data.SqlClient" /><br />
    </connectionStrings><br />
</configuration>


Searching at the web says I can use something like:
System.Configuration.ConfigurationManager.AppSettings[key]
where key should be replaced with "vrsConnectionString", I presume.
But I can't find that.
I have the:
System.Configuration.ConfigurationSettings.AppSettings[key] (which is obsolete)
And using that returns a null value, I.e. haven't found the key.

I have added: using System.Configuration to my code.
I'm using .Net 2.0.50727
MS Visual Studio 2005 ver: 8.050727.42

Anyone who can explain what I'm doing wrong here?



Mike

AnswerRe: Can't find System.Configuration.ConfigurationManager Pin
albCode16-Oct-06 2:00
albCode16-Oct-06 2:00 
Questionget XML from browser window in C# windows app Pin
jarlath16-Oct-06 1:51
jarlath16-Oct-06 1:51 
AnswerRe: get XML from browser window in C# windows app Pin
Judah Gabriel Himango16-Oct-06 4:52
sponsorJudah Gabriel Himango16-Oct-06 4:52 
GeneralRe: get XML from browser window in C# windows app Pin
jarlath16-Oct-06 6:35
jarlath16-Oct-06 6:35 
QuestionBinding Business Objects to Controls (or not) Pin
Jan Limpens16-Oct-06 1:49
Jan Limpens16-Oct-06 1:49 
AnswerRe: Binding Business Objects to Controls (or not) Pin
Ed.Poore16-Oct-06 2:54
Ed.Poore16-Oct-06 2:54 
GeneralRe: Binding Business Objects to Controls (or not) Pin
Jan Limpens16-Oct-06 2:59
Jan Limpens16-Oct-06 2:59 
Questionhow to check answers Pin
Yustme16-Oct-06 0:40
Yustme16-Oct-06 0:40 
AnswerRe: how to check answers Pin
Colin Angus Mackay16-Oct-06 0:48
Colin Angus Mackay16-Oct-06 0:48 
GeneralRe: how to check answers Pin
Yustme16-Oct-06 1:31
Yustme16-Oct-06 1:31 
GeneralRe: how to check answers Pin
Colin Angus Mackay16-Oct-06 1:51
Colin Angus Mackay16-Oct-06 1:51 
GeneralRe: how to check answers Pin
Yustme16-Oct-06 2:00
Yustme16-Oct-06 2:00 
GeneralRe: how to check answers Pin
Colin Angus Mackay16-Oct-06 2:04
Colin Angus Mackay16-Oct-06 2:04 
GeneralRe: how to check answers [modified] Pin
Yustme16-Oct-06 2:48
Yustme16-Oct-06 2:48 
GeneralRe: how to check answers Pin
Colin Angus Mackay16-Oct-06 5:51
Colin Angus Mackay16-Oct-06 5:51 
GeneralRe: how to check answers Pin
Yustme16-Oct-06 5:55
Yustme16-Oct-06 5:55 
QuestionProblem with button.Image . Pin
hdv21216-Oct-06 0:30
hdv21216-Oct-06 0:30 

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.