?
Solved

ASP.Net, Javascript

Posted on 2011-05-05
2
Medium Priority
?
183 Views
Last Modified: 2012-05-11
I am working in a .net C# 2010 web applciation.
One page contains lot of javascript functions to enable and disable controls and validators.
Depending on the serverside control values, I am enabling and disabling the validators in javascript.
But while running the application, I am getting Page.Isvalid = false and page is returning without saving the page.
I know, this is happening because, one of the validator is not visible in page but still it is validating the page.
Because of which i am not seeing the validation error, but page.is valid is false.
My question is,
1. How can I see the error, if page.isvalid is false (when the validations are return in javascript)
2. How to debug javascript in VS 2010.

Thankyou
0
Comment
Question by:RameshLathu
2 Comments
 
LVL 31

Accepted Solution

by:
MlandaT earned 1500 total points
ID: 35702288
Not too sure what the issue could be but perhaps try:

1) Give each validation control a value in the ErrorMessage property
2) Add a ValidationSummary control to the page

See if that makes a difference in whether the errors get reported. The ValidationSummary uses the text in the ErrorMessage property for the errors that are displayed either inline or on a summary form.
0
 

Author Closing Comment

by:RameshLathu
ID: 36196150
thankyou
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question