Exemplo n.º 1
0
 private void ShowCategory()
 {
     if (!IsPostBack)
     {
         KategoriDb db = new KategoriDb();
         DropDownListCategory.DataSource     = db.CategoriesShow();
         DropDownListCategory.DataValueField = "Kategori_ID";
         DropDownListCategory.DataTextField  = "Kategori_Ad";
         DropDownListCategory.DataBind();
     }
 }