protected void btnSave_Click(object sender, EventArgs e)
    {
        Inspection MyInspection = new Inspection();

        MyInspection.INSPTRANS    = hidInspTransNo.Value;
        MyInspection.MasterID     = Request.QueryString["MasterID"];
        MyInspection.NoticeNo     = HiddenNoticeNo.Value;
        MyInspection.INSPDATE     = InspDate.Text;
        MyInspection.EmployeeID   = ddInspectedBy.SelectedValue;
        MyInspection.CodeID       = ddInspectionType.SelectedValue;
        MyInspection.INSPTIME     = InspTime.Text;
        MyInspection.INSPCOMMENTS = Comments.Text;
        MyInspection.SortOrder    = Int32.Parse(SortOrder.Text);
        //   @INSPTIME REAL= null,
        //@INSPFinished BIT = 0,
        //@InspStatus VARCHAR(50)= null,
        //@InspComp BIT = 0,
        //@SystemToolName VARCHAR(50)= null,
        //@NoticeNo VARCHAR(50)= null,
        //@Refered BIT = 0,
        //@ReferedTo VARCHAR(50)= null,
        //@PresentedTo VARCHAR(50)= null,
        //@ReIinspection BIT = 0,
        //@ReInspectionPeriod INT= null,
        //@MethodOfDelivery VARCHAR(50)= null,
        //@FormType VARCHAR(50) = 'MAINT',
        //@StartDate SMALLDATETIME= null,
        //@FinishDate SMALLDATETIME= null,
        //@TenentImprovment BIT = 0,
        //@PresentedToPhone VARCHAR(50)= null,
        //@PresentedToAddr1 VARCHAR(150)= null,
        //@PresentedToAddr2 VARCHAR(150)= null,
        //@InspApproved BIT = 0,
        //@OKToCover BIT = 0,
        //@Temp_FinalOccApproved INT= null,
        //@SortOrder INT= null,
        //@FinalNotice BIT = 0,
        //@UpdatedBy VARCHAR(30)= null



        MyInspection.AddUpdateInspection();
    }