all groups > dotnet academic > may 2004 >
You're in the

dotnet academic

group:

Setting focus to Web forms controls



Setting focus to Web forms controls IMRAN SAROIA
5/13/2004 4:58:23 PM
dotnet academic: Hi friends!

For setting focus to Windows form we use following command:

Me.MyControl.Focus()

But please advise about setting focus to web form's control.

Regards

Imran

Re: Setting focus to Web forms controls IMRAN SAROIA
5/14/2004 2:35:51 PM
Hi!
Thanks

This solution really works.


[quoted text, click to view]

RE: Setting focus to Web forms controls srini
5/15/2004 1:41:02 AM
hi
you can set focus to a control by using javascript lik
document.forms[0].txtTest.focus(); where txtTest is a textbox in the form
The bes
Re: Setting focus to Web forms controls sridhar Akula
6/30/2004 5:01:48 PM

[quoted text, click to view]

You need to use the javascript focus() function.


AddThis Social Bookmark Button