Hi all
I have 2 asp textboxes on my page - one for username and one for password. I need to set focus to one them and select the text - depending on whether the user enters an incorrect username or password. I found the great code in the post by jfrost10 - but I need this to be a bit more dynamic - namely that I could specify a different control to set focus to - depending on the outcome of the error. Currently this only allows me to specify one control in the Page_Load method.
Any help please
Thanks as always
Craftor
I have 2 asp textboxes on my page - one for username and one for password. I need to set focus to one them and select the text - depending on whether the user enters an incorrect username or password. I found the great code in the post by jfrost10 - but I need this to be a bit more dynamic - namely that I could specify a different control to set focus to - depending on the outcome of the error. Currently this only allows me to specify one control in the Page_Load method.
Any help please
Thanks as always
Craftor