estou criando o seguinte html
dim hw as string
hw = "<div id='teste'>"
hw += "<table>"
hw += "<tr>"
hw += "<td>"
hw += "<font face=""verdana"">teste</font>"
hw += "</td>"
hw += "</tr>"
hw += "</table>"
hw += "</div>"
ai tento exportar para o excel
Response.Clear()
Response.AppendHeader("content-disposition", "attachment; filename=Arquivo.xls")
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = "utf-8"
Response.ContentEncoding = System.Text.Encoding.GetEncoding("ISO-8859-1")
Me.EnableViewState = False
Response.Write(hw.ToString())
Response.End()
porém está me dando o seguinte erro:
sys.webforms.pagerequestmanagerservererrorexception: the message received from the server could not be parsed... details: erro parsing near '<div id='teste'><tab'.
se executo o mesmo no c# funciona. se pego o html e trasnforme em um arquivo .html e excuto no browser funciona.
pq do erro?