Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

Hiddenfield in formview

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
win - 21 May 2008 04:22 GMT
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
Jialiang Ge [MSFT] - 21 May 2008 13:18 GMT
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  (jialge@online.microsoft.com, 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:
msdnmg@microsoft.com.

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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.