G
Ganesh
Hi There,
I've a datagrid in the left hand side menu, depends user selection i
want to highlight the row. It works but if user navigated any page
inside that page then it won't highlight. The pageid is not in the
menu grid.
I try to storing last selected page in the session, then want to
hightlight that menu in the grid. How can i use that.
private void UserMenu_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
ListItemType ItemType = e.Item.ItemType;
if (ItemType == ListItemType.Item || ItemType ==
ListItemType.AlternatingItem )
{
if (Request.QueryString["Page"] != null)
{
if (Request.QueryString["Page"] == e.Item.Cells[0].Text)
{
TableRow tRow = e.Item;
tRow.CssClass = "Menu_header_Selection";
//Session.Add("LastMenuPage",
Request.QueryString["Page"].ToString());
}
}
}
Thanks
I've a datagrid in the left hand side menu, depends user selection i
want to highlight the row. It works but if user navigated any page
inside that page then it won't highlight. The pageid is not in the
menu grid.
I try to storing last selected page in the session, then want to
hightlight that menu in the grid. How can i use that.
private void UserMenu_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
ListItemType ItemType = e.Item.ItemType;
if (ItemType == ListItemType.Item || ItemType ==
ListItemType.AlternatingItem )
{
if (Request.QueryString["Page"] != null)
{
if (Request.QueryString["Page"] == e.Item.Cells[0].Text)
{
TableRow tRow = e.Item;
tRow.CssClass = "Menu_header_Selection";
//Session.Add("LastMenuPage",
Request.QueryString["Page"].ToString());
}
}
}
Thanks