Dim obj As New HtmlControls.HtmlGenericControl 'Dim o As New htm obj = CType(Page.FindControl("DivTest"), HtmlGenericControl) obj.Visible = True