Hiddenfield in formview

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
 
J

Jialiang Ge [MSFT]

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.
=================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top