I have a need to turn on a required field validator on a ASP.NET page when a check box is checked. I've noticed someone is happy to sell me ways of doing this, but I want to do this for free.
Anyway, I found a C# way of doing it (and it works great), but I only know VB.NET and I can't get VB.NET and C# to work on the same page. I also know I can just use javascript and not use the ASP.NET validators but it feels like a shame, especially since C#
can do what I want.
Here is a test code that I see works great in C#. I want to do this in VB.NET on a ASPX page. Any help?
greenmtnsun
Member
90 Points
18 Posts
Conditional Required Field Validator
Feb 27, 2006 06:28 PM|LINK
I have a need to turn on a required field validator on a ASP.NET page when a check box is checked. I've noticed someone is happy to sell me ways of doing this, but I want to do this for free.
Anyway, I found a C# way of doing it (and it works great), but I only know VB.NET and I can't get VB.NET and C# to work on the same page. I also know I can just use javascript and not use the ASP.NET validators but it feels like a shame, especially since C# can do what I want.
Here is a test code that I see works great in C#. I want to do this in VB.NET on a ASPX page. Any help?
Thanks!
Keith