Solved

SQLDAtasource , binding to a dataset, ASP.net

Posted on 2010-11-09
1
697 Views
Last Modified: 2012-05-10
I want to set a SQLdatasource as the datasource for a gridview.

I get the datatable from my SQL database. Now how can I bind this to the SQLDAtasource.:
<sqldatasource id="sqlProd"  runat="server"></sqldatasource>

how Can i do something like sqlPROd.datasource = dtProd

Please help. thanks
0
Comment
Question by:TrialUser
1 Comment
 
LVL 8

Accepted Solution

by:
TheMozz earned 500 total points
ID: 34094545
In your gridview you should be able to set the DataSourceId="sqlProd". Check out this link:

http://www.vkinfotek.com/gridview/bind-gridview-sqldatasource-control.html
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question