<%@ language="JScript"   %>
<%@ import namespace="jsNetProgDatabase" %>
<%@ import namespace="System.Data" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<script runat="server" language="jscript">
			
			public function Page_Load(sender:Object, E:EventArgs) : void {
				var dbs : jsNetProg.Database;	
				dbs = new jsNetProg.Database();
				var ds: DataSet;
				ds=dbs.queryDS("select headline, body from news");
				
				DataList1.DataSource=ds.Tables[0].DefaultView;
				DataList1.DataBind();
			}
	
		
	
	
	</script>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript (ECMAScript)">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body style="FONT-SIZE:12px;FONT-FAMILY:arial,verdana,sans-serif">
		<form id="WebForm2" method="post" runat="server">
			<TABLE cellSpacing="1" cellPadding="1" width="100%" bgColor="goldenrod" border="0">
				<TR>
					<TD valign="center">
						<H1>
							Usługa jsNet News
						</H1>
					</TD>
				</TR>
			</TABLE>
		</form>
		<P>
			<asp:DataGrid id="DataList1" runat="server" CellPadding="5" AutoGenerateColumns="false" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="14pt">
				<Columns>
					<asp:BoundColumn DataField="headline" HeaderText="Tytuł" ItemStyle-Font-Italic="True"></asp:BoundColumn>
					<asp:BoundColumn ItemStyle-Width="80%" DataField="body" HeaderText="Artykuł"></asp:BoundColumn>
				</Columns>
			</asp:DataGrid>
		</P>
	</body>
</HTML>
