473,473 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Binding to SqlDataSource that returns multiple datatable

Hello,

Stored procedure returns results of 3 different queries. On ASP.NET 2.0 page
I have a SqlDataSource control with SelectCommand equals this stored
procedure name.
I want to be able to bind 3 different controls on the page: 1 dropdown
control, 2. formview and GridView to each datatable.

Is there a way to do it? I can't find any way of doing it, other then having
3 different SqlDataSource controls for each query. But I dont want to do
that, I want to be able to resue this production sp.

Thank you for your help.

Sep 27 '06 #1
2 2798
DataAdapter.Fill method will create 3 datatables out of your stored
procedure.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"WebMatrix" <We*******@discussions.microsoft.comwrote in message
news:6B**********************************@microsof t.com...
Hello,

Stored procedure returns results of 3 different queries. On ASP.NET 2.0
page
I have a SqlDataSource control with SelectCommand equals this stored
procedure name.
I want to be able to bind 3 different controls on the page: 1 dropdown
control, 2. formview and GridView to each datatable.

Is there a way to do it? I can't find any way of doing it, other then
having
3 different SqlDataSource controls for each query. But I dont want to do
that, I want to be able to resue this production sp.

Thank you for your help.

Sep 27 '06 #2
DataAdapter.Fill method will create 3 datatables out of your stored
procedure.
What abou sqlDataSource control?
Sep 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Timm | last post by:
I have an ASP.NET 2.0 page with two DropDownLists. I am using declarative data binding wherever possible and trying to minimize the use of code. The list of values in DropDownList DDL2 should be...
1
by: benoit | last post by:
Hi, I have an SqldataSource which calls a SP. that SP returns two datatables. If I bind my SqlDataSource to a Gridview, it shows the first DataTable, which is logical. How can I retrieve the next...
3
by: Mike T | last post by:
I'm having a problem with the new ASP.NET 2.0 SqlDataSource object. (my first time using it) I placed a SqlDataSouce object on the page and set its connection properties in the Web.Config. ...
0
by: Nam | last post by:
I want to use the same sqlDataSource for two CheckBoxList controls in ASP.NET 2.0. For simplicity, I am using the case of only two CheckBoxList controls in the following example: My...
1
by: Per W. | last post by:
Hi, is there som other way to do this? i only want the result from the select statement so i can use it in my code. I dont need the gridview, but this is the only way i got it to work. The...
6
by: Ken Fine | last post by:
I'm using SQLDataSource, which generates some kind of dataset, and then I attach that datasource to various data display controls such as DataList and repeater which loop through to the end of the...
2
by: kevinpond | last post by:
I have a Gridview displaying the results of a stored procedure. The stored procedure is constantly changing so the columns displayed in the data grid are constantly changing. I'd like to give...
1
by: Simone | last post by:
Hello, I am new to asp.net and I am in need of help. I have a dropdown that is attached to a SqlDataSource (DataSourceID). The dropdown has one column shown as text and another hidden as the...
2
by: makennedy | last post by:
Hi Experts, Please help, I am a newbie to ASP.NET 2.0 may be I am doing something wrong or there may be a bug somewhere. Basically I have a TreeView Control which I have created...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.