Database Reference
In-Depth Information
Listing 16-3. HTML Code for WebDataForm.aspx
<body>
<form id="form1" runat="server">
<h3>HumanResources - Employee data</h3>
<p>
<asp:Repeater id=RepData runat="server">
<HeaderTemplate>
<table border=1>
<tr>
<td><b>Title</b></td>
<td><b>BirthDate</b></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem, "Title") %>
</td>
<td>
<%# DataBinder.Eval(Container.DataItem, "BirthDate") %>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
<p>
</form>
</body>
10. Save the project, and build the project by pressing Ctrl+Shift+B. After
successfully building, run the web application by pressing Ctrl+F5.
The project will load with Login.aspx , as shown in Figure 16-8, but this time you will enter correct
user name agarwal , which is hard-coded in the if condition of the Login button. After entering the user
name, and click the Login button; you will be redirected to WebDataForm.aspx , as shown in Figure 16-11.
 
Search WWH ::




Custom Search