Showing posts with label thanx. Show all posts
Showing posts with label thanx. Show all posts

Saturday, March 24, 2012

Set Focus on Web Form.

Plz Help
How to set focus on a text box for VB.Net web form.
Thanx in Advance.Check out this code snippet,
http://www.extremeexperts.com/Net/C...ck.
aspx
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"JAPHET" <JAPHET.GUYAI@.stcl.com> wrote in message
news:eSsygabvEHA.2200@.TK2MSFTNGP11.phx.gbl...
> Plz Help
> How to set focus on a text box for VB.Net web form.
> Thanx in Advance.
>
There is one way:
In the .aspx file, add the onLoad attribute as in:
<body onLoad="document.forms[0].<%= TextBox.ClientID %>.focus();">
...
"JAPHET" <JAPHET.GUYAI@.stcl.com> wrote in message
news:eSsygabvEHA.2200@.TK2MSFTNGP11.phx.gbl...
Plz Help
How to set focus on a text box for VB.Net web form.
Thanx in Advance.

Set Focus on Web Form.

Plz Help
How to set focus on a text box for VB.Net web form.
Thanx in Advance.Check out this code snippet,
http://www.extremeexperts.com/Net/C...erPostback.aspx

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"JAPHET" <JAPHET.GUYAI@.stcl.com> wrote in message
news:eSsygabvEHA.2200@.TK2MSFTNGP11.phx.gbl...
> Plz Help
> How to set focus on a text box for VB.Net web form.
> Thanx in Advance.
There is one way:

In the .aspx file, add the onLoad attribute as in:

<body onLoad="document.forms[0].<%= TextBox.ClientID %>.focus();">
...

"JAPHET" <JAPHET.GUYAI@.stcl.com> wrote in message
news:eSsygabvEHA.2200@.TK2MSFTNGP11.phx.gbl...
Plz Help
How to set focus on a text box for VB.Net web form.
Thanx in Advance.