Link to home
Start Free TrialLog in
Avatar of techques
techques

asked on

How SqlDataSource put in C#?

There is a datalist in aspx page:

<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="3" RepeatDirection="Horizontal" OnItemDataBound="DataList1_ItemCommand">

Currently, I use

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="select id,col,name,age,width,height from operation">
</asp:SqlDataSource>

to bind the data source in aspx page.

How can I put it to VC#?


ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada 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