Datagrid crashing on page load -- html source?

K

Kathy Burke

Hi, I'm doing a fairly simple datagrid (copied it from one that works).
When I run the page, it gets and binds the datasource ok, but then I get
an unhandled app error at End Sub. I've found this is usually something
wrong in the html source. I edit this just to change my data source
columns, etc.

If anyone could possible take a look, it is below. I don't see
anything...tags missing, etc. Would appreciate another pair of eyes.

Also, is there any way to debug the html page itself in this
circumstance?

Thanks!

Kathy


<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Admin_AppChangeLog.aspx.vb"
Inherits="OWI_NextGen.Admin_AppChangeLog"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Admin_AppChangeLog</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body bgColor="#dcdcdc" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<div>
<asp:datagrid id="dg" style="Z-INDEX: 101; LEFT: 43px; POSITION:
absolute; TOP: 84px" runat="server" GridLines="Vertical" CellPadding="3"
BackColor="White" BorderWidth="1px" BorderColor="#999999"
BorderStyle="solid" Font-Names="Gill Sans MT" AllowSorting="False"
Width="838px" Height="166px" OnCancelCommand="dg_Cancel"
OnUpdateCommand="dg_Update" OnEditCommand="dg_Edit" Font-Size="Small"
AutoGenerateColumns="False" DataKeyField="RecordID">
<EditItemStyle Font-Size="Small" Font-Names="Gill Sans MT"
BorderWidth="1px" BorderStyle="Solid" BackColor="Teal"></EditItemStyle>
<AlternatingItemStyle Font-Size="Small" Font-Names="Gill Sans MT"
BackColor="LightGray"></AlternatingItemStyle>
<ItemStyle Font-Size="Small" Font-Names="Gill Sans MT"
ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<HeaderStyle Font-Size="X-Small" Font-Names="Gill Sans MT"
Font-Bold="True" HorizontalAlign="Center" ForeColor="White"
VerticalAlign="Bottom" BackColor="#000084"></HeaderStyle>
<FooterStyle Font-Size="Small" Font-Names="Gill Sans MT"
ForeColor="Black" BackColor="Aqua"></FooterStyle>
<Columns>
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="Update"
CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
<asp:BoundColumn Visible="False" DataField="RecordID"
ReadOnly="True" HeaderText="RecordID"></asp:BoundColumn>
<asp:BoundColumn DataField="RevDate" HeaderText="Rev
Date"></asp:BoundColumn>
<asp:BoundColumn DataField="Revision"
HeaderText="Revision"></asp:BoundColumn>
<asp:BoundColumn DataField="Developer"
HeaderText="Developer"></asp:BoundColumn>
<asp:BoundColumn DataField="ChangeDescription" HeaderText="Change
Description"></asp:BoundColumn>
<asp:BoundColumn DataField="UserTrainReq" HeaderText="User
Training Required">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ReviseTechDoc" HeaderText="Revise Tech
Doc">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ReviseUserDoc" HeaderText="Revise User
Doc">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="Black"
BackColor="#999999" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
</div>
<asp:button id="btnAdd" style="Z-INDEX: 102; LEFT: 473px; POSITION:
absolute; TOP: 32px" runat="server" Font-Names="Gill Sans MT"
Width="129px" Height="34px" Font-Size="Larger" Text="Add Log
Item"></asp:button>
<asp:label id="lblTitle" style="Z-INDEX: 103; LEFT: 43px; POSITION:
absolute; TOP: 22px" runat="server" Font-Names="Gill Sans MT"
Width="386px" Height="27px" Font-Size="X-Large"
Font-Bold="True">Application Change Log</asp:label>
</form>
</body>
</HTML>
 
P

psb

I think PagerStyle defaults to false and you have <pagerStyle> tag inside
grid. just a guess!? ~psb
 
P

psb

I meant to say allowpaging defaults to false even though you define a style
for it inside the datagrid. sorry, typing too fast...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top