views:

279

answers:

2

Hello,

I have created UserControl that contains a textbox and a restricted length validator for that textbox.

I'm adding user controls dynamically via UpdatePanel to my Parent WebForm. And the problem is that Validator just won't work. It just won't trigger.

I work on .net 3.5.

Does anyone have any clue what is happening and how can I make this validator work.

A: 

I have face similar problem and my validator in the detailsview-->updatepanel-->Validator

Check this thread for details

On the Client Click I have enable validator using javascript function

ValidatorEnable(document.getElementById('<%=rfv.ClientID%>'), true);
Muhammad Akhtar
A: 

I too faced such an issue. I was using .Net 3.0 and VS2005. I referred to this problem discussion and the solution and could solve my issue. You too can refer the same.

Kangkan