Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: test Pin
Ennis Ray Lynch, Jr.28-Jan-08 8:06
Ennis Ray Lynch, Jr.28-Jan-08 8:06 
GeneralRe: test Pin
Member 462175228-Jan-08 8:07
Member 462175228-Jan-08 8:07 
GeneralRe: test Pin
Member 462175228-Jan-08 8:24
Member 462175228-Jan-08 8:24 
GeneralA window opening problem Pin
DSdragondude28-Jan-08 7:54
DSdragondude28-Jan-08 7:54 
GeneralRe: A window opening problem Pin
LongRange.Shooter28-Jan-08 8:10
LongRange.Shooter28-Jan-08 8:10 
GeneralRe: A window opening problem Pin
DSdragondude28-Jan-08 8:27
DSdragondude28-Jan-08 8:27 
GeneralRe: A window opening problem Pin
MarkB77728-Jan-08 9:24
MarkB77728-Jan-08 9:24 
Generalwriting quotes with data to a text file..not quite what I wanted as output Pin
LongRange.Shooter28-Jan-08 7:51
LongRange.Shooter28-Jan-08 7:51 
I have a variable I need to add to an output string for generating some C# code.

The intent is the line should be
ConfigurationManager.ConnectionString["Talker"].ToString();
and the code to generate that line is as such:
C#
    StringBuilder conName = new StringBuilder();
    conName.Append("\t\t\t\t\t\t");
    conName.Append("ConfigurationManager.ConnectionStrings[\"");
    conName.Append(parameters.UseConnectionStringName);
    conName.Append("\"].ToString();");
swBaseClass.WriteLine( conName.ToString() );


When I look at conName it is formatted correctly.
ConfigurationManager.ConnectionString["Talker"].ToString();
When I view the resulting code the line reads
ConfigurationManager.ConnectionString[""].ToString();

Any suggestions on why my variable name is not being written out???
GeneralRe: writing quotes with data to a text file..not quite what I wanted as output Pin
PIEBALDconsult28-Jan-08 8:19
mvePIEBALDconsult28-Jan-08 8:19 
GeneralRe: writing quotes with data to a text file..not quite what I wanted as output Pin
LongRange.Shooter28-Jan-08 8:24
LongRange.Shooter28-Jan-08 8:24 
GeneralRe: writing quotes with data to a text file..not quite what I wanted as output Pin
PIEBALDconsult28-Jan-08 8:42
mvePIEBALDconsult28-Jan-08 8:42 
GeneralProblem solved Pin
LongRange.Shooter28-Jan-08 8:52
LongRange.Shooter28-Jan-08 8:52 
GeneralRe: writing quotes with data to a text file..not quite what I wanted as output Pin
PIEBALDconsult28-Jan-08 8:53
mvePIEBALDconsult28-Jan-08 8:53 
QuestionHow to update Outlook appointments Pin
NewToAspDotNet28-Jan-08 6:59
NewToAspDotNet28-Jan-08 6:59 
GeneralGDI+ Performance Pin
#realJSOP28-Jan-08 6:30
mve#realJSOP28-Jan-08 6:30 
GeneralRe: GDI+ Performance Pin
Judah Gabriel Himango28-Jan-08 7:02
sponsorJudah Gabriel Himango28-Jan-08 7:02 
GeneralRe: GDI+ Performance Pin
Ennis Ray Lynch, Jr.28-Jan-08 8:07
Ennis Ray Lynch, Jr.28-Jan-08 8:07 
GeneralRe: GDI+ Performance Pin
#realJSOP28-Jan-08 8:30
mve#realJSOP28-Jan-08 8:30 
GeneralRe: GDI+ Performance Pin
Mike Hankey28-Jan-08 11:13
mveMike Hankey28-Jan-08 11:13 
GeneralRe: GDI+ Performance Pin
#realJSOP28-Jan-08 13:22
mve#realJSOP28-Jan-08 13:22 
GeneralRe: GDI+ Performance Pin
Mike Hankey28-Jan-08 13:45
mveMike Hankey28-Jan-08 13:45 
GeneralDeleting data from Excel file in C# Pin
meeram39528-Jan-08 5:56
meeram39528-Jan-08 5:56 
GeneralRe: Deleting data from Excel file in C# Pin
led mike28-Jan-08 6:22
led mike28-Jan-08 6:22 
GeneralQuestion on using the & sign and string Pin
avengerzx928-Jan-08 5:37
avengerzx928-Jan-08 5:37 
GeneralRe: Question on using the & sign and string Pin
avengerzx928-Jan-08 5:42
avengerzx928-Jan-08 5:42 

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.