Dinesh Santhalingam

Dinesh Santhalingam

  • NA
  • 737
  • 367.4k

null from Server

Sep 4 2017 1:21 AM
From my server i stired the server values to datatable for temporary operation.If incase my column has null in my server then its populating an error .
 
  1. String contactNo = (from DataRow dr1 in employeedetail.Rows where (string)dr1["EmployeeID"] == userid select (string)dr1["ContactNo"]).FirstOrDefault();  
if the column value is null then the error is arising.I dont want to populate error.If value is not null then it will append to my string or else the value will be null.please help me to solve this. 

Answers (1)