Hosting InfoPath forms in a custom aspx page

J

Jose

MSDN has an excellent article on the subject at
http://msdn.microsoft.com/en-us/library/aa701078.aspx. The example uses an
aspx page hosting an XmlFormView to display and manipulate an Infopath Form.
The aspx page has code in a code-behind page. It works like a dream when the
page is installed at the site collection root.

Here is the problem: at the end of the article, there is a section on how to
deploy the aspx page to a non-root site collection via a feature. This
description is patently incorrect because it describes a feature that deploys
just the aspx page, ignoring completely the aspx.cs code-behind page (and
any other auxiliary file you may have). Besides, if I understand correctly
you cannot deploy pages with code to a non-root site.

Would anyone be kind to post the correct procedure to deploy the aspx and
aspx.cs pages to a non-root site collection? Using the concepts described in
the paper, I have developed an elaborate and beautiful implementation of
browser-enabled InfoPath forms, but now I cannot deploy it correctly to its
appropriate place in a subsite. Any help will be appreciated.
 
U

Uncle Rico

Hi Jose,

I just recently did this myself. You cannot have an aspx page with code
behind. You must use inline code inside the .aspx page.

You can then deploy the .aspx page to the LAYOUTS folder usually located at
"C:\Program Files\Common Files\microsoft shared\Web Server
Extensions\12\TEMPLATE\LAYOUTS".
 

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