Hello Everybody,
I have this problem: One page with lots of ASP.NET validation controls and tried to add one AJAX timer that must tick every 20 seconds. My update panel is really simple now, just the timer and a label to show the timer... the problem is that the timer just tick once. I know is due to validation controls 'cause I create a simple test page with just one textbox and a range validator and of course my timer, and after the first tick, it doesn't tick again. I already add this code in the Web.Config for Validators:
<tagMapping><addtagType="System.Web.UI.WebControls.CompareValidator"mappedTagType="Sample.Web.UI.Compatibility.CompareValidator, Validators, Version=1.0.0.0"/>
<addtagType="System.Web.UI.WebControls.CustomValidator"mappedTagType="Sample.Web.UI.Compatibility.CustomValidator, Validators, Version=1.0.0.0"/><addtagType="System.Web.UI.WebControls.RangeValidator"mappedTagType="Sample.Web.UI.Compatibility.RangeValidator, Validators, Version=1.0.0.0"/>
<addtagType="System.Web.UI.WebControls.RegularExpressionValidator"mappedTagType="Sample.Web.UI.Compatibility.RegularExpressionValidator, Validators, Version=1.0.0.0"/><addtagType="System.Web.UI.WebControls.RequiredFieldValidator"mappedTagType="Sample.Web.UI.Compatibility.RequiredFieldValidator, Validators, Version=1.0.0.0"/>
<addtagType="System.Web.UI.WebControls.ValidationSummary"mappedTagType="Sample.Web.UI.Compatibility.ValidationSummary, Validators, Version=1.0.0.0"/></tagMapping>
and I added too the Validators.dll... So anyone has an idea of what is missing?
Thanks,
Alejandra
Ok, I solved this problem. I just had to add an "EnableClientValidation = false" to every single validator and it worked, now the timer ticks every 20 seconds... the problem is that I still need to do a couple of Client Validations... hmmm.. I think I would need to do a workaround for this. Any suggestions?
Thanks
No comments:
Post a Comment