I download data to datagrid and page
How to change the page displayed every 10 seconds
my code
Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Monit.aspx.cs" Inherits="MONIT" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Test</title>
<link href="Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowCustomPaging="True" AllowPaging="True" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="3px" CellPadding="2" ForeColor="Black" GridLines="None" HorizontalAlign="Left" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<AlternatingRowStyle BackColor="PaleGoldenrod" BorderStyle="Solid" />
<Columns>
<asp:BoundField DataField="nr" HeaderText="NR" SortExpression="NR" />
<asp:BoundField DataField="brewery" HeaderText="brewery" SortExpression="brewery" />
<asp:BoundField DataField="warehouseman" HeaderText="warehouseman" SortExpression="warehouseman" />
<asp:BoundField DataField="STATUS" HeaderText="STATUS" SortExpression="STATUS" />
</Columns>
<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<PagerSettings FirstPageText="" PageButtonCount="50" Position="TopAndBottom" />
<PagerStyle BackColor="PaleGoldenrod" BorderStyle="Dashed" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#33CC33" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:barcodeConnectionString %>" ProviderName="<%$ ConnectionStrings:barcodeConnectionString.ProviderName %>" SelectCommand="SELECT [NR], [brewery], [warehouseman], [STATUS] FROM [dok]"></asp:SqlDataSource>
</form>
</body>
</html>