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
5 answers

ValidationSummary javascript error

I'm getting an error on this line of javascript in IE8. It doesn't happen when the ValidationSummary is commented out. I believe this is the code that is generated by the control. The ValidationSummary is on a UserControl that is used in a content…
Ronald McDonald
  • 2,843
  • 11
  • 49
  • 67
0
votes
2 answers

ASP.Net vertical spacing on a ValidationSummary control

Within ASP.Net 4.0 is it possible to increase the vertical spacing between the errors\warnings that appear on a ValidationSummary control? I'm finding that they are just a little to close to each other. Thanks
user1131661
  • 229
  • 3
  • 8
  • 19
0
votes
1 answer

What is best way to display error message that all radio buttons must be selected in an ASP.NET Core MVC view?

I have a set of radio buttons in my ASP.NET Core MVC view. If "Submit" (save) is clicked without selecting ALL radio buttons, I want to display a message: All radio buttons must be selected in the @HTML.ValidationSummary at the top of my…
Plan Man
  • 23
  • 1
  • 8
0
votes
1 answer

using jquery how do I validate individual elements and show the relevant error message in the Validation Summary

I have a form that has seperate divs that are shown and hidden as the user progresses down the page. The submit is only down at the bottom of the page. Each div has a button that calls a javascript function. In the function I want to only validate…
Stu Harper
  • 721
  • 2
  • 9
  • 22
0
votes
1 answer

Validation Message is shown even there is no error message

I have created a form along with other fileds having validation and there is one field where it doesn't have the validationMessageFor but in validationSummary I am able to see the error for that field and model doesn't have the required property.
Siva
  • 1
  • 1
0
votes
3 answers

Adding error to page validation on ASP.NET Web Forms

I would like add error message to page validation in order to display it on the validation summary but how? here is my goal on the code behind file; try { DateTime.Parse(txtBirthDate.Text); } catch (Exception err) { //Adding error message…
tugberk
  • 57,477
  • 67
  • 243
  • 335
0
votes
4 answers

Validation summary message pops up twice

I have validation controls in my page and I am using Validation summary message box to display the validation messages,the javascript function shown below worked for me but the problem is I am using this javascript function on OnClientClick event of…
Kishore
  • 653
  • 6
  • 16
0
votes
1 answer
0
votes
2 answers

asp.net ValidationSummary location/focus

I am using asp.net ValidationSummary. my form is 1.5 of the screen which means user can not see the complete form at a time and s/he has to scroll. The ValidationSummary is located at the bottom of the page. User is at the top of the page and error…
bjan
  • 21
  • 7
0
votes
1 answer

asp.net mvc problem in IValidatableObject method on validation

I am creating a web app in asp.net mvc-5, I am using IValidatableObject interface for validations, here is how my model looks, public class LicenseInfo : IValidatableObject { public int LicenseId { get; set; } //other properties public…
0
votes
1 answer

How to prevent page from scrolling when asp validators fails witha a pop up window

My page has ASP validations. When validation fails and error pop up is displayed, the page is scrolled down and the div container moves down. How can I prevent this kind of behavior?
gene
  • 2,098
  • 7
  • 40
  • 98
0
votes
1 answer

Html.ValidationSummary Not Populating with Custom Errors ASP.NET MVC Razor Page

I'm fairly new to MVC, I need to create a custom error that would fire if the user does not select a category. However the Html.ValidationSummary is not populating when a product without categories is created. Instead the view is returned and shown…
TroySteven
  • 4,885
  • 4
  • 32
  • 50
0
votes
2 answers

@Html.ValidationSummary(true, "Please fix errors") not displaying "Please fix errors" message

I was following along with a tutorial on how to implement validation in my MVC web application. Below is a snippet of my View for creating a new Student:

Student


Michael
  • 1
  • 1
0
votes
1 answer

How I can display asp.net validationsummary horizontally?

I`m using asp.net validator, and now I need to dispaly validationsummary horizontally, How I can do it? tx
0
votes
0 answers

How to show Catch block exceptions in Validation summary

I have a try and catch block for sending multiple emails. Everytime a exception in email address occurs then in Catch block it is set as text to multiline textbox. But I am having problem showing large data. the current code is: catch(Exception…
Preet
  • 984
  • 2
  • 14
  • 34