Copied to clipboard

Flag this post as spam?

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


  • shine 43 posts 83 karma points
    Feb 10, 2013 @ 06:15
    shine
    0

    Umbraco error of User control

    hello friends,

     

        I face error below when i put user control macro in umbraco how can i solve it?

    error:

    Server Error in '/' Application.

    Control 'ContentPlaceHolderDefault_body_login_1_txtUsername' of type 'TextBox' must be placed inside a form tag with runat=server.

  • Pasang Tamang 258 posts 458 karma points
    Feb 10, 2013 @ 06:44
    Pasang Tamang
    100

    Hi Shine,

    The error message is telling clearly, your user control needs to be inside a form tag with runat server. So first check your html markup if the form is inside the form or not.

    <form id="form1" runat="server">
    <!--your usercontrol macro-->
    </form>

    Kind Regards
    PTamang

  • shine 43 posts 83 karma points
    Feb 10, 2013 @ 06:57
    shine
    0

    Thank you very much  Pasang its work.....................................

     

Please Sign in or register to post replies

Write your reply to:

Draft