How to pass any HtmlControl to a function as a parameter
<p>Just wrote a function that checks if an HTML control is hidden or not.
how can i change the type System.Web.UI.HtmlControls.HtmlTableRow of the parameter myControl to a type that will support any HTML control type. i prefer to not write specific function for any html control.</p>

<pre><code> public static bool IsUIElementHidden(System.Web.UI.HtmlControls.HtmlTableRow myControl)
        {            
            if ((myControl.Style["display"] ?? "").ToLower().Equals("none") || (myControl.Style["visibility"] ?? "").ToLower().Equals("none"))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
</code></pre>

<p>I tried to use the type WebControl but when i am passing the control to the function i am getting an error.</p>
