Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have DataList, i Want whichever binding value is NULL , it set auto 0 (Display 0),
Posted

Use ISNULL in your Sql Query
C#
select ISNULL(column1,0)


Refer
https://msdn.microsoft.com/en-us/library/ms184325.aspx[^]
 
Share this answer
 
v3
Comments
Karmesh_Madhavi 7-Mar-15 8:09am    
i find on net , C.Total - COALESCE(p.reciveamt, 0), it work too, thanx King Fisher.
King Fisher 7-Mar-15 8:19am    
You can use the both . ;)
C.Total - COALESCE(p.reciveamt, 0),
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900