예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DropDownList2.Enabled = false;
     if (!IsPostBack)
     {
         dataislemleri yeni = new dataislemleri();
         yeni.FillDropDownDev2("select birimid,birimadi from birimler ", DropDownList1);
         yeni.FillDropDownDev2("select gorevid,gorevadi from gorev ", DropDownList2);
     }
 }
예제 #2
0
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList2.Enabled = true;
            int           id   = Convert.ToInt32(DropDownList1.SelectedValue);
            dataislemleri yeni = new dataislemleri();

            yeni.FillDropDownDev2("select gorevid,gorevadi from gorev where gorevid='" + id + "'", DropDownList2);
        }