Click here to Skip to main content
15,905,558 members
Home / Discussions / C#
   

C#

 
GeneralRe: StreamReader/StreamWriter Pin
George_George20-May-08 3:15
George_George20-May-08 3:15 
GeneralRe: StreamReader/StreamWriter Pin
Vikram A Punathambekar20-May-08 4:43
Vikram A Punathambekar20-May-08 4:43 
GeneralRe: StreamReader/StreamWriter Pin
George_George20-May-08 23:52
George_George20-May-08 23:52 
GeneralRe: StreamReader/StreamWriter Pin
N a v a n e e t h20-May-08 3:09
N a v a n e e t h20-May-08 3:09 
GeneralRe: StreamReader/StreamWriter Pin
George_George20-May-08 3:13
George_George20-May-08 3:13 
Questionhandling browser events from windows application Pin
mihir raut20-May-08 1:37
mihir raut20-May-08 1:37 
Questioncalling C++ method from C# .net? Pin
cristi_alonso20-May-08 1:36
cristi_alonso20-May-08 1:36 
AnswerRe: calling C++ method from C# .net? Pin
Laddie20-May-08 2:56
Laddie20-May-08 2:56 
GeneralRe: calling C++ method from C# .net? Pin
cristi_alonso20-May-08 18:03
cristi_alonso20-May-08 18:03 
QuestionProblem with CustomEventHandling. Pin
hdv21220-May-08 1:13
hdv21220-May-08 1:13 
AnswerRe: Problem with CustomEventHandling. Pin
buchstaben20-May-08 1:28
buchstaben20-May-08 1:28 
GeneralRe: Problem with CustomEventHandling. Pin
hdv21220-May-08 2:20
hdv21220-May-08 2:20 
Questionbrowser component Pin
asma_panjabi20-May-08 0:42
asma_panjabi20-May-08 0:42 
GeneralRe: browser component Pin
buchstaben20-May-08 1:26
buchstaben20-May-08 1:26 
QuestionWhy the exception "Could not save; currently locked by another user" raise? Pin
nicolus19-May-08 23:56
nicolus19-May-08 23:56 
AnswerRe: Why the exception "Could not save; currently locked by another user" raise? Pin
Christian Graus20-May-08 0:06
protectorChristian Graus20-May-08 0:06 
GeneralRe: Why the exception "Could not save; currently locked by another user" raise? Pin
nicolus20-May-08 1:08
nicolus20-May-08 1:08 
AnswerRe: Why the exception "Could not save; currently locked by another user" raise? Pin
Nouman Bhatti20-May-08 0:14
Nouman Bhatti20-May-08 0:14 
QuestionClient Installation problems.. Pin
ptr2void19-May-08 23:40
ptr2void19-May-08 23:40 
AnswerRe: Client Installation problems.. Pin
Christian Graus20-May-08 0:12
protectorChristian Graus20-May-08 0:12 
AnswerRe: Client Installation problems.. Pin
Nouman Bhatti20-May-08 0:13
Nouman Bhatti20-May-08 0:13 
GeneralRe: Client Installation problems.. Pin
ptr2void20-May-08 2:17
ptr2void20-May-08 2:17 
GeneralRe: Client Installation problems.. Pin
Nouman Bhatti20-May-08 5:06
Nouman Bhatti20-May-08 5:06 
AnswerRe: Client Installation problems.. Pin
Christian Wikander20-May-08 3:14
Christian Wikander20-May-08 3:14 
QuestionRegular expressio to replace \n to html break tag Pin
Exelioindia19-May-08 23:32
Exelioindia19-May-08 23:32 
Hi all,

Any one suggest me a regular expression that replace a "\n" char with HTML break tag( <br /> ). I did this using the following expression

string BodyText=Regex.Replace(Bodymsg, @"\n", "( <br /> )", RegexOptions.Multiline);

Bodymsg is dynamic text from database.

When i try to use the above expression it replaces all the "\n" like "\t\n", "\r\n", but for me the new line "\n" alone should be replaced not the new line with tab or carriage return for eg: "\t\n" or "\r\n" should not be replaced from "\t\n" to \t < br />


Thanks in advance

Know is Drop, Unknown is Ocean

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.