My suggestion *would* be to use the CustomValidator too, but especially with the Client script (Javascript). This is typically the kind of validation that should not cause a postback and require server side validation.
Looking for a suitable Javascript may prove to be overkill... this is one of the simplest validation scenarios and you should easily be able to write the validation function on your own. (assuming basic JS skills). On Dec 30, 1:10 am, Chuck <[email protected]> wrote: > Try the validation controls. Look for reference > here:http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/validatio... > > I would try to set it up under the custom validator. > > I know there's a javascript way to doing it; you might be able to > google javascript validation and take it from there. > > If I find anything, I'll let you know. > > On Dec 29, 1:54 pm, Stacie <[email protected]> wrote: > > > > > I have a textbox (OtherHours) and listbox (OtherHoursType) in my web > > form (using VS 2005/VB.net). If the user enters hours into the > > OtherHours control then they must also select an Other Hours Type in > > the OtherHoursType control. I'm having difficulty figuring out how to > > write validation for this. Does anyone know how to do this or have a > > good online reference to recommend?- Hide quoted text - > > - Show quoted text -
