protected void SendForReview_Click(object sender, EventArgs e)
    {
        RobotTableAdapters.documents_attachmentTableAdapter robot = new RobotTableAdapters.documents_attachmentTableAdapter();
        int collateralId = Convert.ToInt32(Request.QueryString["collateralId"]);
        int CollateralTypeId = Convert.ToInt32(Request.QueryString["CollateralTypeId"]);
        int CollateralDetailsId = Convert.ToInt32(hiddenDetailsId.Text);
        RobotTableAdapters.documents_attachmentTableAdapter robot2 = new RobotTableAdapters.documents_attachmentTableAdapter();
        robot.SendMail_CollateralApproval(collateralId, CollateralDetailsId, 1);
        ASPxPageControl1.TabPages[0].Enabled = false;
        ASPxPageControl1.TabPages[1].Enabled = false;
        ASPxPageControl1.TabPages[2].Enabled = false;
		
    }
    protected void SendForReview_Click(object sender, EventArgs e)
    {

        try
        {
            int collateralId = Convert.ToInt32(Request.QueryString["collateralId"]);
            int CollateralTypeId = Convert.ToInt32(Request.QueryString["CollateralTypeId"]);
            int CollateralDetailsId = Convert.ToInt32(hiddenDetailsId.Text);
            RobotTableAdapters.documents_attachmentTableAdapter robot = new RobotTableAdapters.documents_attachmentTableAdapter();
            robot.SendMail_CollateralApproval(collateralId, CollateralDetailsId, 1);
        }
        catch (Exception)
        {

            MultiView2.ActiveViewIndex = 2;
        }

    }