I am facing the issue , i want to display two Webgrid in one view , so i create separate view for each , and calling on one view using
<table>
<tr>
<td>
@{Html.RenderAction("NewRegisterCustomer", "AdminDeshboard");}
@{Html.Action("NewRegisterCustomer", "AdminDeshboard");}
</td>
</tr>
<tr>
<td>
@{Html.RenderAction("OrderSummary", "AdminDeshboard");}
@{Html.Action("OrderSummary", "AdminDeshboard");}
</td>
</tr>
both Webgrid showing properly but when i change the page one Webgrid another Webgrid also effected
this is my Webgrid code
<fieldset>
@{
ViewBag.Title = "WebGrid with Custom Paging, Sorting";
WebGrid grid1 = new WebGrid(rowsPerPage: Model.PageSize);
grid1.Bind(Model.Order,
autoSortAndPage: false,
rowCount: Model.TotalRows
);
}
@grid1.GetHtml(
fillEmptyRows: false,
alternatingRowStyle: "alternate-row",
headerStyle: "grid-header",
footerStyle: "grid-footer",
mode: WebGridPagerModes.All,
firstText: "<< First",
previousText: "< Prev",
nextText: "Next >",
lastText: "Last >>",
columns: new[] {
grid1.Column("OrderId",header: " OrderId ",style:"Width=100px"),
grid1.Column("FirstName",header: " FirstName "),
grid1.Column("LastName",header: " LastName "),
grid1.Column("CartTotal",header: " CartTotal ",style:"Width=100px")
})
</fieldset>
when i change page url like this
localhost:49424/HomeAdmin?page=2
it effect on both grid ,
There is any way so i change the page name
**page ---> Orderpage**
Please guide me
Thanks