Hiddenfield in formview

  • Thread starter Thread starter win
  • Start date Start date
W

win

I've created a formview and bind the columns.
The column ModifyUser should not be be displayed so that I've modified from
Textbos to HiddenField.

How can I change the bind value of a Hiddenfield and update the formview?

Thank you
 
Hello

We can use ItemTemplate to bind value to a HiddenField. The asp.net article
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/data/templates.aspx
demonstrates the use of ItemTemplate. For HiddenField, we can write it in
this way:

<asp:HiddenField ID="HiddenField1" runat="server" Value='<%#
Eval("FileName") %>' />

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
Back
Top