[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB ASP.NET "CUSTOM CONTROL" REQUIRED FIELD VALIDATOR

Posted on 2013-06-14
1
Medium Priority
?
565 Views
Last Modified: 2013-06-17
I want to create a custom control
with a gridview.

If a row is not selected, and validation is enabled for that control it should trigger
a required field validator on the parent form.

How should this custom control be programmed to trigger the CLIENT SIDE validation?
0
Comment
Question by:sparksolutions
1 Comment
 
LVL 15

Accepted Solution

by:
jorge_toriz earned 2000 total points
ID: 39253769
You could catch the "SelectedIndexChanged" event of your GridView and then set the value into a Hidden, then you can assign the validator to the Hidden
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question