I have a question I didnt found appropriate answer yet....I have a function that retrieving data
From the DB and I want to by click on button to export all the data to excel File how can I do this??
Here is my function:
******************
Protected Sub btnExport_Click(ByVal sender as Object,ByVal e as EventArgs)
Try
Dim tmp as String = ""
Dim dba as New DBAccess
Dim ds as DataSet = dba.GetGlobalAdminUser(m_user.UserID)
If Not ds Is Nothing Then
Dim dt as DataTable = ds.Tables(0)
????
End IF
End Sub