public void get_menue() { Int32 id = Convert.ToInt32(Session["update_cat_id"]); DataTable dt = BAL_Catagory.get_data(id, 1); if (dt.Rows.Count > 0) { grd_menue.DataSource = dt; grd_menue.DataBind(); } }
public void Bind_Data() { Int32 id = Convert.ToInt32(Session["update_cat_id"]); DataTable dt = BAL_Catagory.get_data(id, 1); if (dt.Rows.Count > 0) { grd_catagory.DataSource = dt; grd_catagory.DataBind(); this.bind_ddl_number(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["update_cat_id"] != "" || Session["update_cat_id"] != null) { DataTable data = BAL_Catagory.get_data(Convert.ToInt32(Session["update_cat_id"]), 2); if (data.Rows.Count > 0) { txt_catagory.Text = data.Rows[0]["cat_name"].ToString(); } } this.check_session(); } }