Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         DominioTabelasDAL ObjDominioTabelasDAL = new DominioTabelasDAL();
         ddlTabelas.DataSource = ObjDominioTabelasDAL.DropDownList();
         ddlTabelas.DataTextField = "Descricao";
         ddlTabelas.DataValueField = "ID";
         ddlTabelas.DataBind();
         ddlTabelas.Items.Insert(0, new ListItem("<--Selecione-->", string.Empty)); //Texto Inicial do combo
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         DominioTabelasDAL ObjDominioTabelasDAL = new DominioTabelasDAL();
         ddlTabelas.DataSource     = ObjDominioTabelasDAL.DropDownList();
         ddlTabelas.DataTextField  = "Descricao";
         ddlTabelas.DataValueField = "ID";
         ddlTabelas.DataBind();
         ddlTabelas.Items.Insert(0, new ListItem("<--Selecione-->", string.Empty)); //Texto Inicial do combo
     }
 }