S
Simon
Hi everyone,
Can anyone think why using two GridViews on a single web page would
cause the pager at the bottom of one of them to disappear.
The use case is, if I click a different page on the first datagrid, and
then click a different page on the second datagrid, the pager at the
bottom of the *first* datagrid disappears!
I suspect that they are somehow confusing one another but I dont know
how. Can anyone offer any suggestions as to why the pager is getting hidden?
Many thanks to anyone who can help.
Simon
PS. If it helps, the page code is below - apologies if it doesn't format
very well
************************************************************************
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="Pages_Logging_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Import Logs</title>
<link href="../../Styles/Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="ContentArea">
<h1>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
PAMS Import Logs</h1>
<h2>Banner Importer</h2>
<p>
The import process is responsible for importing student
and application details from the XX system. The import process runs on a
nightly schedule. Details on the success or failure of each run can be
seen below.
</p>
<p>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="grdBannerImport" runat="server"
AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="odsBannerImportLog"
BorderStyle="None" Width="75%"
OnRowDataBound="grdBannerImport_RowDataBound" GridLines="Vertical">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="imgStatus"
runat="server" ImageUrl="~/Images/BallGreen16.gif" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Timestamp"
HeaderText="Timestamp" SortExpression="Timestamp" />
<asp:BoundField DataField="ApplicationName"
HeaderText="Application Name" SortExpression="ApplicationName" />
<asp:BoundField DataField="Message"
HeaderText="Message" SortExpression="Message" />
<asp:BoundField DataField="OutcomeTypeName"
HeaderText="Outcome" SortExpression="OutcomeTypeName" />
</Columns>
<HeaderStyle BackColor="#2E2E2E" Font-Bold="False"
ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="#FAF9F9" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</p>
<p>
<asp:ObjectDataSource ID="odsBannerImportLog"
runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="SelectByApplicationIDPaged"
SelectCountMethod="SelectCountByApplicationID"
StartRowIndexParameterName="startRowIndex"
MaximumRowsParameterName="pageSize"
TypeName="ImportLogsDataSetTableAdapters.ImportExportLogTableAdapter"
EnablePaging="true">
<SelectParameters>
<asparameter Name="applicationID"
DefaultValue="501" Type="Int16"></asparameter>
</SelectParameters>
</asp:ObjectDataSource>
</p>
<h2>MBA Part 2 Importer</h2>
<p>
The XX import process is responsible for importing
details submitted via the XX webform into the PAMS CRM System. The
import process runs on a nightly schedule. Details on the success or
failure of each run can be seen below.
</p>
<p>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:GridView ID="grdMBAImportLog" runat="server"
AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="odsMBAImportLog"
BorderStyle="None" Width="75%" GridLines="Vertical"
OnRowDataBound="grdMBAImportLog_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="imgStatus"
runat="server" ImageUrl="~/Images/BallGreen16.gif" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Timestamp"
HeaderText="Timestamp" SortExpression="Timestamp" />
<asp:BoundField DataField="ApplicationName"
HeaderText="Application Name" SortExpression="ApplicationName" />
<asp:BoundField DataField="Message"
HeaderText="Message" SortExpression="Message" />
<asp:BoundField DataField="OutcomeTypeName"
HeaderText="Outcome" SortExpression="OutcomeTypeName" />
</Columns>
<HeaderStyle BackColor="#2E2E2E" Font-Bold="False"
ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="#FAF9F9" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</p>
<p>
<asp:ObjectDataSource ID="odsMBAImportLog"
runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="SelectByApplicationIDPaged"
SelectCountMethod="SelectCountByApplicationID"
StartRowIndexParameterName="startRowIndex"
MaximumRowsParameterName="pageSize"
TypeName="ImportLogsDataSetTableAdapters.ImportExportLogTableAdapter"
EnablePaging="true">
<SelectParameters>
<asparameter Name="applicationID"
DefaultValue="502" Type="Int16"></asparameter>
</SelectParameters>
</asp:ObjectDataSource>
</p>
</div>
</form>
</body>
</html>
Can anyone think why using two GridViews on a single web page would
cause the pager at the bottom of one of them to disappear.
The use case is, if I click a different page on the first datagrid, and
then click a different page on the second datagrid, the pager at the
bottom of the *first* datagrid disappears!
I suspect that they are somehow confusing one another but I dont know
how. Can anyone offer any suggestions as to why the pager is getting hidden?
Many thanks to anyone who can help.
Simon
PS. If it helps, the page code is below - apologies if it doesn't format
very well
************************************************************************
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="Pages_Logging_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Import Logs</title>
<link href="../../Styles/Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="ContentArea">
<h1>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
PAMS Import Logs</h1>
<h2>Banner Importer</h2>
<p>
The import process is responsible for importing student
and application details from the XX system. The import process runs on a
nightly schedule. Details on the success or failure of each run can be
seen below.
</p>
<p>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="grdBannerImport" runat="server"
AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="odsBannerImportLog"
BorderStyle="None" Width="75%"
OnRowDataBound="grdBannerImport_RowDataBound" GridLines="Vertical">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="imgStatus"
runat="server" ImageUrl="~/Images/BallGreen16.gif" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Timestamp"
HeaderText="Timestamp" SortExpression="Timestamp" />
<asp:BoundField DataField="ApplicationName"
HeaderText="Application Name" SortExpression="ApplicationName" />
<asp:BoundField DataField="Message"
HeaderText="Message" SortExpression="Message" />
<asp:BoundField DataField="OutcomeTypeName"
HeaderText="Outcome" SortExpression="OutcomeTypeName" />
</Columns>
<HeaderStyle BackColor="#2E2E2E" Font-Bold="False"
ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="#FAF9F9" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</p>
<p>
<asp:ObjectDataSource ID="odsBannerImportLog"
runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="SelectByApplicationIDPaged"
SelectCountMethod="SelectCountByApplicationID"
StartRowIndexParameterName="startRowIndex"
MaximumRowsParameterName="pageSize"
TypeName="ImportLogsDataSetTableAdapters.ImportExportLogTableAdapter"
EnablePaging="true">
<SelectParameters>
<asparameter Name="applicationID"
DefaultValue="501" Type="Int16"></asparameter>
</SelectParameters>
</asp:ObjectDataSource>
</p>
<h2>MBA Part 2 Importer</h2>
<p>
The XX import process is responsible for importing
details submitted via the XX webform into the PAMS CRM System. The
import process runs on a nightly schedule. Details on the success or
failure of each run can be seen below.
</p>
<p>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:GridView ID="grdMBAImportLog" runat="server"
AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="odsMBAImportLog"
BorderStyle="None" Width="75%" GridLines="Vertical"
OnRowDataBound="grdMBAImportLog_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="imgStatus"
runat="server" ImageUrl="~/Images/BallGreen16.gif" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Timestamp"
HeaderText="Timestamp" SortExpression="Timestamp" />
<asp:BoundField DataField="ApplicationName"
HeaderText="Application Name" SortExpression="ApplicationName" />
<asp:BoundField DataField="Message"
HeaderText="Message" SortExpression="Message" />
<asp:BoundField DataField="OutcomeTypeName"
HeaderText="Outcome" SortExpression="OutcomeTypeName" />
</Columns>
<HeaderStyle BackColor="#2E2E2E" Font-Bold="False"
ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="#FAF9F9" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</p>
<p>
<asp:ObjectDataSource ID="odsMBAImportLog"
runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="SelectByApplicationIDPaged"
SelectCountMethod="SelectCountByApplicationID"
StartRowIndexParameterName="startRowIndex"
MaximumRowsParameterName="pageSize"
TypeName="ImportLogsDataSetTableAdapters.ImportExportLogTableAdapter"
EnablePaging="true">
<SelectParameters>
<asparameter Name="applicationID"
DefaultValue="502" Type="Int16"></asparameter>
</SelectParameters>
</asp:ObjectDataSource>
</p>
</div>
</form>
</body>
</html>