Group:  Other Microsoft Office Products ยป microsoft.public.infopath
Thread: Submitting form using XmlFormView

Geek News

Submitting form using XmlFormView
Todd Kitta 12/30/2008 4:32:02 PM
I am hosting an XmlFormView control in my ASP.NET page (SharePoint site page)
and I want to submit the form programmatically when the user clicks an
ASP.NET button. So, I wrote some code like this:

// make sure the XmlForm property is not null by calling this
xmlFormView.DataBind();

// submit the form
xmlFormView.XmlForm.Submit();

This code actually runs without any exceptions being thrown, but my form's
submit method is never called! Not sure if it matters or not, but my form is
submitting with custom code ("Perform custom action using code" in the
"Submit Options" dialog).

Any ideas?
RE: Submitting form using XmlFormView
Anuma(GGK Tech) 12/31/2008 12:45:02 PM
Hi,
Can you verify below link. http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.xmlform.submit(VS.80).aspx

--
Anuma Reddy
http://www.GGKtech.com



"Todd Kitta" wrote:

[Quoted Text]
> I am hosting an XmlFormView control in my ASP.NET page (SharePoint site page)
> and I want to submit the form programmatically when the user clicks an
> ASP.NET button. So, I wrote some code like this:
>
> // make sure the XmlForm property is not null by calling this
> xmlFormView.DataBind();
>
> // submit the form
> xmlFormView.XmlForm.Submit();
>
> This code actually runs without any exceptions being thrown, but my form's
> submit method is never called! Not sure if it matters or not, but my form is
> submitting with custom code ("Perform custom action using code" in the
> "Submit Options" dialog).
>
> Any ideas?
RE: Submitting form using XmlFormView
Todd Kitta 12/31/2008 3:28:00 PM
This is just a pointer to the documentation for the method I am using that is
not work. This does not help me.

"Anuma(GGK Tech)" wrote:

[Quoted Text]
> Hi,
> Can you verify below link.
> http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.xmlform.submit(VS.80).aspx
>
> --
> Anuma Reddy
> http://www.GGKtech.com
>
>
>
> "Todd Kitta" wrote:
>
> > I am hosting an XmlFormView control in my ASP.NET page (SharePoint site page)
> > and I want to submit the form programmatically when the user clicks an
> > ASP.NET button. So, I wrote some code like this:
> >
> > // make sure the XmlForm property is not null by calling this
> > xmlFormView.DataBind();
> >
> > // submit the form
> > xmlFormView.XmlForm.Submit();
> >
> > This code actually runs without any exceptions being thrown, but my form's
> > submit method is never called! Not sure if it matters or not, but my form is
> > submitting with custom code ("Perform custom action using code" in the
> > "Submit Options" dialog).
> >
> > Any ideas?

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net