我导出HTML表发送的数据作为HTML表串并设置内容头部擅长:确定HTML字符串的内容长度
Dim html as String = "<table><tr><td>example<td></tr></table>"
context.Response.Clear()
context.Response.AddHeader("Content-Disposition", "attachment; filename=" & "exceldata-" & Now.ToString("yyyyMMddHHmmss") & ".xls")
'context.Response.AddHeader("Content-Length", ????)
context.Response.ContentType = "application/octet-stream"
context.Response.Write(response)
context.Response.End()
是否有设置内容 - 一个简单的方法基于html字符串大小的长度?或者我应该让它空白,反正...会是不错的内容长度最好...
我回国这在asp.net使用GenericHandler
no probs re##...它的所有.net给我 – davidsleeps 2010-11-03 03:55:18