Brian,
Add a hidden input and set it on the server side to the client id of the
control you want to set focus on. On client side, check the input in the
body's onload event and set the focus with
document.getElementById(hiddenInput.value).focus() ;
Eliyahu
"bbdobuddy" <> wrote in message
news:7BD5767C-096A-4434-B202-...
> Hi,
>
> I have a textbox in which in the TextChanged event I check to make sure
they
> entered in valid data, however if the data isn't entered properly I want
the
> cursor to go back to that text so they can fix the error.
>
> Any ideas on how to do this?
>
> Regards
> Brian
|