共用方式為


BaseDataBoundControlDesigner.DataBind(BaseDataBoundControl) 方法

定義

在衍生類別中覆寫時,請執行必要的動作,以設定衍生自 BaseDataBoundControl 類別的關聯控制項。

protected:
 abstract void DataBind(System::Web::UI::WebControls::BaseDataBoundControl ^ dataBoundControl);
protected abstract void DataBind (System.Web.UI.WebControls.BaseDataBoundControl dataBoundControl);
abstract member DataBind : System.Web.UI.WebControls.BaseDataBoundControl -> unit
Protected MustOverride Sub DataBind (dataBoundControl As BaseDataBoundControl)

參數

dataBoundControl
BaseDataBoundControl

與這個設計工具關聯的 BaseDataBoundControl

備註

當您在衍生自 BaseDataBoundControlDesigner 類別的設計工具中覆寫 DataBind 方法時,請執行必要的動作來設定資料繫結控制項,以便在擷取設計階段標記時,控制項會正確呈現。 一般而言,基於效能考慮,您會建立設計階段資料來源而非即時資料源的關聯。

適用於

另請參閱