M
Mathieu Pagé
Hi,
I'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.
I'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.