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
0
votes
1 answer

CSS Form, ASP.NET Validation Summary is Wonky

Ok, this is driving me insane. I have a form and I'm not using tables. Each row is a p tag and consists of a label and a control. When I add a validation summary at the bottom it goes wonky. How do I get the validation summary to line up…
Westicle
  • 87
  • 1
  • 13
0
votes
1 answer

Validation Summary not picking up Error Message in group

I have several required fields and regex's on my form. The validation is fired on a button click. When the button is clicked, the error messages are showing where the asp:RequiredField are declared and not in the validation summary. Here is my…
Barry Tormey
  • 2,966
  • 4
  • 35
  • 55
0
votes
2 answers

ValidationSummary doesn't show Errors

I have a problem with my gridview which won't show the ValidationSummary-errors anymore. The Headertext of the ValidationSummary does show up as well as the * which I set to appear whenever the ExpressionValidation fires. I'm quite sure it worked…
OhSnap
  • 376
  • 2
  • 10
  • 30
0
votes
1 answer

Silverlight ValidationSummary screen real estate

Silverlight 3; I have a ValidationSummary in the top row of my grid. When the ValidationSummary appears, it pushes my button row (row 3) off the bottom of the displayable screen.
Mark Cooper
  • 6,738
  • 5
  • 54
  • 92
0
votes
2 answers

Data Annotation for a model consisting of multiple tables in database

I have a form displaying fields from 2 tables in database. I want to validate this form using Data Annotation model validation technique in MVC4. I am confused whether Data Annotation validation attributes should be applied to individual…
Chinu
  • 1,399
  • 1
  • 8
  • 2
0
votes
1 answer

ASP.NET MVC 4 Validation Errors not appearing

All my routes: routes.MapRoute( name: "Login", url: "{eid}/Login", defaults: new { controller = "Account", action = "Login", eid = ConfigurationManager.AppSettings["Congress_Code"] } // Parameter defaults ); …
Para
  • 2,022
  • 5
  • 34
  • 73
0
votes
1 answer

Unable to post a form due to ValidationSummary errors on form fields that are hidden dynamically through javaScript.

ASP.NET MVC 3 application. I am trying to post form that has some dynamic fields which appear and disappear using JavaScript. I am using IValidatableObject for doing server side validation on some of these dynamic fields. When these fields are…
0
votes
2 answers

ASP.NET Mvc3 Jquery dialog validation summary error displaying?

dialog content
@using (Html.BeginForm((string)ViewBag.FormAction, "Musteri")) {
@Html.ValidationSummary(true,…
AliRıza Adıyahşi
  • 15,658
  • 24
  • 115
  • 197
0
votes
0 answers

ASP.NET custom validator and validationSummary not appearing with error messages, but still firing the validation in a gridview

I am having an issue where I have a custom validator on each row in a gridview, and a summary at the bottom of the panel the gridview sits in. The custom validator fires when it is supposed and I set args.IsValid=false and assign an appropriate…
-1
votes
1 answer

ASP.NET Webforms - ValidationSummary show distinct errors

When I am using ValidationSummary to validate my page if I have duplicate errors my validation will show all this errors. I want to display a distinct list of errors. I think that the best approach is to ovverride an event. But I don't know what…
POIR
  • 3,110
  • 9
  • 32
  • 48
-1
votes
1 answer

How do i clear ValidationSummary when i close my modal?

I have the following form which is a bootstrap form. when a validation error occurs, i get the validationsummary appearing which is good. but when i close the modal, I want to clear the summary. how can i do this ?. @using (Html.BeginForm("Index",…
floormind
  • 1,868
  • 5
  • 31
  • 85
-1
votes
3 answers

Validate() function doesn't fire

Here is my button.
neverwinter
  • 810
  • 2
  • 15
  • 42
1 2 3
9
10