Enter key to <br>
ASP.NET
4
Posts
3
Posters
0
Views
1
Watching
-
How can I convert an Enter key to <br> using C#. I can do that in VB.NET by using Replace(ControlChars.CrLf, <br> ) But in C# I don't know. Can anyone show me, please? No time to breathe
-
yourstring.Replace("\n","<br>");
:) "I dont have a life, I have a program." Also, I won't support any software without theLeppieRules
variable. -
Thank you I got another question :rolleyes: : Is there a way that I can compare a specific date to a current date so that I know how many day have passed? No time to breathe
Look at the TimeSpan and DateTime data types (especially DateTime.Substract which returns a TimeSpan) Cheers HTH Martin "Situation normal - all fu***d up" Illuminatus!