Solved

SQLDAtasource , binding to a dataset, ASP.net

Posted on 2010-11-09
1
696 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 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