菜单项向子页面传递参数
在菜单定义中如下定义:
~/Information/inspectionLog.aspx?category=1
注意参数不要用引号
在跳转页面中进行参数判断
private void LoadData()
{
string cateID = Request.QueryString["category"];
if (cateID == "1")
lblTest.Text = "系统1";
else
lblTest.Text = "系统2"; // 每页记录数
Grid1.PageSize = ConfigHelper.PageSize;
ddlGridPageSize.SelectedValue = ConfigHelper.PageSize.ToString();
BindGrid();
}