Solved

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

Posted on 2014-03-22
2
284 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using YubiKey with REST API application 2 136
groupSumClump challenge 9 138
groovy example issue 10 111
VBS to download an image from our website 4 43
This article will show, step by step, how to integrate R code into a R Sweave document
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

749 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