Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3340596
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:37:33+00:00 2026-05-18T00:37:33+00:00

I have the following textbox with validation: <asp:TextBox ID=txtInput runat=server Width=80px CausesValidation=True></asp:TextBox> <asp:RequiredFieldValidator ID=RequiredValidator

  • 0

I have the following textbox with validation:

<asp:TextBox ID="txtInput" runat="server" Width="80px" 
             CausesValidation="True"></asp:TextBox>

<asp:RequiredFieldValidator ID="RequiredValidator" runat="server"
                            ControlToValidate="txtInput"  
                            Display="None" 
                            ErrorMessage="Bitte füllen Sie dieses Feld aus" 
                            Enabled="false" />

<asp:RegularExpressionValidator ID="RegularExpressionValidator" runat="server" 
                                ControlToValidate="txtInput" 
                                ValidationExpression="[0-9]{1}(\d)*" 
                                Display="None" 
                                ErrorMessage="Bitte geben Sie eine Zahl ein" 
                                Enabled="false" />

<asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" 
                              TargetControlID="RequiredValidator"  />

<asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" 
                              TargetControlID="RegularExpressionValidator"  />

If I click on a button on this page (CausesValidation is set to true) then the control validates properly.
But when I put the textbox and its associated validators and extenders not directly on the page, but instead into a usercontrol then the validation-popup doesn’t show anymore. It still seems to validate, because the action for the button is not triggered when the input is invalid.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:37:34+00:00Added an answer on May 18, 2026 at 12:37 am

    I found the solution. The name of my user control contains special characters. In my case “Ä” which is german A-Umlaut.
    It seems that ASP.NET has problems with validators of controls which names contain non ascii characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following text box control ; <asp:TextBox ID=txtAmount runat=server AutoPostBack=true Width=85px class=validate[ERExpenseTypeDaterequired,custom[float]]
I have an asp:TextBox that looks like the following <asp:TextBox runat=server AutoPostBack=True ID=txtG1 ontextchanged=txtG1_TextChanged
I have the following textbox server control in my web page: <asp:TextBox ID=txtZip runat=server
If I have the following in an ASP.NET Web Form: <asp:TextBox runat=server ID=tbxUser/> and
I have the following code <table cellpadding=2 cellspacing=2> <tr> <td>Factory:</td> <td> <asp:TextBox ID=txtFactory runat=server
I'm using ASP.NET WebForms and using some validation like the following: <asp:TextBox runat=server ID=txtUserName
If I have the following TextBox: <TextBox Height=30 Width=300 Margin=10 Text={Binding IntProperty, NotifyOnValidationError=True} Validation.Error=ContentPresenter_Error>
I have an issue with the following text display: <asp:RegularExpressionValidator ID=Password_RegularExpValidate runat=server Text=TEST! Display=Dynamic
In a gridview I have the following Template Field containing a textbox <asp:TemplateField ShowHeader=true
I have the following custom Validation.ErrorTemplate: <Setter Property=Validation.ErrorTemplate> <Setter.Value> <ControlTemplate> <DockPanel LastChildFill=True> <Label DockPanel.Dock=Bottom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.