|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Programmatically enabling Validation ControlsI have RequiredFieldValidator controls in a FormView (EditTemplate) in a
UserControls which is placed on a Wizard which is on a Page. They work fine. I would like to enable/disable them programmatically. I can't seem to find a reference to any of them. I have tried FindControl without luck. Have tried looping through Page.Validators but that count is zero. Intellisence fails to show any of them in the UserControl. Would appreciate any help Jav You will want to walk through it with the debugger to see where things
exist. They may be buried deep within a templated control. Either use the Immediate Window or add a Watch for a few items as you walk the code in the debugger. If you could post the markup for the user control I may be able to tell you how to reach your validator. Brennan Stehling http://brennan.offwhite.net/blog/ Jav wrote: Show quoteHide quote > I have RequiredFieldValidator controls in a FormView (EditTemplate) in a > UserControls which is placed on a Wizard which is on a Page. They work fine. > I would like to enable/disable them programmatically. I can't seem to find a > reference to any of them. I have tried FindControl without luck. Have tried > looping through Page.Validators but that count is zero. Intellisence fails > to show any of them in the UserControl. > > Would appreciate any help > Jav
Really Stuck on a Canlendar Control PLEASE HELP!!!
Javascript disabled Menu control Accessibility UserControl values lost on PostBack Getting row index by Event Args... I am trying to hide some textboxes, dropdownlists and labels in datalist Video Player in browser... how do I do? Shuffling rows in a GridView DetailsView Issue. Data diagrams - like the ones in office (excel, word, et al.) CustomWeb Controls and Events |
|||||||||||||||||||||||