/// <summary> /// Fill the category to the dropdown for adding the items to particular category /// </summary> protected void Page_Load(object sender, EventArgs e) { if (Session["admin_id"] == null) { Response.Redirect("default.aspx"); } if (!IsPostBack) { st = "select category_id,category_name from tbl_category where is_active = 1"; db.fill_drop_with_id(st, ddl_category); fill_data(); } }