infopath download a form from a wep page

N

NAT

I have the below four lines to the Page_Load event.

Context.Response.ContentType = "application/ms-infopath.xml";
Context.Response.AddHeader("content-disposition", "attachment;
give_your_infopath_document_a_cool_name_here.xml");
Context.Response.BinaryWrite( Encoding.UTF8.GetBytes
(yourInfoPathDocumentAsXmlStringGoesHere));
Context.Response.End();

When I look at the IIS logs after InfoPath as downloaded an form data XML
file (not the template but the data), I see InfoPath makes 3 GET requests
when I expect just one. Infopath tries for some strange reason to reload the
document from the URL on it's own.

This makes my application very slow. Does anybody know how to avoid it ?
Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top