Drop:
Código PHP:
1. string sql2 = "SELECT IDCRISTAL, CRISTAL FROM CRISTAL ORDER BY CRISTAL";
2. SqlDataAdapter da2 = new SqlDataAdapter(sql2, con.get_conecction());
3. DataSet ds2 = new DataSet();
4. da2.Fill(ds2, "CRISTAL");
5. this.ddl_cristal1.DataTextField = ds2.Tables["CRISTAL"].Columns["CRISTAL"].ToString();
6. this.ddl_cristal1.DataValueField = ds2.Tables["CRISTAL"].Columns["IDCRISTAL"].ToString();
7. this.ddl_cristal1.DataSource = ds2.Tables["CRISTAL"];
8. this.ddl_cristal1.DataBind();
Código PHP:
1. CREATE PROCEDURE sp_ddl_cliente1( ) AS
2. BEGIN
3. SELECT IDCRISTAL, CRISTAL FROM CRISTAL ORDER BY CRISTAL
4. END
Gracias.