Class VisibilityControl
The VisibilityControl control provides a base control for defining visibility options.
Inheritance
Implements
Namespace: DotNetNuke.UI.WebControls
Assembly: DotNetNuke.dll
Syntax
public class VisibilityControl : WebControl
Properties
| Improve this Doc View SourceCaption
Gets or sets caption.
Declaration
public string Caption { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the Name of the property. |
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. |
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 |
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. |
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 SourceLoadPostData(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. |
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 |
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 |
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 |
RaisePostDataChangedEvent()
RaisePostDataChangedEvent runs when the PostBackData has changed. It triggers a ValueChanged Event.
Declaration
public void RaisePostDataChangedEvent()
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 SourceVisibilityChanged
The VisibilityControl control provides a base control for defining visibility options.
Declaration
public event PropertyChangedEventHandler VisibilityChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |