Click here to Skip to main content
15,885,835 members
Home / Discussions / C#
   

C#

 
QuestionConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 7:27
Zeokat19-Jun-09 7:27 
AnswerRe: ConfigurationManager - how to read/write into a custom section? Pin
Manas Bhardwaj19-Jun-09 9:37
professionalManas Bhardwaj19-Jun-09 9:37 
GeneralRe: ConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 9:48
Zeokat19-Jun-09 9:48 
AnswerRe: ConfigurationManager - how to read/write into a custom section? Pin
Henry Minute19-Jun-09 10:18
Henry Minute19-Jun-09 10:18 
GeneralRe: ConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 10:34
Zeokat19-Jun-09 10:34 
QuestionReplace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:01
professionalVimalsoft(Pty) Ltd19-Jun-09 7:01 
AnswerRe: Replace Function Pin
musefan19-Jun-09 7:14
musefan19-Jun-09 7:14 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:23
professionalVimalsoft(Pty) Ltd19-Jun-09 7:23 
Thanks
i used it this way

string Username = "Vuyiswa";

          string Password = "secret";

          string strBody = @"<p>Thank you for using !obooking System <br><br> Username:(Username)<br><br>Password:(Password)<br<br>Kind Regards !oBooking</p>";
      strBody = strBody.Replace("(Username)", Username).Replace("(Password)", Password);

          Response.Write(strBody)


but what is the Difference between this
strBody.Replace("(Username)",Username);

strBody.Replace("(Password)",Password);


and this working code
strBody = strBody.Replace("(Username)", Username).Replace("(Password)", Password);


Thanks

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:34
sitebuilderLuc Pattyn19-Jun-09 7:34 
AnswerRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:33
sitebuilderLuc Pattyn19-Jun-09 7:33 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:36
professionalVimalsoft(Pty) Ltd19-Jun-09 7:36 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:38
musefan19-Jun-09 7:38 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:39
professionalVimalsoft(Pty) Ltd19-Jun-09 7:39 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:43
sitebuilderLuc Pattyn19-Jun-09 7:43 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:48
professionalVimalsoft(Pty) Ltd19-Jun-09 7:48 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:37
musefan19-Jun-09 7:37 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:45
sitebuilderLuc Pattyn19-Jun-09 7:45 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:51
musefan19-Jun-09 7:51 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:57
sitebuilderLuc Pattyn19-Jun-09 7:57 
Questiondirect access to file memory Pin
sahandshokri19-Jun-09 5:52
sahandshokri19-Jun-09 5:52 
AnswerRe: direct access to file memory Pin
0x3c019-Jun-09 6:00
0x3c019-Jun-09 6:00 
AnswerRe: direct access to file memory Pin
Dave Kreskowiak19-Jun-09 10:38
mveDave Kreskowiak19-Jun-09 10:38 
GeneralRe: direct access to file memory Pin
Mark Brend9-Aug-09 3:33
Mark Brend9-Aug-09 3:33 
GeneralRe: direct access to file memory Pin
Dave Kreskowiak9-Aug-09 4:01
mveDave Kreskowiak9-Aug-09 4:01 
GeneralRe: direct access to file memory Pin
Mark Brend10-Aug-09 1:48
Mark Brend10-Aug-09 1:48 

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.