I have code that looks like this:
Protected Sub unearned_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles unearned_run.ServerClick
Dim DataOut As String "a,b,c"
unearned_span.InnerHtml = unearned_policytype.Value
Response.Clear()
Response.AddHeader("Content-Disposition", "attachment; filename=Unearned.csv")
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Length", DataOut.Length())
Response.Write(DataOut)
End Sub
and the html:
<form id="form1" runat="server">
<div id="unearnedreport" style="display:none">
<input id="unearned_run" type="button" runat="server" value="Run Report" />
<span id="unearned_span" runat="server"></span>
</div>
</form>
The problem I am trying to solve is that when the report runs I do not get a busy pointer. However, I do get a busy pointer if hover my pointer in the very bottom of the browser window; specifically in the area that has the menu to choose magnification.
Note: I am not a Windows programmer so if you could give answer without a lot of assumptions about what I know about .NET I would appreciate it.