|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FormView and HTMLEncodeI'm trying to display some informations on a web page into a FormView. My data are bound using the ObjectDataSource Object. Everything is working fine, except I can't find how to HTMLEncode some fields before they are displayed. I tried to replace this : <% Bind("field") %> by this : <% Server.HTMLEncode(Bind("field")) %> But it does not work, saying Bind is not declared. I have searched on Google and Google Groups and found some reference to a HTMLEncode property, but this seem to apply to DataGrid fields only. Is there a way to HTML encode a string before it get used in a FormView? Mathieu.
Conditional True/False output for datalist item
which expert can finally solve this? WSS document event handler that will use System.web.mail sendmail Disappearing Web Part Trick Dynamic gridview values lost on postback Center Login Control and Firefox Admin front end generator How to access a server control within a repeater control Using Control.Render() from a page with a MasterPage The Ultimate Bittorrent Cheat |
|||||||||||||||||||||||