p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Basics (http://p2p.wrox.com/forumdisplay.php?f=136)
-   -   Prefer Not To Use Data-Bound Controls... (http://p2p.wrox.com/showthread.php?t=59927)

soundchaser59 July 9th, 2007 05:16 PM

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??

planoie July 9th, 2007 09:13 PM

Yup, it's that simple.

Something along these lines:

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


All times are GMT -4. The time now is 02:07 AM.

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