protected void gridviewWorkShop_SelectedIndexChanged(object sender, EventArgs e) { int id = int.Parse(gridviewWorkShop.SelectedValue.ToString()); WorkShopBusiness WB = new WorkShopBusiness(); tbl_WorkShop Wp = WB.GetWorkShopById(id); txtWorkShopTitle.Text = Wp.WorkShopTitle; txtWorkShopDuration.Text = Wp.WorkShopDuration; txtWorkShopDate.Text = Wp.WorkShopDate.ToString(); txtWorkShopTopics.Text = Wp.WorkShopTopics; }
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { int id = int.Parse(GridView1.SelectedValue.ToString()); WorkShopBusiness WB = new WorkShopBusiness(); tbl_WorkShop Wp = WB.GetWorkShopById(id); txtWorkShopTitle.Text = Wp.WorkShopTitle; txtWorkShopDate.Text = Wp.WorkShopDate.Date.ToString(); txtWorkShopDuration.Text = Wp.WorkShopDuration; txtWorkShopTopics.Text = Wp.WorkShopTopics; ckbLTrainers.ClearSelection(); }