Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Location
    Florida United States
    Posts
    105
    Thanks
    6
    Thanked 2 Times in 2 Posts

    RequiredFieldValidator the server tag is not well formed

    I am completely new to asp & C# so bare with me. I am trying to use RequiredFieldValidator and I am getting an error saying the server tag is not well formed. Here is my code....

    Code:
    <div id="LoginWrap">
                    <asp:TextBox ID="LoginTextBox" runat="server" Text="Email" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorLogin" runat="server"
                    ControlToValidate="LoginTextBox"
                    ErrorMessage="Please enter an email." . Text="!" />
                    <asp:TextBox ID="PasswordTextBox" runat="server" TextMode="Password" Text="Password" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server"
                    ControlToValidate="PasswordTextBox"
                    ErrorMessage="Please enter your password." . Text="!" />
                </div>
    New Coder!!!!

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,742
    Thanks
    41
    Thanked 191 Times in 190 Posts
    when do u get that error? after u try to login or something?

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #3
    New to the CF scene
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try getting rid of the periods for starters..

    Code:
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorLogin" runat="server"
                    ControlToValidate="LoginTextBox"
                    ErrorMessage="Please enter an email." . Text="!" />
                    <asp:TextBox ID="PasswordTextBox" runat="server" TextMode="Password" Text="Password" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server"
                    ControlToValidate="PasswordTextBox"
                    ErrorMessage="Please enter your password." . Text="!" />


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •