Button.GetPostBackOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a PostBackOptions object that represents the Button control's postback behavior.
protected:
virtual System::Web::UI::PostBackOptions ^ GetPostBackOptions();
protected virtual System.Web.UI.PostBackOptions GetPostBackOptions ();
abstract member GetPostBackOptions : unit -> System.Web.UI.PostBackOptions
override this.GetPostBackOptions : unit -> System.Web.UI.PostBackOptions
Protected Overridable Function GetPostBackOptions () As PostBackOptions
Returns
A PostBackOptions that represents the Button control's postback behavior.
Remarks
The GetPostBackOptions method creates a PostBackOptions object that represents the Button control's postback behavior. The PostBackOptions object is then typically passed to the ClientScriptManager.GetPostBackEventReference(PostBackOptions) method, which is used to obtain a reference to a client-side script function that, when invoked, causes the server to post back to the page.
This method is used primarily by control developers when extending the Button class.
Notes to Inheritors
You can override the GetPostBackOptions() method in your derived class to modify the postback options for the button control, or to call client-side script when the button is clicked. Be sure to call the base class's GetPostBackOptions() method so that the standard postback options are set.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기