Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hiddenfield in formview

Thread Tools

Hiddenfield in formview

Posts: n/a
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

Reply With Quote
Jialiang Ge [MSFT]
Posts: n/a

We can use ItemTemplate to bind value to a HiddenField. The article
demonstrates the use of ItemTemplate. For HiddenField, we can write it in
this way:

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

Jialiang Ge ((E-Mail Removed), 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: Removed).

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting formview with hiddenfield win ASP .Net 1 05-21-2008 10:21 AM
is the value passed via HiddenField to client-side always string? André ASP .Net 2 06-17-2006 07:37 PM
Validating a 'HiddenField' control (on ASP 2.0) Eran Dvey-Aharon ASP .Net 2 02-01-2005 06:51 PM
ASP.NET 2.0 FormView Insert function using HiddenField - 2nd Posting ASP .Net Web Controls 0 01-14-2005 02:34 AM
ASP.NET 2.0 FormView Insert function using HiddenField - 2nd Posting ASP .Net 0 01-14-2005 02:29 AM