From my other post i get a result from a query, the query gives some values.
I want to write the values to a file, but it is possible that one of the values is empty, when I try to write it with a empty value (for instance if CList.value2 is empty) then I get a Null error. how can i just write the entire record, including the empty on (cause the fil is a csv file).
So how can i avoid the Null error?
If Not String.IsNullOrEmpty(tbFilenaam.Text) Then
Dim oStWriter As New StreamWriter(Server.MapPath(tbFilenaam.Text))
For Each CList In retVal1
oStWriter.WriteLine(CList.value1 + ";" + CList.value2)
View Complete Post