I have a C#.NET web app that I'm creating that is meant to allow users
to fill out data in PDF forms and save it to a database, using the FDF
Toolkit. The problem that I'm having occurs when a user tries to open
the form to view the data / continue working on it. If I have
acrobat's "Display in Browser" option turned on so that the PDF file
loads inside the browser window, the form shows up with it's data
without a problem. However, if I turn that option off so that the PDF
loads in acrobat (or reader) separately, the PDF file will load, but
will not have any data with it.

Below is the code that I'm using to load the form data:

protected void Page_Load(object sender, EventArgs e)
{
if (Session["SelectedOperatorSN"] == null)
Response.Redirect ("LoadEnclosure.aspx");

Response.ContentType = "application/vnd.fdf";
string urlPath = Request.Url.AbsoluteUri.Substring (0,
Request.Url.AbsoluteUri.LastIndexOf ('/')) + "/PDFs/";
FDFACXLib.FdfApp fdfApp = new FDFACXLib.FdfApp ();
FDFACXLib.FdfDoc outDoc = (FDFACXLib.FdfDoc) fdfApp.FDFCreate ();

outDoc.FDFSetFile (urlPath + "T4102.pdf");
string serialNum = (string) Session["SelectedOperatorSN"]; ;

T4102DBAccess.LoadFDF (outDoc, serialNum); // Gets the form data fro
mteh database and sets it using FDF.SetValue()

Response.BinaryWrite ((byte[]) outDoc.FDFSaveToBuf ());
outDoc.FDFClose ();
Response.End ();
}

For our environment, loading the PDF form outside of the browser
window is the preferable method. Does anyone have any advice as to
what I can do about this?