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

  • Home
  • SEARCH
  • 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 7840953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:58:46+00:00 2026-06-02T15:58:46+00:00

I have ErrorMessage in my attributes being set .. For example: <asp:TextBox ID=FullName runat=server

  • 0

I have ErrorMessage in my attributes being set ..

For example:

          <asp:TextBox ID="FullName" runat="server" ></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="Surname_TextBoxWatermarkExtender" 
                runat="server" 
                Enabled="True" 
                TargetControlID="FullName"
                WatermarkText="Full Name" 
                WatermarkCssClass="watermark"  
                ></asp:TextBoxWatermarkExtender>

              <asp:RequiredFieldValidator 
              ID="RequiredFieldValidator2"
               runat="server"
               ErrorMessage="Must insert full name"
               ControlToValidate="FullName"
               ForeColor="#FF3300"
               SetFocusOnError="True"
                ></asp:RequiredFieldValidator>

                  <asp:CustomValidator 
                ID="CustomValidator2"
                runat="server"
                ControlToValidate="FullName"
                ClientValidationFunction="EmpIDClientValidate"
                OnServerValidate="EmpIDServerValidate"
                ErrorMessage="CustomValidator"
                Display="dynamic"
                ></asp:CustomValidator>

Now I want the to insert the error message “Must insert full name” into the summary and leave the required control message having this only :”*”. While the summary control should have the full message. Here is my summary control.

 <asp:ValidationSummary runat="server" ID="Summary"
              ShowMessageBox="true" 
              HeaderText="<b>Please review the following errors:</b>" ShowSummary="False"
            /> 

I know it can be done..But I dont know what attribute/property to add to make that happen?

UPDATE:

            <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
               runat="server"
               ErrorMessage="*"
               HeaderText="User name is empty"
               ControlToValidate="UserName"
               ForeColor="#FF3300" 
               Display="Dynamic"
               SetFocusOnError="True"></asp:RequiredFieldValidator>

The control above produces *..which is what I want ..but the summary should take the …”User name is empty” and display it..
Here is the summary again:

<asp:ValidationSummary runat="server" ID="Summary"
              ShowMessageBox="true" 
              HeaderText="<b>Please review the following errors:</b>" ShowSummary="False"
            /> 
  • 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-06-02T15:58:48+00:00Added an answer on June 2, 2026 at 3:58 pm

    I found what the answer should be:

    <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                   runat="server"
                   Text="*"
                   ErrorMessage="Field cant be empty"
                   HeaderText="User name is empty"
                   ControlToValidate="UserName"
                   ForeColor="#FF3300" 
                   Display="Dynamic"
                   SetFocusOnError="True"></asp:RequiredFieldValidator>
    

    You should put text..that will represent the error in teh field..and the Error message will be represented in the validation summary control

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

Sidebar

Related Questions

I have a table row that has the error message in it. <tr runat=server
using ASP.NET MVC, I have a Model, to which I'm attaching attributes so that
I have a model item public class EntryInputModel { ... [Required(ErrorMessage = Description is
I have this class used in MVC3... The Validation Attributes for each property are
Say I have a model like this public class User { [Required] [StringLength(14, ErrorMessage
I have created an asp.net webpage and have uploaded it onto a webserver. However
I have an asp.net mvc 2 application which works fine when run from visual
I have an ASP.NET MVC 2 project in which I've created a data transfer
I have set the ActiveDirectoryMembershipProvider connectionProtection attribute to secure, according to MSDN documentation states
I recently deployed my ASP.NET 3.5 application to my test server, a newly installed

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.