In order to replace textbox (txtComments) text enter key with
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...!!!!
No comments:
Post a Comment