Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • billiblu 37 posts 62 karma points
    May 19, 2010 @ 19:41
    billiblu
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 19, 2010 @ 20:30
    Jan Skovgaard
    1

    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

  • billiblu 37 posts 62 karma points
    May 20, 2010 @ 00:26
    billiblu
    0

    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.

     

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    May 20, 2010 @ 07:34
    Casey Neehouse
    0

    Can you paste the macro code here?  My guess is your document type or tabs are not set correctly.

     

     

  • billiblu 37 posts 62 karma points
    May 20, 2010 @ 09:57
    billiblu
    0

    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>

  • billiblu 37 posts 62 karma points
    May 20, 2010 @ 12:36
    billiblu
    0

    I found the problem.

    I have not specify the TabName property.

    thanks for support,

    Davide


Please Sign in or register to post replies

Write your reply to:

Draft