title: Response.Write and UpdatePanel
body: <p>I generate a vcard that I send to the client using the following code snippet:</p>
  
  <pre><code>Response.AddHeader("Content-Disposition", string.Format("attachment; filename={0}", fileNameOnly));
  Response.ContentType = "text/x-vcard";
  Response.ContentEncoding = Encoding.GetEncoding("ISO-8859-1");
  Response.Write(vCard.ToString());
  Response.End();
  </code></pre>
  
  <p>However, I need to use vCards on a page that has the control inside and UpdatePanel. Unfortunately, according to <a href="http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx" rel="nofollow noreferrer">Update panel and Response write</a>  this does not work and causes an error. 
  I am wondering what are some alternative ways to send the contents of the vcard/file to the client's browser and have it display "open/save" dialog that don't involve Response.Write?</p>