Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If gvResults.Rows.Count > 0 Then
gvResults.AllowPaging = False
gvResults.AllowSorting = False
gvResults.Columns(0).Visible = False
PopulateSearch("DateEntered DESC")
Dim tw As New StringWriter()
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Dim frm As HtmlForm = New HtmlForm()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("content-disposition", "attachment;filename=Export.xls")
Response.Charset = ""
EnableViewState = False
Controls.Add(frm)
frm.Controls.Add(gvResults)
frm.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
gvResults.AllowPaging = True
gvResults.AllowSorting = True
gvResults.Columns(0).Visible = True
PopulateSearch("DateEntered DESC")
End If