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.
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.