Protected Sub Button1_Click(ByVal
sender As Object,
ByVal e As
EventArgs)
Dim Con As String =
ConfigurationManager.ConnectionStrings("ConnectionString").ToString()
Dim conn As New
SqlConnection(Con)
Dim da As New
SqlDataAdapter("select * from employees",
conn)
Dim ds As New DataSet()
da.Fill(ds, "Emp")
GridView1.DataSource = ds.Tables("Emp").DefaultView
GridView1.DataBind()
Dim dt As DataTable = ds.Tables("Emp")
CreateCSVFile(dt, "c:\csvData.csv")
End Sub
Break 19, Whats the 20 on CreateCSVFile Sub-Routine? That was the title of this article
ReplyDelete