Databind CheckBoxList ASP.NET 2.0
-8
Databinding in asp.net 2.0 is takes very few lines of code.
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=servername;Initial Catalog=dbname;Integrated Security=True" ProviderName="System.Data.SqlClient" SelectCommand="SELECT [id], [description] FROM [notificationLists]"> </asp:SqlDataSource>
<asp:CheckBoxList ID="chkNotify" runat="server" SataSourceID="SqlDataSource1" DataTextField="description" DataValueField="id"> </asp:CheckBoxList>
Comments
Voting
Votes Down
alp0001
ASmith
bobbyrward
i_kenneth
sehrgut
Sonsam
sundaramkumar
tech0
vinmariani
wiz1705






Please don't tag something as C if it's not within forty-two parsecs of the nearest C compiler.
I've got good news, and I've got bad news:
The universe is merely a figment of my imagination.
Now are you ready for the bad news?
http://forums.asp.net/p/969855/1220533.aspx