Click here to Skip to main content
15,918,596 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: linkbutton +asp.net 2. 0+ c# [modified] Pin
Parwej Ahamad7-Mar-07 22:30
professionalParwej Ahamad7-Mar-07 22:30 
AnswerRe: linkbutton +asp.net 2. 0+ c# Pin
badgrs8-Mar-07 0:40
badgrs8-Mar-07 0:40 
Question"Lock" Gridview row Pin
GermanDM7-Mar-07 21:42
GermanDM7-Mar-07 21:42 
AnswerRe: "Lock" Gridview row Pin
ToddHileHoffer8-Mar-07 3:57
ToddHileHoffer8-Mar-07 3:57 
QuestionHow to Stop the page sumbission Pin
subbu Manikonda7-Mar-07 21:28
subbu Manikonda7-Mar-07 21:28 
AnswerRe: How to Stop the page sumbission Pin
Arindam Tewary7-Mar-07 22:07
professionalArindam Tewary7-Mar-07 22:07 
Questionseting asp web site on LAN Pin
aransiola7-Mar-07 20:46
aransiola7-Mar-07 20:46 
Questiondifference between carriage return(\r) and new line(\n) Pin
VishalSharmaDev7-Mar-07 20:22
VishalSharmaDev7-Mar-07 20:22 
hi

can any body explain what is the difference between carriage return (\r) or you can say Enter and New Line character(\n)..

both are treated as same..

in .net(c#) if you write a file using stream writer
like this.

StreamWriter writer=new StreamWriter("c:\\test.txt");
writer.Write("Hello\r\n------\r\nHow are You.");
writer.Close();

will print this..

Hello
------
How are You.

or if you use
StreamWriter writer=new StreamWriter("c:\\test.txt");
writer.Write("Hello\r------\rHow are You.");
writer.Close();

then the results will again be same as

Hello
------
How are You.

and finally if you use like this
StreamWriter writer=new StreamWriter("c:\\test.txt");
writer.Write("Hello\n------\nHow are You.");
writer.Close();

then again the result will be same as

Hello
------
How are You.

then what is the difference between \r and \n

please explain

regards
Vishal

Thanks & Regards

Vishal Sharma
vishalsharma556@yahoo.co.in

AnswerRe: difference between carriage return(\r) and new line(\n) Pin
Guffa7-Mar-07 21:48
Guffa7-Mar-07 21:48 
GeneralRe: difference between carriage return(\r) and new line(\n) Pin
VishalSharmaDev7-Mar-07 22:26
VishalSharmaDev7-Mar-07 22:26 
AnswerRe: difference between carriage return(\r) and new line(\n) Pin
Guffa7-Mar-07 22:42
Guffa7-Mar-07 22:42 
GeneralRe: difference between carriage return(\r) and new line(\n) Pin
Amit Agarrwal8-Mar-07 0:15
Amit Agarrwal8-Mar-07 0:15 
AnswerRe: difference between carriage return(\r) and new line(\n) Pin
Guffa8-Mar-07 1:42
Guffa8-Mar-07 1:42 
QuestionIE proxy Setting Problem Pin
Amit Agarrwal7-Mar-07 20:20
Amit Agarrwal7-Mar-07 20:20 
QuestionSQL statement Pin
nzibi7-Mar-07 20:15
nzibi7-Mar-07 20:15 
QuestionDataGrid Paging Problem Pin
Khan.Bangash7-Mar-07 20:13
Khan.Bangash7-Mar-07 20:13 
AnswerRe: DataGrid Paging Problem Pin
Harini N K7-Mar-07 21:43
Harini N K7-Mar-07 21:43 
GeneralRe: DataGrid Paging Problem Pin
Khan.Bangash7-Mar-07 22:28
Khan.Bangash7-Mar-07 22:28 
QuestionHow to set IE proxy Pin
Amit Agarrwal7-Mar-07 19:52
Amit Agarrwal7-Mar-07 19:52 
QuestionAdding cSS in Server side control Pin
Mayukh Sen7-Mar-07 19:37
Mayukh Sen7-Mar-07 19:37 
AnswerRe: Adding cSS in Server side control Pin
Arindam Tewary7-Mar-07 22:12
professionalArindam Tewary7-Mar-07 22:12 
QuestionClickable Datagrid Row Pin
Mphophophos7-Mar-07 18:54
Mphophophos7-Mar-07 18:54 
AnswerRe: Clickable Datagrid Row Pin
Parwej Ahamad7-Mar-07 19:20
professionalParwej Ahamad7-Mar-07 19:20 
Questionto get 3D chart Pin
chatrathi7-Mar-07 18:31
chatrathi7-Mar-07 18:31 
QuestionGarbage Collection Pin
aaraaayen7-Mar-07 18:28
aaraaayen7-Mar-07 18:28 

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.