Many Thanks,
Here is my master page and code then folows the main page
<%@ Master Language="VB" CodeFile="Plasma_Admin.mas
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
<html xmlns="http://www.w3.org/1
<head runat="server">
<title>Untitled Page</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:Timer runat="server" id="UpdateTimer" interval="1000" ontick="UpdateTimer_Tick" />
<asp:UpdatePanel runat="server" id="TimedPanel" updatemode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger controlid="UpdateTimer" eventname="Tick" />
</Triggers>
<ContentTemplate>
<table width="100%" bgcolor="#6666FF">
<tr>
<td align="left"><h1>
<asp:Label ID="Label1" runat="server" Font-Names="verdana"
Text="I&A" ForeColor="White"></asp:Labe
<td align="right"><h1><asp:Label runat="server" id="DateStampLabel"
Font-Names="verdana" ForeColor="White" /></h1></td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
<table>
<tr>
<td id="SideBar" style="width:30ex; padding:0.5ex; vertical-align:top">
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
/>
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataS
BackColor="#B5C7DE" DynamicHorizontalOffset="2
Font-Size="0.8em" ForeColor="#284E98" StaticSubMenuIndent="10px"
Orientation="Horizontal">
<StaticSelectedStyle BackColor="#507CD1" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
<DynamicMenuStyle BackColor="#B5C7DE" />
<DynamicSelectedStyle BackColor="#507CD1" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#284E98" ForeColor="White" />
</asp:Menu>
</td>
<td id="Content" style="padding:1ex; vertical-align:top">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
Heres the master code
Partial Class Plasma_Admin
Inherits System.Web.UI.MasterPage
Protected Sub UpdateTimer_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles UpdateTimer.Load
DateStampLabel.Text = DateTime.Now.ToString("ddd
End Sub
Protected Sub UpdateTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles UpdateTimer.Tick
DateStampLabel.Text = DateTime.Now.ToString("ddd
End Sub
End Class
Here the main page and code
<%@ Page Language="VB" MasterPageFile="~/Plasma_M
<asp:Content ID="Content2" ContentPlaceHolderID="Cont
<div>
<asp:Timer runat="server" id="UpdateTimer" interval="300000" ontick="UpdateTimer_Tick" />
<asp:UpdatePanel runat="server" id="TimedPanel" updatemode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger controlid="UpdateTimer" eventname="Tick" />
</Triggers>
<ContentTemplate>
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:PLASMA %>"
SelectCommand="usp_DriveIn
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False
BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
CellPadding="3" DataSourceID="SqlDataSourc
Width="100%" height="100%" Font-Names="verdana" CssClass="style1">
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<Columns>
<asp:TemplateField itemstyle-HorizontalAlign=
<ItemTemplate>
<asp:Label ID="Label6" runat="server" width="500" Text='<%# Eval("server") %>'></asp:Label>
<asp:Label ID="Label7" runat="server" width="400" Text='<%# Convert.ToDateTime(Eval("r
<asp:Label ID="Label8" runat="server" width="100" Text='<%# Eval("drive") %>'></asp:Label>
<asp:Label ID="Label9" runat="server" width="100" Text='<%# Eval("mb","{0:n0}") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
<asp:Label ID="Label10" runat="server" width="500" Text="Server"></asp:Label>
<asp:Label ID="Label11" runat="server" width="350" Text="Reviewed"></asp:Label>
<asp:Label ID="Label12" runat="server" width="180" Text="Drive"></asp:Label>
<asp:Label ID="Label13" runat="server" width="100" Text="MB's"></asp:Label>
</HeaderTemplate>
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head
<style type="text/css">
.style1
{
margin-top: 0px;
margin-bottom: 24px;
}
</style>
</asp:Content>
and the main page code
Partial Class DriveInfo
Inherits System.Web.UI.Page
Protected Sub UpdateTimer_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles UpdateTimer.Load
GridView1.DataBind()
End Sub
Protected Sub UpdateTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles UpdateTimer.Tick
GridView1.DataBind()
End Sub
Protected Sub GridView1_RowCreated(ByVal
If DataBinder.Eval(e.Row.Data
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
End If
If DataBinder.Eval(e.Row.Data
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
CType(e.Row.FindControl("L
End If
End Sub
End Class
Main Topics
Browse All Topics





by: azarc3Posted on 2009-05-31 at 09:14:50ID: 24513020
The Status code means there was an internal server error... which is one of the FEW you'll get if you're not passing back explicit string error messages in the method that AJAX is calling.
Since the error is periodic it sounds like one of the following:
1. Something is going in your query that's throwing back an error which isn't bubbling up properly
2. You're running out of database connections and the AJAX call is choking when the database request times out
If you don't mind, please show us the method(s) that AJAX is calling, as well as the connection string you're using (DO NOT INCLUDE THE SERVER ADDRESS, USERNAME, OR PASSWORD!).