HighTechTalks DotNet Forums  

Setting focus to Web forms controls

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Setting focus to Web forms controls in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
IMRAN SAROIA
 
Posts: n/a

Default Setting focus to Web forms controls - 05-13-2004 , 07:58 PM






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



Reply With Quote
  #2  
Old   
srini
 
Posts: n/a

Default RE: Setting focus to Web forms controls - 05-15-2004 , 04:41 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
srini

Reply With Quote
  #3  
Old   
sridhar Akula
 
Posts: n/a

Default Re: Setting focus to Web forms controls - 06-30-2004 , 07:31 AM




"IMRAN SAROIA" <imransaroia2000 (AT) hotmail (DOT) com> wrote

Quote:
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


You need to use the javascript focus() function.





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.