Questions tagged [validationsummary]

The ValidationSummary class is used to summarize the error messages from all validators on a ASP.NET web page in a single location.

A ValidationSummary is a control within ASP.NET that allows developers to specify a specific location for error messages to appear. It is part of the standard form validation framework developed by Microsoft for ASP.NET.

148 questions
3
votes
3 answers

Client Side Validation for different control events

I have a custom validator attached to a textbox control as follows
Adam Fox
  • 1,316
  • 2
  • 12
  • 24
2
votes
3 answers

inherit from asp:validationsummary

i have the requirement to show a nicely formatted error-message on top of the page (or control). therefore i implemented the render method of a new created server control. the new created control inherits from ValidationSummary. public class…
karlis
  • 912
  • 2
  • 11
  • 22
2
votes
2 answers

How can i customize the ValidationSummary control?

how do i go about modifying the display of the validationSummary control in asp.net i want to modify it completely not just modify the color of the text etc.has anyone got any sample code etc ?? thanks Niall
Somedeveloper
  • 817
  • 2
  • 14
  • 31
2
votes
2 answers

Change Validation Summary Text in MVC for a password validation

How do I change the default message on the validation summary when a password does not meet the requirements. The current message the appears is "Passwords must have at least one digit ('0'-'9'). Passwords must have at least one uppercase…
Chiefster
  • 61
  • 1
  • 10
2
votes
2 answers

Execute jQuery function when DOM is visible

I have a page with some custom validation which displays a result in a validation summary. I would like to reposition this validation summary to the bottum of the page without causing the page to scroll with the length of the validation summary. I…
Tgibson
  • 59
  • 1
  • 7
2
votes
2 answers

How to customize HeaderTemplate of ValidationSummary Silverlight control?

I'd like to customize HeaderTemplate of ValidationSummary control from Silverlight Toolkit and display localized Header. But I cant figure out how to display error counter right to header's text ... Can anybody help me with this? My current XAML…
Matjaz Bravc
  • 189
  • 1
  • 12
2
votes
0 answers

Web forms ValidationSummary and AddModelError key

AddModelError takes a string key parameter to enable error filtering, which is very simple to do in MVC, but I don't see any properties on the ValidationSummary control used in web forms. Is it simply not possible to filter the displayed errors via…
naasking
  • 2,514
  • 1
  • 27
  • 32
2
votes
1 answer

Validation Summary in TabControl (Silverlight 4)

everyone. Here is my question. I'm using MVVM pattern in my project and i have a UserControl, which has a TabControl on it. TabItems have validations on them. Main page looks like this:
vlaku
  • 1,534
  • 2
  • 14
  • 27
2
votes
2 answers

How to disable Silverlight DataGrid validation footer?

I'm facing the following problem: I'm using validation summary popup for displaying errors on the page, and i have an editable DataGrid. So there are 2 problems: 1) DataGrid validation duplicates validation error, if it occurs in the DataGrid cell.…
vlaku
  • 1,534
  • 2
  • 14
  • 27
2
votes
3 answers

how can i call a javascript function when an ASP.net validation summary is filled

i have a validationSummary in my page. i want to call a javascript function after the validationSummary is filled. how can i achieve this? i think i should add an attribute in the code behind, but i can't figure out what is the attribute's key. …
july
  • 21
  • 1
  • 2
2
votes
4 answers

Issue with Multiple ModalPopups, ValidationSummary and UpdatePanels

I am having an issue when a page contains multiple ModalPopups each containing a ValidationSummary Control. Here is the functionality I need: A user clicks a button and a Modal Popup appears with dynamic content based on the button that was…
2
votes
1 answer

ASP.NET - Single ValidationSummary for multiple validation groups - How to?

I have a Masterpage with a ValidationSummary. I need to use at least two different validation groups on a subpage since I have two actions (buttons). I would like the validation messages to be shown in the validation summary on the master page. This…
2
votes
0 answers

Why after postback my summaryvalidator shows disabled requiredfield validator messages?

I'm using javascript to make dynamic RequiredFieldValidators with some functions which work perfect disabling and enabling them with this function: function myValidatorEnabler(validator, enable) { validator.enabled = enable; …
2
votes
2 answers

ValidationSummary in MasterPage hide success label

I've got a ValidationSummary and SuccessLabel in the MasterPage When the SuccessLabel has detail in it, and then the ValidationSummary then fails validation I want it to hide the SuccessLabel and only show the ValidationSummary.
Alex Driver
  • 73
  • 1
  • 5
2
votes
5 answers

Stop Html.ValidationSummary() from changing the order of validation messages

In a ValidationSummary, why are the messages shown in a different order than the order you added errors to the ModelState and how might I fix this?
ajbeaven
  • 9,265
  • 13
  • 76
  • 121
1 2
3
9 10