Solved

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

Posted on 2008-10-22
2
2,592 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
ID: 22776500
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
ID: 33547472
No Close() method can't be referenced(not available) in FormCode.cs???  (NOT using RULES)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 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

22 Experts available now in Live!

Get 1:1 Help Now