There are 2 gridviews on a single aspx page, and I want the second gridview to be displayed after the first gridview for 5 seconds and vice versa automatically, without any manual intervention.
NOTE: This should happen on page load without clicking any buttons.
Currently, I am able to display the second gridview after 5 seconds of displaying the first gridview, but I'm unable to switch back to the first gridview automatically. I would appreciate your input on this issue!
<form id="form1" runat="server">
<asp:ScriptManager ID="scriptManager1" runat="server"></asp:ScriptManager>
<asp:Panel id="panel1" runat="server" Height="100%" Width="100%">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderColor="Purple" BorderStyle="Double" CssClass="auto-style2" DataSourceID="SqlDataSource1" Font-Bold="True" Font-Names="Algerian" Font-Size="XX-Large" Height="1200px" OnRowDataBound="OnRowDataBound" Width="100%" HorizontalAlign="Center" PageSize="15">
<Columns>
<asp:BoundField DataField="ProjectName" HeaderText="Project Name" SortExpression="ProjectName" ItemStyle-CssClass="FrozenCell" HeaderStyle-CssClass="FrozenCell">
<ControlStyle Font-Bold="False" Font-Size="XX-Large" Font-Italic="True" Font-Names="Calibri" ForeColor="#FFFFDF" />
<HeaderStyle ForeColor="#FF9999" CssClass="FrozenCell" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="True" Font-Names="Calibri" Font-Size="XX-Large" />
</asp:BoundField>
<asp:BoundField DataField="ReqBy" HeaderText="Requested By" SortExpression="ReqBy">
<ControlStyle Font-Bold="False" Font-Size="XX-Large" Font-Italic="True" Font-Names="Calibri" ForeColor="#FFFFDF" />
<HeaderStyle ForeColor="#FF9999" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="True" Font-Names="Calibri" Font-Size="XX-Large" />
</asp:BoundField>
... (remaining code)