New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

RadPostBackButtonBase class provides the PostBack functionality for the RadPushButton, RadImageButton, RadToggleButton, RadRadioButton and RadCheckBox controls.

Definition

Namespace:Telerik.Web.UI.ButtonBase

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(RadButtonBase))]
[ClientScriptResource("Telerik.Web.UI.PostBackButtonBase", "Telerik.Web.UI.Button.RadButtonScripts.js")]
public abstract class PostBackButtonBase : RadButtonBase, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, INamingContainer, IButtonControl, IPostBackEventHandler

Inheritance: objectControlWebControlRadWebControlRadButtonBasePostBackButtonBase...

Derived Classes: CheckableButtonRadImageButtonRadPushButtonRadSplitButtonRadToggleButton

Implements: IAttributeAccessorIButtonControlIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorINamingContainerIParserAccessorIPostBackDataHandlerIPostBackEventHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagKeyWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
protected PostBackButtonBase()

Properties

Gets or sets a bool value indicating whether the Button control automatically posts back to the server when clicked.

C#
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("autoPostBack")]
public virtual bool AutoPostBack { get; set; }

Gets or sets a value indicating whether validation is performed when the Button control is clicked.

C#
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("_causesValidation")]
public virtual bool CausesValidation { get; set; }

Implements: IButtonControl.CausesValidation

Gets or sets an optional parameter passed to the Command event along with the associated CommandName.

C#
[Bindable(true)]
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("commandArgument")]
public string CommandArgument { get; set; }

Implements: IButtonControl.CommandArgument

Gets or sets the command name associated with the Button control that is passed to the Command event.

C#
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("commandName")]
public string CommandName { get; set; }

Implements: IButtonControl.CommandName

Gets or sets the URL of the page to post to from the current page when the Button control is clicked.

C#
[Themeable(false)]
public string PostBackUrl { get; set; }

Implements: IButtonControl.PostBackUrl

Gets or sets a bool value indicating whether the Button control will be immediately disabled after the user has clicks it. (i.e. enables/disables "Single Click" functionality)

C#
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("singleClick")]
public virtual bool SingleClick { get; set; }

Gets or sets the text displayed in the Button control after the button is being clicked and disabled. (i.e. the text used for the 'Single Click' functionality)

C#
[Bindable(true)]
[ClientControlProperty]
[ClientPropertyName("singleClickText")]
public string SingleClickText { get; set; }

Gets or sets a value indicating whether the Button control uses the client browser's submit mechanism or the ASP.NET postback mechanism.

C#
[Themeable(false)]
public virtual bool UseSubmitBehavior { get; set; }

Gets or sets the group of controls for which the Button control causes validation when it posts back to the server.

C#
[Themeable(false)]
[ClientControlProperty]
[ClientPropertyName("_validationGroup")]
public virtual string ValidationGroup { get; set; }

Implements: IButtonControl.ValidationGroup

Methods

C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadButtonBase.DescribeComponent(IScriptDescriptor)

Creates a PostBackOptions object that represents the RadButton control's postback behavior, and returns the client script generated as a result of the PostBackOptions.

C#
protected virtual string GetPostbackEventReference()
Returns:

string

The client script that represents the RadButton control's PostBackOptions.

Executed when post data is loaded from the request

C#
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters:postDataKeystringpostCollectionNameValueCollectionReturns:

bool

Overrides: RadWebControl.LoadPostData(string, NameValueCollection)

C#
protected void OnClick(ButtonClickEventArgs e)
Parameters:eButtonClickEventArgs
C#
protected void OnCommand(ButtonCommandEventArgs e)
Parameters:eButtonCommandEventArgs
C#
public void RaisePostBackEvent(string eventArgument)
Parameters:eventArgumentstring

Implements: IPostBackEventHandler.RaisePostBackEvent(string)

C#
protected virtual void RegisterForEventValidation()
C#
protected void ValidatePage(string eventArgument)
Parameters:eventArgumentstring

Events

C#
public event EventHandler Click

Implements: IButtonControl.Click

C#
public event CommandEventHandler Command

Implements: IButtonControl.Command