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

Overriding OnClientClick causing validation to fire multiple times

I'm trying to prevent a form from being submitted multiple time. It uses a validation summary so I am overriding the OnClientClick event for the submit button. It works as expected, the window showing the list of errors is being loaded multiple…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
1 answer

Change text of ValidationSummary C# razor MVC

I am using ValidationSummary to show errors after submit login action on my login page. There are two different errors to show. 1) Username and password invalid or 2) You are not allowed to access this feature The thing is that I want to change…
TiagoM
  • 3,458
  • 4
  • 42
  • 83
0
votes
1 answer

how to show validation summary with asterisk in mvc?

In this Form used validation summary for errors. View:-
@Html.ValidationSummary(false,"Please Correct Following details…
RookieCoder
  • 183
  • 1
  • 12
0
votes
2 answers

Html.ValidationSummary showing duplicate error messages

I have searched and Googled for the answer to this question to no avail. I'm using EF4 and ASP.NET MVC2 and I have an EF4 entity "Award" with a non-nullable string field, "RecipientID". I'm using DataAnnotations for server-side validation, so in my…
0
votes
1 answer

Each validation summary linked to it's own partial view

I have a view that is composed from 2 partial view plus what is already in the page. I want each view to have a validation summary. Everything is working fine except that when there's an error in one of the partials, the message is displayed in…
0
votes
1 answer

Razor: how can I set a class in ValidationSummary?

I would like to set in a ValidationSummary a bootstrap class of error. How can I do it?
Dave
  • 7,028
  • 11
  • 35
  • 58
0
votes
1 answer

Asp Validators: All firing at once (not wanted)

I have an ASP.net webpage hosting a form broken up into various update panels to improve the flow of the page. Without the tabs and update panels it would take the user a while to scroll all the way to the bottom. I have various data tables that…
0
votes
1 answer

MVC @Html.ValidationSummary Default Text

Is it possible to set any global defaults for use with the @Html.ValidationSummary? We're using it throughout our solution and want it always to show the same text. For example, we can achieve the text as follows: @Html.ValidationSummary(False,…
DavidReid
  • 449
  • 1
  • 5
  • 21
0
votes
1 answer

Issues in mapping between commandName and controller class

I am getting this error continuously ,I have seen earlier posts in stackoverflow similar to this one but I was not able to figure out how to map commandName with my controller class. What is the real use of commandName.…
SwagDevelopers
  • 109
  • 2
  • 12
0
votes
1 answer

Validation Summary not showing the message box

I have an aspx page, which is opened in a separate window (redirected from master page). I have added some validations to that page. When I click on the submit button, leaving the fields blank the scenario should be like it should show up a message…
0
votes
1 answer

Validation Summary Not Displaying Errors In Proper Place

I have two groups in my login page, login and createUser. I have two validation summaries, loginSum and createSum. I have Required Field validation on every control. If I click the Login or Create button without the required field having values, the…
bridgette
  • 23
  • 8
0
votes
1 answer

ValidationSummary is not displaying error message on server side after group assignment

I have a ValidationSummary control that was initially working with all my validation controls at the beginning, however, later on when I assigned my validation controls to groups, ie, give them a group name in the ValidationGroups attribute, it does…
0
votes
1 answer

Change icon in validationsummary in silverlight

I want to change the icon at the top left corner in the validation summary because it's not company compliant. Is this possible? I found nothing on google...
florianbaer
  • 170
  • 1
  • 11
0
votes
1 answer

Show only server side errors in validation summary

I have the following view: @model MyProject.Models.RegisterViewModel

E-Bill Saver Registration


Jay
  • 3,012
  • 14
  • 48
  • 99
0
votes
1 answer

asp.net ValidationSummary and User Controls

I'm doing a webform in .Net 3.5. I have a number of user controls on a page that have validation (mostly required fields) in the user controls. On the main page I have a validation summary. The validation summary shows the errors correctly. The…
Jeff B
  • 535
  • 1
  • 6
  • 15