How many ways we can break statements into new lines in Dot Net?

 Posted by vishalneeraj-24503 on 11/26/2013 | Category: Interview Questions Interview questions | Views: 3235 | Points: 40

Hi, there are so many ways which are list below:-

1). Enviornment.NewLine
2). \r\n
3). vbCrLf
4). <br/>

In windows application:-

Enviornment.NewLine -> Will work in both VB.Net and C#.
\r\n -> Will work only in C#.
vbCrLf -> Will work only in VB.Net

In web application:-

<br/> -> Will work in both VB.Net and C#.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response