How to show a document in the same format
-
I want to show the history in the same format which is typing in the admin side.In the admin side i used textbox for typing the History,i written two ,three paragraphs from the admin side and save it.i will get correctly with the same format in the admin side,while saving am not using any trim.in the webside i used some controls label,table,datagris,datalist and textbox if am using other controls except text box this display continously.it will show like paragraphs.but when am using textbox i will get correctly.i don't want use textbox.why it is coming like this.is there any solution
-
I want to show the history in the same format which is typing in the admin side.In the admin side i used textbox for typing the History,i written two ,three paragraphs from the admin side and save it.i will get correctly with the same format in the admin side,while saving am not using any trim.in the webside i used some controls label,table,datagris,datalist and textbox if am using other controls except text box this display continously.it will show like paragraphs.but when am using textbox i will get correctly.i don't want use textbox.why it is coming like this.is there any solution
Kurian_Kurian wrote:
if am using other controls except text box this display continously.it will show like paragraphs.but when am using textbox i will get correctly.i don't want use textbox.why it is coming like this.is there any solution
Datatgrid/Label will render the contents as plain HTML. When you type on textbox, it will have newline characters (\n). This won't be rendered correctly. That is making problem. So you need to replace
\n
with<br>
to show the details correctly.