protected void btnAdd_Click(object sender, EventArgs e) { bool isSaved = false; bool ca = false; DateTime cd; try { ca = Convert.ToBoolean(int.Parse(this.cboClientAccpted.SelectedValue.ToString())); } catch { this.lblmsg.Text = "please select client Response"; this.cboClientAccpted.Focus(); return; } cd = DateTime.Parse(this.txtClientAcceptedTimeStamp.Text); GRNBLL obj = new GRNBLL(); string TransactionNo = ""; TransactionNo = Request.QueryString["TranNo"]; GRNStatus prevStatus = (GRNStatus)(int.Parse(this.hfStatus.Value)); isSaved = obj.ClientAcceptance(this.lblGRN.Text, cd, ca, TransactionNo, prevStatus); if (isSaved == true) { Response.Redirect("ListInbox.aspx"); } else { this.lblmsg.Text = "Unable to process the request"; } }