Ejemplo n.º 1
0
    protected void DDLAttachment_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            Session["DDLAttachment_Value"] = DDLAttachment.SelectedItem.Value;

            DataSet ds = new DataSet();
            if (Convert.ToInt32(Session["DDLAttachment_Value"].ToString()) != 4)
            {
                ds = objBLLIndx.VET_Get_VettingExistAttachment(Convert.ToInt32(Vetting_ID), Convert.ToInt32(Session["DDLAttachment_Value"].ToString()));

                if (ds.Tables.Count > 0)
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        ScriptManager.RegisterStartupScript(this, this.GetType(), "callJSFunction", "ConfirmMsg();", true);
                    }
                }
            }
        }

        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
        }
    }