[2008] Writing GridView with HyperLinkField to CSV
Howdy,
I'm fine with writing a GridView to a CSV file as long as there is not a HyperLinkField in my GridView. When trying to export a GridView with HyperLinkFields to a CSV, however, my HyperLinkFields simply appear blank in my CSV. I'm writing the CSV rows as such:
vb.net Code:
For i As Integer = 0 To gv.Rows.Count - 1 Step 1
For j As Integer = 0 To gv.Columns.Count - 1 Step 1
sw.Write("""" & gv.Rows(i).Cells(j).Text & """")
If j < gv.Columns.Count - 1 Then
sw.Write(",")
End If
Next j
sw.WriteLine()
Next i
When I come upon a HyperLinkField cell, what property am I looking for that will write the text to the CSV? Can you give me a push in the right direction?
Thanks!
Re: [2008] Writing GridView with HyperLinkField to CSV
What is the gridview's data source, and why not write that to a csv file?