Hi,
I am working with Visual Studio 2003, framework 1.1
I am trying to focus a textbox when page loads. I tried
[code=vbnet]
Page.RegisterSt artupScript("fo cus", "<script>docume nt.getElementBy Id('name').focu s();</script>")
and
textbox.focus()
and
textbox.setfocu s()
[/code]
but it says focus or setfocus is not there in system.web.ui.c ontrols.textbox
I have also imported system.text
Can someone help me with this.
Thanks and Regards.
I am working with Visual Studio 2003, framework 1.1
I am trying to focus a textbox when page loads. I tried
[code=vbnet]
Page.RegisterSt artupScript("fo cus", "<script>docume nt.getElementBy Id('name').focu s();</script>")
and
textbox.focus()
and
textbox.setfocu s()
[/code]
but it says focus or setfocus is not there in system.web.ui.c ontrols.textbox
I have also imported system.text
Can someone help me with this.
Thanks and Regards.
Comment