<!--Default web form-->
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form runat="server">
<asp:DataList ID="datalist1" runat="server" DataKeyField="enrollmentNumber"
DataSourceID="databaseGTUStudent">
<ItemStyle BackColor="#000000" ForeColor="#FFFFFF" />
<ItemTemplate>
Enrollment Number<asp:Label ID="lblEnrollmentNumber" runat="server"
Text='<%# Eval("enrollNumber") %>' />
<br />
Branch<asp:Label ID="lblBranch" runat="server"
Text='<%# Eval("branch") %>' />
<br />
</ItemTemplate>
<SelectedItemStyle BackColor="#FFFFFF" Font-Bold="True"
ForeColor="#000000" />
</asp:DataList>
<asp:SqlDataSource ID="databaseGTUStudent" runat="server"
ConnectionString="<%$ ConnectionStrings:studentDataConnectionb %>"
SelectCommand="SELECT [enrollNumber], [branch], FROM [student]">
</asp:SqlDataSource>
</form>
</body>
</html>
<!--Web.config -->
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="studentDataConnectiona" connectionString="Data Source=.;
Initial Catalog=northwind;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="studentDataConnectionb" connectionString="Data Source=
.\SQLEXPRESS;Initial Catalog=studentData;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>