語言

DetailsView.ICallbackContainer.GetCallbackScript 方法

定義

建立控制項的 DetailsView 回調腳本。

 virtual System::String ^ System.Web.UI.WebControls.ICallbackContainer.GetCallbackScript(System::Web::UI::WebControls::IButtonControl ^ buttonControl, System::String ^ argument) = System::Web::UI::WebControls::ICallbackContainer::GetCallbackScript;
string ICallbackContainer.GetCallbackScript(System.Web.UI.WebControls.IButtonControl buttonControl, string argument);
abstract member System.Web.UI.WebControls.ICallbackContainer.GetCallbackScript : System.Web.UI.WebControls.IButtonControl * string -> string
override this.System.Web.UI.WebControls.ICallbackContainer.GetCallbackScript : System.Web.UI.WebControls.IButtonControl * string -> string
Function GetCallbackScript (buttonControl As IButtonControl, argument As String) As String Implements ICallbackContainer.GetCallbackScript

參數

buttonControl
IButtonControl

就是那個按鈕控制,會把頁面上傳回伺服器。

argument
String

關於回電活動的論點。

傳回

控制的回撥腳本 DetailsView 。

實作

備註

此方法是一個輔助方法,控制項會呼叫 DetailsView 它以產生回調腳本。 若控制 DetailsView 項不渲染用戶端腳本,或 argument 參數為 null 空字串(“”),則回傳 null。

適用於

另請參閱