User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,401 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,915 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

.net validation/javascript conflict

Join Date: May 2007
Posts: 1
Reputation: airyce is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
airyce's Avatar
airyce airyce is offline Offline
Newbie Poster

Re: .net validation/javascript conflict

  #9  
May 31st, 2007
Originally Posted by cmert View Post
Same problem happened to me and I've found a solution..

Now HERE IS MY SOLUTION;
1) Change EnableClientScript settings to FALSE for each validation rule. (Custom or Regular doesn't matter)
This will post the page back and validate fields at server level.

2) Place your code which you would like to process, if all fields are valid to between followin if statement;
if Page.IsValid then
'Your code
end if

And this worked fine for me, I am positive it is going to work for you too,..

Thanks,
Mert..


I am having that same problem too regarding with the .net validator and javascript ...

after i have try your suggestions it didn't work fine for me....

cause im using a java-based calendar and a required field validator
although the calendar is working but whenever it clicks.. for example clicking the year (or month) it skips by 3 , by 4 , by 5 and so on....

and whenever i checked the error.. this is what i've got

----length is 'null' or not an object

how come that is null? and why it is null?

can anyone knows why are those two conflict?

???
Reply With Quote  
All times are GMT -4. The time now is 1:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC