コード例 #1
0
        private void BindDDlController()
        {
            EmailRepository controllers = new EmailRepository();
            DataTable       Controllers = controllers.GetControllers();

            ddlContrcoller.DataValueField = "ControllerId";
            ddlContrcoller.DataTextField  = "ControllerName";
            ddlContrcoller.DataSource     = Controllers;
            ddlContrcoller.DataBind();
            ddlContrcoller.Items.Insert(0, "--Select Controller--");
        }