setfocus eh ! help

J

jaffer the but

Hi

whats the new alternative to setfocus in vb.net ?

thanks in antisipation - j
 
C

Cor Ligthert

Hi Jaffer,

On a webform there is not, and because I think you are not ask it for a
windowform where it is
control.focus

You can set the focus in a webform by adding this as last rows before the
</html> in you aspx page.

<script language="JavaScript">
contolid.focus();
</script>

where controlid is the id of your control

I hope this helps a little bit?

Cor
 
M

Martin Dechev

What is "setfocus"? What language are you refering to? Can you post some
documentation on what "setfocus" does?

Greetings
Martin
 
L

Lars Netzel

Here's a cut and Paste Row on how I use it!

FocusManager1.BoundControlID = Request.Item(Me.UniqueID & "_tbOnFocus")



/lars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top