Server validator function fires even if not created (LOST ???)
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hey experts, I've got a CustomValidator wrapped inside a repeater, which is wrapped inside an if condition. When the condition is not met the code is not generated (I verified it using the browser's view source screen). However, the server function which validates the TextBox fires anyway, and it shouldn't. I realize that the following is a very simplified code, but I figure there's a concept I'm not aware of. Please advice... :confused:
<% if (...)
{
%>
<% } %>