Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2004, 04:30 AM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple records to be put in text boxes

Hi,

I have multiple records in my SQL database and the number of records changes constantly.
I would like to let these records appear in textboxes so that I can edit them via the GUI.
Does any one have any idea how about going to do it?
Thanks.

Mou

Mou
 
Old August 26th, 2004, 07:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

<asp:TextBox id="t" runat="server" Text="<%# Databinder.Eval(Container.DataItem, "FieldName") %>"/>

Then bind it to a data source, and call Page.DataBind()

However, you can only display one record at a time.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put a value into another form's text box? alastair Access VBA 3 December 20th, 2006 06:19 PM
Auto-Filling a Text box based on Multiple Boxes zuldan23 Access VBA 1 May 5th, 2006 10:17 AM
drag and drop to multiple text boxes gbuller VB.NET 5 September 6th, 2004 09:55 PM
Multiple records to be put in text boxes Moumou Classic ASP Databases 3 September 3rd, 2004 06:33 PM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.