Solved

SQLDAtasource , binding to a dataset, ASP.net

Posted on 2010-11-09
1
699 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

717 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