Solved

SQLDAtasource , binding to a dataset, ASP.net

Posted on 2010-11-09
1
693 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now