System.Web.UI.HtmlControls.HtmlGenericControl --session
-
Hi I want to convert session value to HtmlGenericControl value.. Please help me with this ...my code protected void Selection(System.Web.UI.HtmlControls.HtmlGenericControl id) { li_HighestinOIOp.Attributes.Add("class", "unsel"); li_LowestinOIOp.Attributes.Add("class", "unsel"); id.Attributes.Add("class", "sel"); } this is my function and i want to call the function Selection(li_DecOIDecPriceIncVolume); this code works fine ..but i want to get the value from the session and pass it to the function id = (HtmlGenericControl)Session["id"]; Selection(id);//here problem comes Please help me with this ...how can i assign the session value to "Selection" function Thanks in advance
Ramkumar
-
Hi I want to convert session value to HtmlGenericControl value.. Please help me with this ...my code protected void Selection(System.Web.UI.HtmlControls.HtmlGenericControl id) { li_HighestinOIOp.Attributes.Add("class", "unsel"); li_LowestinOIOp.Attributes.Add("class", "unsel"); id.Attributes.Add("class", "sel"); } this is my function and i want to call the function Selection(li_DecOIDecPriceIncVolume); this code works fine ..but i want to get the value from the session and pass it to the function id = (HtmlGenericControl)Session["id"]; Selection(id);//here problem comes Please help me with this ...how can i assign the session value to "Selection" function Thanks in advance
Ramkumar
What error are you getting? Can you show the code which sets the ID session variable?