When I used
Example:
I entered the data in NewForm.aspx as below:
"
aasdflasdf asdf asdf asdf asdf asdf.
234234aefase5asfgasdfa
asdfasdf
asdf
asdf
a
asdfasdfas"
Note: You can see spaces between the above statements. When I tried to display above content in DisplayForm.aspx, it showed without spaces & special characters as below:
"aasdflasdf asdf asdf asdf asdf asdf.234234aefase5asfgasdfaasdfasdfasdfasdfaasdfasdfas"
Solution:
Add following attributes to xsl:value-of tag:
a. select="ddwrt:AutoNewLine(string(@Contents))"
b. disable-output-escaping="yes"
Note:
1. You can find information about ddwrt:AutoNewLine at Microsoft Site.
2. disable-output-escaping="yes" attribute is meant for showing all special characters like quotes and so on.
No comments:
Post a Comment