Link to home
Start Free TrialLog in
Avatar of TrialUser
TrialUserFlag for Afghanistan

asked on

SQLDAtasource , binding to a dataset, ASP.net

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
ASKER CERTIFIED SOLUTION
Avatar of TheMozz
TheMozz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial