<%@ 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>
|