Copied to clipboard

Flag this post as spam?

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


  • Shafeeq 17 posts 87 karma points
    Dec 09, 2014 @ 14:00
     Shafeeq
    0

    A page can have only one server-side Form tag

    Hello Friends,

    I am using an user controle which containing a form controle, When I try to use this user controle it shows this error

    A page can have only one server-side Form tag..

    Is there any way to use this usercontrole in my template..?
    Please help me..

    Regards,
    Shafeeq

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Dec 09, 2014 @ 14:09
    Dave Woestenborghs
    0

    You probably have a form tag somewhere in your template. Asp.NET webforms only allows one form tag per page.

    Dave

  • Shafeeq 17 posts 87 karma points
    Dec 09, 2014 @ 14:16
     Shafeeq
    0

    Hai Dave,

    I couldnot see any other forms in my templates..but  my usercontrole is placed inside a content placeholder in master page.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Dec 09, 2014 @ 14:17
    Dave Woestenborghs
    0

    Can you post the code of your usercontrol and master page ?

  • Shafeeq 17 posts 87 karma points
    Dec 09, 2014 @ 14:26
     Shafeeq
    0

    I found another form in the template, then i removed that form.Now its showing user controle,but the submit button is not working,I am using Xe converter in that usercontrole..

    <form name="ucc" method="get" action="http://www.xe.com/currencyconverter/convert" runat="server">

    </form>

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 09, 2014 @ 14:53
    Jan Skovgaard
    0

    Hi Shafeeq

    Are you using Umbraco 7? If so...have you made the switch from MVC (Which is default in Umbraco 7) to Webforms in the /config/umbracoSettings.config file?

    Otherwise it won't be able to submit if you're using user controls in MVC mode.

    /Jan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 09, 2014 @ 14:54
    Jan Skovgaard
    0

    Aaah, did not notice the category was already "Umbraco 7". So the question is if you are using MVC or Webforms.

    Cheers, Jan

  • Shafeeq 17 posts 87 karma points
    Dec 09, 2014 @ 14:59
     Shafeeq
    0

    I am using Webforms...Umbraco v6.1.6

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Dec 09, 2014 @ 15:18
    Dave Woestenborghs
    100

    Hi Shafeeq.

    If want to post to a external site you don't need the runat server attribute

    dave

  • Shafeeq 17 posts 87 karma points
    Dec 09, 2014 @ 15:41
     Shafeeq
    0

    Thank you Dave..That changes worked for me..

Please Sign in or register to post replies

Write your reply to:

Draft