I am testing doc2form project and I have a problem.
this is the error: Control 'ctl00_ctl00_ContentPlaceHolderDefault_Doc2Form_1_VS' of type
'ValidationSummary' must be placed inside a form tag with runat=server.
I tried to add the <?ASPNET_FORM> tag without success.
If I remove the doc2form macro from my template and i see the source html, i see the <?ASPNET_FORM>. Is it normal?
If I insert the form tag with runat=server property, i solve the problem, but the page content is wrong. I see only the submit button, then fields of my document type are not render.
Judging from the things you write in the post it sounds like you are running umbraco v3.x.x?
If not and you are actually running umbraco 4.x.x then you should place the doc2form macro inside a serverside form, which is done by adding <form runaet="server"></form> around the doc2form macro.
Normally you would encapsulate the whole page in a ASP.NET serverside form, so all content would exist inside that form. Like this for instance
<body>
<form runat="server">
<!-- rest of your html and content goes here -->
</form>
</body>
This is because umbraco is using ASP.NET web forms currently.
doc2form problem
hi,
I am testing doc2form project and I have a problem.
this is the error: Control 'ctl00_ctl00_ContentPlaceHolderDefault_Doc2Form_1_VS' of type 'ValidationSummary' must be placed inside a form tag with runat=server.
I tried to add the <?ASPNET_FORM> tag without success.
If I remove the doc2form macro from my template and i see the source html, i see the <?ASPNET_FORM>. Is it normal?
If I insert the form tag with runat=server property, i solve the problem, but the page content is wrong. I see only the submit button, then fields of my document type are not render.
Any idea?
thanks,
Davide
Hi Davide
Judging from the things you write in the post it sounds like you are running umbraco v3.x.x?
If not and you are actually running umbraco 4.x.x then you should place the doc2form macro inside a serverside form, which is done by adding <form runaet="server"></form> around the doc2form macro.
Normally you would encapsulate the whole page in a ASP.NET serverside form, so all content would exist inside that form. Like this for instance
<body>
<form runat="server">
<!-- rest of your html and content goes here -->
</form>
</body>
This is because umbraco is using ASP.NET web forms currently.
Eventually you can read some more about using doc2form in this blog post http://www.blogfodder.co.uk/post/How-To-Get-doc2form-For-Umbraco.aspx
I hope this helps.
/Jan
Many thanks for your reply,
I use the last version of Umbraco (4.3)
With classic <form runat="server"> tag the page work without error, but the form do not render my document type.
Oly the submit button is render.
I see the the blogfodder post, and I follow the example, but oly submit is render.
My document type have only 2 fields not mandatory.
Can you paste the macro code here? My guess is your document type or tabs are not set correctly.
this is my macro code:
<form runat="server">
<umbraco:Macro
DocumentType="1090"
Template=""
TabName=""
PageTabs="0"
HideTabNames="0"
ChooseWhereToStore="1090"
EditMode="0"
ShowTitle="0"
TitleName=""
SaveMemberAlias=", "
ShowDescriptions="0"
SubmitButtonText="salva"
PreviousButtonText=""
NextButtonText=""
RequiredText=""
TextOnSubmit="salvato"
PublishOnSubmit="0"
RefreshToParent="0"
RedirectToNode=""
PublishWithUserId=""
StorePropertiesInCookies=""
SendEmailResponse="0"
ResponseSubject=""
ResponseMessage=""
ResponseEmailFieldAlias=", "
ResponseCopyTo=""
EmailForm="0"
FormSubject=""
FormMessage=""
FormToEmailAddress=""
FormFromEmailAddress=""
UseAjax="0"
DefaultValueNode=""
Alias="Doc2FormComplete"
runat="server">
</umbraco:Macro>
</form>
I found the problem.
I have not specify the TabName property.
thanks for support,
Davide
is working on a reply...