I have used QueryString to take value from clicked menu, on redirect I filter values of page on basis of QueryString value.
But every time Request.QueryString returns the same value even if there are different value in url. On ASPX page I written below code
Response.Write("<a href='../SubCategory.aspx?SubCategoryID=" + subcatArrayID5.ElementAt(i) + "'>" + subcatArrayName5.ElementAt(i) + "</a>");
and access it using below code in SubCategory.aspx Page
if (!Page.IsPostBack) {
if (Request.QueryString["SubCategoryID"] != null) {
SubCategoryID = Request.QueryString["SubCategoryID"].ToString();
Div1.InnerHtml = Request.QueryString["SubCategoryID"];
}
Databind();
}
QueryString?