asp.net - respone.Write(string) - also copies the wesite after th string -


xml string

response.write(xml); response.contenttype = "text/xml";  response.addheader("content-disposition", "attachment; filename=databasexml.xml"); 

problem: after writing content of xml string, writes webpage too. why?

missing response.end @ end?


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -