Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 July 9th, 2007, 05:16 PM
Registered User
Join Date: Jul 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Prefer Not To Use Data-Bound Controls...

I have a project where they want me to display data from SQL queries using individual controls instead of data-bound controls like a GridView. Similar to what I used to do with VB apps where you read a row in a query result and put the various cell values each into their own individual text box for the user to edit, then save after editing.

I assume I have to use code-behind (VB) to do this? I have the gridview working, but it's not the kind of "look and feel" the users want. They want a desktop application style interface, where they can tab from box to box as they make edits to the data values, then click a save button.

Any tips? Is it really just a matter of using code behind to talk to the database, then addressing the ASP controls from the code behind page to place the values into a text box??
Old July 9th, 2007, 09:13 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Yup, it's that simple.

Something along these lines:

myDataReader = myCommand.ExecuteReader()
someTextBox.Text = myDataReader("someFieldName").ToString()


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bound Vs Unbound controls Richard_AU ADO.NET 1 January 16th, 2007 01:40 PM
Bound Controls cpanson ADO.NET 0 June 24th, 2006 07:29 PM
Accessing bound controls through javascript dungerdanish Classic ASP Professional 0 June 21st, 2005 05:23 AM
Bound Controls don't update SQL DB Ron Howerton ADO.NET 1 January 28th, 2004 03:46 PM

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