Solved

How to close an infopath form (in a browser) programatically from a button (NOT using RULES)

Posted on 2008-10-22
2
2,577 Views
Last Modified: 2012-05-05
Scenario: Infopath forms services, moss 2007, theres a button on the form , has some rules which are applied and then i want some code to run (including submit form) - all this works. But how do i get it to close afterwards? All i need is some C# to close form and make sure it returns to back to page form was opened from.

Thanks
0
Comment
Question by:davidsmythmeuk
2 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
Comment Utility
The default is to return to the originating page.

I believe Close() is what you want. Check the MSDN reference.

You could also put the close on the button as a rule, which will execute after the code.
0
 
LVL 1

Expert Comment

by:RHADMIN
Comment Utility
No Close() method can't be referenced(not available) in FormCode.cs???  (NOT using RULES)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now