• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class VisibilityControl

The VisibilityControl control provides a base control for defining visibility options.

Inheritance
System.Object
VisibilityControl
Implements
IPostBackDataHandler
INamingContainer
Namespace: DotNetNuke.UI.WebControls
Assembly: DotNetNuke.dll
Syntax
public class VisibilityControl : WebControl

Properties

| Improve this Doc View Source

Caption

Gets or sets caption.

Declaration
public string Caption { get; set; }
Property Value
Type Description
System.String

A string representing the Name of the property.

| Improve this Doc View Source

Name

Gets or sets name is the name of the field as a string.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

A string representing the Name of the property.

| Improve this Doc View Source

User

Gets or sets the UserInfo object that represents the User whose profile is being displayed.

Declaration
public UserInfo User { get; set; }
Property Value
Type Description
UserInfo
| Improve this Doc View Source

Value

Gets or sets stringValue is the value of the control expressed as a String.

Declaration
public object Value { get; set; }
Property Value
Type Description
System.Object

A string representing the Value.

| Improve this Doc View Source

Visibility

The VisibilityControl control provides a base control for defining visibility options.

Declaration
protected ProfileVisibility Visibility { get; set; }
Property Value
Type Description
ProfileVisibility

Methods

| Improve this Doc View Source

LoadPostData(String, NameValueCollection)

LoadPostData loads the Post Back Data and determines whether the value has change.

Declaration
public virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters
Type Name Description
System.String postDataKey

A key to the PostBack Data to load.

NameValueCollection postCollection

A name value collection of postback data.

Returns
Type Description
System.Boolean

true if the value has changed, otherwise false.

| Improve this Doc View Source

OnInit(EventArgs)

The VisibilityControl control provides a base control for defining visibility options.

Declaration
protected override void OnInit(EventArgs e)
Parameters
Type Name Description
EventArgs e
| Improve this Doc View Source

OnPreRender(EventArgs)

The VisibilityControl control provides a base control for defining visibility options.

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type Name Description
EventArgs e
| Improve this Doc View Source

OnVisibilityChanged(PropertyEditorEventArgs)

OnVisibilityChanged runs when the Visibility has changed. It raises the VisibilityChanged Event.

Declaration
protected virtual void OnVisibilityChanged(PropertyEditorEventArgs e)
Parameters
Type Name Description
PropertyEditorEventArgs e
| Improve this Doc View Source

RaisePostDataChangedEvent()

RaisePostDataChangedEvent runs when the PostBackData has changed. It triggers a ValueChanged Event.

Declaration
public void RaisePostDataChangedEvent()
| Improve this Doc View Source

Render(HtmlTextWriter)

Render renders the control.

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type Name Description
HtmlTextWriter writer

A HtmlTextWriter.

Events

| Improve this Doc View Source

VisibilityChanged

The VisibilityControl control provides a base control for defining visibility options.

Declaration
public event PropertyChangedEventHandler VisibilityChanged
Event Type
Type Description
PropertyChangedEventHandler

Implements

IPostBackDataHandler
INamingContainer

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS