Copied to clipboard

Flag this post as spam?

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


  • Mariana 1 post 21 karma points
    Sep 20, 2012 @ 17:00
    Mariana
    0

    uBlogsy Package version 2.1.1.0 - RequiredFieldValidator validating the wrong control when adding a comment

    I was playing with the validation while adding comments on the posts and I noticed there is a problem on the validation behavior. I downloaded the source code and found the problem. In usercontrols\uBlogsy\Contact.ascx line 36, the RequiredFieldValidator is not validating the correct control.

    <div class="uBlogsy_row uBlogsy_tall">
    <label for="<%= txtMessage.ClientID %>">
    <%= umbraco.library.GetDictionaryItem("uBlogsyDicContactFormMessage")%><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail"
    Display="Dynamic">*</asp:RequiredFieldValidator>
    </label>
    <asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>

    So instead of ControlToValidate="txtEmail" should be ControlToValidate="txtMessage".

Please Sign in or register to post replies

Write your reply to:

Draft