Dear Friends,
Would any body knew the solution for this?
If Gross Weight value is null i would get Divide by Zero error. So
I have to check whether Grossweight is zero or not, to get the result.I cant check this in aspx.cs file becoz each InternalControl No has different Grosswt.and I do not know the gross weight while i call this sp. Please help what to do?
Would any body knew the solution for this?
If Gross Weight value is null i would get Divide by Zero error. So
I have to check whether Grossweight is zero or not, to get the result.I cant check this in aspx.cs file becoz each InternalControl No has different Grosswt.and I do not know the gross weight while i call this sp. Please help what to do?
Code:
Create procedure [dbo].[USP_ImportPaymentView_Select] @Internalcontrolnumber nvarchar(100), @FromDate varchar(20), @ToDate varchar(20) As Select Gross Weight, TLCActualGrossValue=round((TotalFreightValue/GrossWeight),2), from importpaymentview where (Yearofimport between @FromDate and @ToDate) or (InternalControlNumber =@Internalcontrolnumber)
Comment