Copied to clipboard

Flag this post as spam?

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


  • Faisal Mushtaq 19 posts 119 karma points
    Feb 10, 2015 @ 06:48
    Faisal Mushtaq
    0

    Member Type validation not working.

    I am using umbraco 7.2 and created some mandatory member type. I used a macro to register member from client side. At this point validation is working for Name, Username, Password and Email but its not working on other member types I created. 

     @if (registerModel.MemberProperties != null) {

    for (var i = 0; i < registerModel.MemberProperties.Count; i++) {

                           <tr>

                                <td width="120px">

                                    @Html.LabelFor(m => registerModel.MemberProperties[i].Value, registerModel.MemberProperties[i].Name)

                                </td>

                                <td>

                                    @Html.TextBoxFor(m => registerModel.MemberProperties[i].Value)

                                    @Html.ValidationMessageFor(m => registerModel.MemberTypeAlias[i])

                                    @*<span style="color:Red;">@Html.HiddenFor(m => registerModel.MemberProperties[i].Alias)</span>*@

                                </td>

                            </tr>

                        }

                    }

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies