Display table content using querystring
<p>I have one page in asp, contain three table ( Pending order, confirmed order and rejected order). This three table under one header. When user click on pending order word on header, page will display only pending table. This three information in on code page using asp. How can get this function work using the query string?</p>

<p>Detail:
As refer image below, current state all the information in one page, </p>

<p><a href="https://i.stack.imgur.com/zQaNz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zQaNz.jpg" alt="enter image description here"></a></p>

<p>The request is when user click on the pending order, it only display the pending table, also apply to confirm and rejected.</p>

<p>Each table using grid view function and i want to use the query string. If I use to create separate page for this,it will involve to many definition.</p>

<p>Update the code:</p>

<p>The code for the every table i use grid view in the aspx file.</p>

<pre><code>&lt;div class="col-md-12 account-title"&gt;
                    Your Pending Orders Confirmation
                &lt;/div&gt;
                &lt;div class="col-md-12 col-sm-12 table-responsive"&gt;
                    &lt;asp:GridView ID="grdvwPendingOrder" ShowFooter="false" AutoGenerateColumns="False" runat="server" CssClass="table table-bordered text-center" 
                        OnRowCommand="grdvwPendingOrder_RowCommand" OnRowDataBound="grdvwPendingOrder_RowDataBound" EmptyDataRowStyle-ForeColor="Red" 
                        EmptyDataRowStyle-BackColor="White" EmptyDataText="No Records Found"&gt;
                        &lt;HeaderStyle CssClass="table-title text-center" /&gt;
                        &lt;RowStyle CssClass="account-content text-center" /&gt;
                        &lt;Columns&gt;
                            &lt;asp:TemplateField&gt;
                                &lt;HeaderTemplate&gt;Order No.&lt;/HeaderTemplate&gt;
                                &lt;ItemTemplate&gt;
                                    &lt;asp:Label ID="lblOrderNo" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "Id") %&gt;' /&gt;
                                &lt;/ItemTemplate&gt;
                            &lt;/asp:TemplateField&gt;
                            &lt;asp:TemplateField&gt;
                                &lt;HeaderTemplate&gt;Date&lt;/HeaderTemplate&gt;
                                &lt;ItemTemplate&gt;
                                    &lt;asp:Label ID="lblDate" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "OrderDate", "{0:dd/MM/yyyy}") %&gt;' /&gt;
                                &lt;/ItemTemplate&gt;
                            &lt;/asp:TemplateField&gt;
                            &lt;asp:TemplateField&gt;
                                &lt;HeaderTemplate&gt;Placed By&lt;/HeaderTemplate&gt;
                                &lt;ItemTemplate&gt;
                                    &lt;asp:Label ID="lblPlacedby" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "CustomerName") %&gt;' /&gt;
                                &lt;/ItemTemplate&gt;
                            &lt;/asp:TemplateField&gt;
                            &lt;asp:TemplateField&gt;
                                &lt;HeaderTemplate&gt;Status&lt;/HeaderTemplate&gt;
                                &lt;ItemTemplate&gt;
                                    &lt;asp:Label ID="lblStatus" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "OrderStatus") %&gt;' /&gt;
                                &lt;/ItemTemplate&gt;
                            &lt;/asp:TemplateField&gt;
                            &lt;asp:TemplateField&gt;
                                &lt;HeaderTemplate&gt;Actions&lt;/HeaderTemplate&gt;
                                &lt;ItemTemplate&gt;
                                    &lt;asp:Button ID="btnReview" runat="server" CssClass="btn btn-success" Text="Review" CommandArgument='&lt;%# DataBinder.Eval(Container.DataItem, "Id") %&gt;' CommandName="Review" /&gt;
                                &lt;/ItemTemplate&gt;
                            &lt;/asp:TemplateField&gt;
                        &lt;/Columns&gt;
                    &lt;/asp:GridView&gt;
                &lt;/div&gt;
                &lt;!-- Pagination --&gt;
                &lt;div class="col-md-12 col-sm-12 col-xs-12 padLROff"&gt;
                    &lt;ucPageControl:PageControl ID="PendingOrderPageControl" Title="" runat="server" Visible="false" /&gt;
                &lt;/div&gt;
</code></pre>

<p>Code for pending order.</p>

<p>The confirmed and rejected in the same file. 
Now I want to build a header for this type as table above. As mention, if i separate the type to different aspx file, it will involve to many definition.</p>