Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 29th, 2004, 04:36 AM
Authorized User
 
Join Date: Jul 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default display the result of query in textbox.

I wanna to display the result of a "select" query,in to the textbox.i.e different table fields in different textbox.
so what's complete code for this in asp.net.

abhinavjain
__________________
abhinavjain
 
Old July 29th, 2004, 07:48 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You need to execute the database query then take the results and assign them to the textbox .Text attributes. Do you need help with a specific part of this process or are you unclear on it in general?
 
Old August 2nd, 2004, 05:21 AM
Authorized User
 
Join Date: Jul 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In which(object,item or whatever) i have to take take the qurey result
and then how to assign that to textboxes.

abhinavjain
 
Old August 3rd, 2004, 03:29 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You need to execute a database query using the database access classes, get the result to some data class (dataset, datatable, datareader, or a scalar variable) then save the desired result(s) into the textboxes using the .Text property. It sounds like perhaps you need to look at some tutorials on ADO.NET and ASP.NET.
 
Old August 3rd, 2004, 03:34 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Incidentally, this is a cross post, several times over.

Can you keep this topic to a single thread please?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Decode function to display result in same row yogeshyl SQL Language 0 July 2nd, 2008 12:40 AM
Display Search Engine result in table using JSP sbc789 JSP Basics 3 December 3rd, 2007 11:35 PM
How to display the result in sqlpus editor lily611 Oracle 3 November 22nd, 2006 03:26 PM
how to display the result elania PHP Databases 3 February 21st, 2005 03:07 PM
How to display query recults in a textbox controle arshad mahmood VB Databases Basics 1 July 9th, 2003 07:59 AM





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