G
Guest
I have an ASP.Net text box which I am adding a javascript event (onChange) at
runtime. It passes a parameter which is another control which I am getting
the name for from the ClientID property.
So when rendered looks like:
<input name="txtVal" type="text" id="txtVal" onChange="DoCalc(txtVal2);"/>
This works fine, but as soon as I add a rangeValidator to the txtVal2
control and the event fires it fails with a txtVal2 is undefined error?
Removing the validator recifies the problem.
Any help would be appreciated.
runtime. It passes a parameter which is another control which I am getting
the name for from the ClientID property.
So when rendered looks like:
<input name="txtVal" type="text" id="txtVal" onChange="DoCalc(txtVal2);"/>
This works fine, but as soon as I add a rangeValidator to the txtVal2
control and the event fires it fails with a txtVal2 is undefined error?
Removing the validator recifies the problem.
Any help would be appreciated.