Solved

How to get rid of the validation errors from the bottom of the page

Posted on 2014-03-22
2
286 Views
Last Modified: 2014-03-23
I have this simple text box to input an e-mail address.
Email Address  <asp:TextBox ID="anTxbEmail" runat="server" AutoPostBack="true" OnTextChanged="CheckAccountExistence" Width="160px" BackColor="#00CC00" BorderColor="#00CC66" Font-Names="Calibri"></asp:TextBox>

Then I have attached a RequiredField validator....
<asp:RequiredFieldValidator ID="rfEmailAddress" runat="server" ControlToValidate="anTxbEmail" ErrorMessage="Email Required." Display="Dynamic" SetFocusOnError="true" />

Then I have attached  a Validation Summary...
<asp:ValidationSummary ID="ValidationSummary" ShowSummary="False"  ShowMessageBox ="true" runat="server"  />


Now the problem I have is when I click the OK button while having the email text box empty, yes it shows the error on the Message Box BUT it still shows the same error at the bottom of the page in spite of saying ShowSummary="False".

What I am not doing right here?
0
Comment
Question by:prain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 250 total points
ID: 39948192
I suspect what you are seeing is not the validation summary but the validator itself, you need to set the Display property to None :

<asp:RequiredFieldValidator ID="rfEmailAddress" runat="server" ControlToValidate="anTxbEmail" ErrorMessage="Email Required."  Display="None" SetFocusOnError="true" />
0
 

Author Closing Comment

by:prain
ID: 39948633
Perfect. Thank you :-).
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question