W
WouterWeb.nl
Hi there!
I've created a 'simple' databgrid with the WebMatrix, but it will not turn
up in the internet explorer... What's wrong?
Here is the code:
<%@ Page Language="VB" %>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI"
Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral,
PublicKeyToken=6f763c9966660626" %>
<script runat="server">
' Insert page code here
'
</script>
<html>
<head>
</head>
<body>
<p>
<wmx:SqlDataSourceControl id="SqlDataSourceControl1" runat="server"
DeleteCommand="" ConnectionString="server='(local)';
trusted_connection=true; database='wouterweb'" SelectCommand="SELECT * FROM
[gastenboek]" UpdateCommand=""></wmx:SqlDataSourceControl>
<aspataGrid id="DataGrid1" runat="server" BorderStyle="None"
BorderWidth="1px" CellPadding="3" BackColor="White" AllowPaging="True"
AllowSorting="True" BorderColor="#999999" DataSource="<%#
SqlDataSourceControl1 %>" GridLines="Horizontal" AllowCustomPaging="True"
AutoGenerateColumns="False">
<FooterStyle forecolor="Black"
backcolor="#CCCCCC"></FooterStyle>
<HeaderStyle font-bold="True" font-strikeout="True"
forecolor="White" backcolor="#000084"></HeaderStyle>
<PagerStyle horizontalalign="Center" forecolor="Black"
backcolor="#999999" mode="NumericPages"></PagerStyle>
<SelectedItemStyle font-bold="True" forecolor="White"
backcolor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
backcolor="Gainsboro"></AlternatingItemStyle>
<ItemStyle forecolor="Black" backcolor="#EEEEEE"></ItemStyle>
<Columns>
<asp:BoundColumn DataField="id"
HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="naam"
HeaderText="Naam"></asp:BoundColumn>
<asp:BoundColumn DataField="email"
HeaderText="E-mail"></asp:BoundColumn>
<asp:BoundColumn DataField="bericht"
HeaderText="Bericht"></asp:BoundColumn>
</Columns>
</aspataGrid>
</p>
</body>
</html>
There are no ptoblem with the database...
Many thanks!
I've created a 'simple' databgrid with the WebMatrix, but it will not turn
up in the internet explorer... What's wrong?
Here is the code:
<%@ Page Language="VB" %>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI"
Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral,
PublicKeyToken=6f763c9966660626" %>
<script runat="server">
' Insert page code here
'
</script>
<html>
<head>
</head>
<body>
<p>
<wmx:SqlDataSourceControl id="SqlDataSourceControl1" runat="server"
DeleteCommand="" ConnectionString="server='(local)';
trusted_connection=true; database='wouterweb'" SelectCommand="SELECT * FROM
[gastenboek]" UpdateCommand=""></wmx:SqlDataSourceControl>
<aspataGrid id="DataGrid1" runat="server" BorderStyle="None"
BorderWidth="1px" CellPadding="3" BackColor="White" AllowPaging="True"
AllowSorting="True" BorderColor="#999999" DataSource="<%#
SqlDataSourceControl1 %>" GridLines="Horizontal" AllowCustomPaging="True"
AutoGenerateColumns="False">
<FooterStyle forecolor="Black"
backcolor="#CCCCCC"></FooterStyle>
<HeaderStyle font-bold="True" font-strikeout="True"
forecolor="White" backcolor="#000084"></HeaderStyle>
<PagerStyle horizontalalign="Center" forecolor="Black"
backcolor="#999999" mode="NumericPages"></PagerStyle>
<SelectedItemStyle font-bold="True" forecolor="White"
backcolor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
backcolor="Gainsboro"></AlternatingItemStyle>
<ItemStyle forecolor="Black" backcolor="#EEEEEE"></ItemStyle>
<Columns>
<asp:BoundColumn DataField="id"
HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="naam"
HeaderText="Naam"></asp:BoundColumn>
<asp:BoundColumn DataField="email"
HeaderText="E-mail"></asp:BoundColumn>
<asp:BoundColumn DataField="bericht"
HeaderText="Bericht"></asp:BoundColumn>
</Columns>
</aspataGrid>
</p>
</body>
</html>
There are no ptoblem with the database...
Many thanks!