<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Data" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebGrid.aspx.vb" Inherits="Nowinki.WebGrid"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>WebGrid</title>

		<%Dim connString As String
		  connString = "server=(local);database=Nowinki;TRUSTED_CONNECTION=Yes"
		  Dim conn As New SqlConnection(connString)
		  Dim cmd As New SqlCommand("SELECT * FROM tblKlienci", conn)
		  conn.Open()
		  Dim dReader As SqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
		  DataGrid1.DataSource = dReader
		  DataGrid1.DataBind
		  dReader.Close()
		  conn.Close
		%>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:DataGrid id="DataGrid1"
			style="Z-INDEX: 101; LEFT: 179px;
			  POSITION: absolute; TOP: 73px"
			  runat="server"
			  Width="640px"
			  Height="480px"
			  BackColor="#fffff5"
			  BorderColor="black"
			  ShowFooter="true"
			  CellPadding="1"
			  CellSpacing="1"
			  Font-Name="Arial"
			  Font-Size="8pt"
			  HeaderStyle-BackColor="#c0c0c0"
			  EnableViewState="false">
</asp:DataGrid>
</form>
</body>
</HTML>
