Bind BulletedList to Sql data source (C#) : BulletList « Data Binding « ASP.Net






Bind BulletedList to Sql data source (C#)

<%@ Page Language="C#" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Show BulletedList</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <asp:BulletedList
        id="blEmployee"
        DataSourceID="srcEmployee"
        DataTextField="FirstName"
        Runat="server" />
       
    <asp:SqlDataSource
        id="srcEmployee"
        SelectCommand="SELECT FirstName FROM Employee"
        ConnectionString="Data Source=whsql-v08.prod.mesa1.secureserver.net;Initial Catalog=DB_49907;User ID=java2suser;Password='password';"
        Runat="server" />
    
    </div>
    </form>
</body>
</html>
    


           
       








Related examples in the same category

1.Bind List data to asp bulletlist (Vb.net)
2.Bind list to asp BulletedList (C#)
3.Sort asp BulletList (C#)
4.Bind BulletList to calendar selected value (C#)