protected void btn_delete_Click(object sender, EventArgs e) { DataView dv = new DataView(); DataTable dt = new DataTable(); dv = DS_Organ.Select(DataSourceSelectArguments.Empty) as DataView; DS_Organ.InsertParameters["Name"].DefaultValue = txtName.Text; DS_Organ.InsertParameters["Mobile"].DefaultValue = txtMobile.Text; DS_Organ.InsertParameters["BloodGroup"].DefaultValue = txtBloodGroup.Text; DS_Organ.InsertParameters["OrganType"].DefaultValue = comboType.Value.ToString(); DS_Organ.Insert(); pop_del0.ShowOnPageLoad = true; txtName.Text = ""; txtMobile.Text = ""; txtBloodGroup.Text = ""; comboType.Value = null; }
protected void btn_delete_Click(object sender, EventArgs e) { DataView dv = new DataView(); DataTable dt = new DataTable(); dv = DS_Organ.Select(DataSourceSelectArguments.Empty) as DataView; DS_Organ.InsertParameters["Discription"].DefaultValue = txtMobile.Text; DS_Organ.InsertParameters["Treatment"].DefaultValue = txtBloodGroup.Text; DS_Organ.InsertParameters["Note"].DefaultValue = txtNote.Text; DS_Organ.InsertParameters["Name"].DefaultValue = txtName.Text; DS_Organ.InsertParameters["CusId"].DefaultValue = Response.Cookies["UserIdP"].Value; DS_Organ.Insert(); pop_del0.ShowOnPageLoad = true; txtName.Text = ""; txtMobile.Text = ""; txtBloodGroup.Text = ""; txtNote.Value = null; }