Hides a control via css display attribute.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static void HideWithCss(
	this Control ctrl
)
Visual Basic
<ExtensionAttribute> 
Public Shared Sub HideWithCss ( 
	ctrl As Control
)
Visual C++
public:
[ExtensionAttribute]
static void HideWithCss(
	Control^ ctrl
)
F#
static member HideWithCss : 
        ctrl : Control -> unit 

Parameters

ctrl
Type: System.Web.UI..::..Control
Control to hide

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also