Accessing CausesValidation Value in JavaScript

M

mwieder

Given an html anchor button control, in javascript can I tell whether
that control is set to cause validation or not? In ASP.NET the
property that gets set is CausesValidatation, but in javascript,
..CausesValidation on the button comes up as undefined. I'm using
ASP.NET 2.0
thanks.
 
C

Craig Deelsnyder

Given an html anchor button control, in javascript can I tell whether
that control is set to cause validation or not? In ASP.NET the
property that gets set is CausesValidatation, but in javascript,
.CausesValidation on the button comes up as undefined. I'm using
ASP.NET 2.0
thanks.

the object models are totally different, in fact you're talking 2
different languages/objects :) anyway, put the value in a hidden field
and read it that way on the client-side.
 
M

mwieder

Of course the object models differ, but properties like disabled can be
set in asp.net and their values read in javascript using the disblaed
property of the control in question. I'm hoping there's some way to do
that with the CausesValidation property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top