Ejemplo n.º 1
0
    protected void btnVesselSave_Click(object sender, EventArgs e)
    {
        try
        {
            foreach (GridViewRow gvr in gvVesselAccess.Rows)
            {
                if ((gvr.FindControl("chkVessel") as CheckBox).Checked == true)
                {
                    string lblProcedureId = ((Label)gvr.FindControl("lblProcedureId")).Text;

                    int i = BLL_QMSDB_Procedures.QMSDBProcedure_Insert_VesselAccess(int.Parse(DDLVessel.SelectedValue), UDFLib.ConvertIntegerToNull(lblProcedureId), int.Parse(Session["USERID"].ToString()));
                }
            }
            BindFolderToVEsssel();
        }
        catch (Exception ex)
        {
            string js = "alert('" + ex.Message.Replace("'", "") + "');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "script2", js, true);
        }
    }