protected void btnReworkAllotmentToVessel_Click(object sender, EventArgs e) { try { int sts = BLL_PB_PortageBill.UPD_Rework_Allotment(Convert.ToInt32(ddlVessel.SelectedValue), Convert.ToInt32(Session["UserID"]), Convert.ToDateTime((sender as Button).CommandArgument)); } catch (Exception ex) { lblmsg.Text = ex.Message; } }