Try the validation controls.   Look for reference here:
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/validation/default.aspx

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?

Reply via email to