开发者

How can I prevent HTML encoding on a FormView?

I am trying to display a property (land) size in the ItemTemplate of a FormView control, and the size value is a string that is sometimes square metres and sometimes hectares, so I can't hardcode a <sup> tag suffix, but I need to display the unit as m<sup>2</sup> when appropriate. How do I prevent the tags being enco开发者_如何学运维ded?


You could use javascript to add/remove the formatting tags when the form-submit event fires.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜