Try our conversational search powered by Generative AI!

XForm Epi 5.2

Vote:
 

Hi.
Pretty new to EPi 5.2 but here goes.
Im trying to build my self an XForm.
Iam putting in one textbox and one button.
On the button, I tell the editor to Save In Database....ok....

Browsing the page that contains the form -> write blabla in the textbox and click submit generates the following throw:
System.Exception: Cannot find form to submit

A fast look in the Reflector tells me that this is catched in the Submitform virtual method in
EPiServer.XForms.WebControls.

Here is some part of the reflected code to SubmitForm virtual  method
   XFormControl xFormContainer = base.XFormContainer;
    if (xFormContainer == null)
    {
        throw new Exception("Cannot find form to submit");
    }

What the...am I doing wrong, or what is it that im missing here.

#30226
Jun 08, 2009 12:55
Vote:
 

Hi.
(this is me, posting to my self after help from EPiServer Support.)


Solution:
All DataBinds() have to be assignet a controler.
All DataBinds() that lives within a page_load / OnLoad must be captualted within a !IsPostBack check.

Also be aware to check third party codes.

//Arnt

#30838
Jun 24, 2009 11:09
Vote:
 
#30863
Jun 24, 2009 18:52
Vote:
 
#30866
Jun 25, 2009 8:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.