Doc2Form Options
victorkani
Posted: Thursday, May 15, 2008 10:45:45 AM
Rank: Newbie

Joined: 5/15/2008
Posts: 13
Hi
I am new to umbraco and i want to design a WebPost page using the doc2Form, where each visitor will register his personal detail and then few lines of comment about the website.
Each user will be added as a Document under the Webpost node in the content and then using macro to view documents under the webpost.
Help me to implement this using Doc2Form.

I have imported the package to the Macros and used it in my form , but i got the error

System.Web.HttpException: Control 'Doc2Form_1_VS' of type 'ValidationSummary' must be placed inside a form tag with runat=server.
Dirk
Posted: Thursday, May 15, 2008 10:57:07 AM

Rank: Fanatic

Joined: 9/27/2007
Posts: 498
Location: Belgium
Hi,

For Doc2Form to work properly, it must be placed inside the <?ASPNET_FORM></?ASPNET_FORM> inside your template. This will make sure the appropriate ASP.Net form tags are added to the html output.

Also, make sure not to add multiple <?ASPNET_FORM> tags. By design, you can only have one such a tag in your html.

Good luck,
/Dirk



level 1 certified - umbraco blog at netaddicts.be
victorkani
Posted: Thursday, May 15, 2008 1:44:47 PM
Rank: Newbie

Joined: 5/15/2008
Posts: 13
I have placed the macro inside the <?ASPNET_FORM></?ASPNET_FORM>

<?ASPNET_FORM>
<?UMBRACO_MACRO macroAlias="Doc2FormEdit" DocumentType="1302" Template="ForumLog" ChooseWhereToStore="Forum" EditMode="1" ShowTitle="0" SubmitButtonText="SAVE" TextOnSubmit="Good" PublishOnSubmit="1" RefreshToParent="1" RedirectToNode="-1" PublishWithUserId="0" StorePropertiesInCookies="" UseAjax="0" ></?UMBRACO_MACRO>
</?ASPNET_FORM>

still i get the error

Dirk
Posted: Thursday, May 15, 2008 1:50:29 PM

Rank: Fanatic

Joined: 9/27/2007
Posts: 498
Location: Belgium
Can you post the html that is outputted when hitting the page (ie the page you get before submitting and getting the error)?

level 1 certified - umbraco blog at netaddicts.be
victorkani
Posted: Thursday, May 15, 2008 1:54:14 PM
Rank: Newbie

Joined: 5/15/2008
Posts: 13
The error is populated on page load.
Dirk
Posted: Thursday, May 15, 2008 2:01:37 PM

Rank: Fanatic

Joined: 9/27/2007
Posts: 498
Location: Belgium
Ok, let's try something else. I know I've done it before because of another error message, totally unrelated, but you may never know.

Here's what I did: put the <?ASPNET_FORM> tag in your master template, just below the standard <body> (And the corresponding closing tag just above the closing body tag). Does it make a difference?

level 1 certified - umbraco blog at netaddicts.be
victorkani
Posted: Thursday, May 15, 2008 2:27:44 PM
Rank: Newbie

Joined: 5/15/2008
Posts: 13
Is there any help document for Doc2Form package.How to implement it ?.
Dirk
Posted: Thursday, May 15, 2008 2:48:42 PM

Rank: Fanatic

Joined: 9/27/2007
Posts: 498
Location: Belgium
Package includes a accompanying doc on the use of the properties. Or, you can download the docs here

If still not satisfactory, you may try to get in contact with the author Casey Neehouse, either through codeplex or on his website. Maybe he can answer your problems/requests

Good luck,
Dirk


level 1 certified - umbraco blog at netaddicts.be
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.