Karl Seguin wrote:
> Just to vld.ControlToValidated = tb.ID no need to do a FindControl on it,
> you already found it
it's tb...you created it...
>
> You might need to use ClientId or UniqueId instead of just ID...not 100%
> sure...but just a heads up...
>
> Karl
>
Thanks for the reply, but I was trying FindControl because tb.ID didn't
work (Intellisense said it was ok, but it failed at runtime).
So here's the runtime errors I get for each of those suggestions:
tb.ID:
The ControlToValidate property of '' cannot be blank.
tb.UniqueID:
Unable to find control id 'dgGuest:_ctl2:_ctl0' referenced by the
'ControlToValidate' property of ''.
tb.ClientID:
Unable to find control id 'dgGuest__ctl2__ctl0' referenced by the
'ControlToValidate' property of ''.
So could it be that in adding a second control to the same cell I'm
somehow overwriting the tb control? Any other ideas?
THANKS!
Matt