Actually i want to cast the type from find control to div but i cant find the class with div or body or form name why so?
What is name of class to make an object of div class ?
Collapse
X
-
-
-
@Bryan Cheung: Thanks for reply but i could not get that actually i'm using it like:
At place of a i want to get the Div element how to get?Code:object a=Form1.FindControl("X_Div");Comment
-
This works. And you have to understand that if you cast it to a object and not HtmlGenericCont rol you can only use members of the object class. If this is all you need sure, but HtmlGenericCont rol gives you much more control.Code:HtmlGenericControl divMenu = (HtmlGenericControl)control.FindControl("divMenu");Comment
-
Comment