Talking about To Replace Textbox Enter Key With for Html
To Replace Textbox Enter Key With <br/> for Html
In order to replace textbox (txtComments) text enter key with <br/> for html view :string strComments = txtComments.Text.Replace(“\r\n”, “<br/>”);
strComments = txtComments.Text.Replace(“\r”, “<br/>”);
strComments = txtComments.Text.Replace(“\n”, “<br/>”);Now use strComments instead of txtComments.Text…!!!!
Categories: ASP.NET
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Comments