asp.net
asp.net
I was trying to write a simple application the other day that exported data from sql server to excel for the user to edit it and then import the updated excel back into sql server. There’s lot of help online about how to export gridview to excel. Here’s what I came up after looking at various examples: Protected Sub exportExcel()
'Clear the response, and set the content type and mark as attachment
HttpContext.Current.Response.Clear()
...