Query on ASP .NET: Validators

G

Guest

1) When we use the validation summary we face the following challenges.

When the page is loaded for the first time, a summarised message box is
shown. This happens for the erroneous drop down fields marked as error(This
is because we have validators for the drop and if the drop has the default
value "Please Select a value" at the time of page load we get the error). Is
there a way by which we can prevent the message box to appear by itself on
the (first) page load and appear only on submission/ saving of the page.

2) The same validation summary control is summarising my erroneous textbox
entries. I am having 2 textboxes having same validation rules and even the
same error message. So in case the user makes the same mistake in both the
textboxes, the validation summary control shows two same error messages. How
can we force it to display the similar messages only once and not twice?
 
G

Guest

1. Works fine here. May be, the form is submitted in the page onload event by
mistake thus forcing validation?
 
G

Guest

Forgot to answer for (2): Not possible because validation summary control
doesn't do such checks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top