locked
Could you provide setfocus to mobile textbox in mobile web form? RRS feed

  • Question

  • User1989672317 posted

    Hi,

     I am developing mobile application using asp.net mobile controls.

    How to provide a setfocus to mobile textbox after clicking command button in mobile web form (using javascript or any other scripting or server side)

    Please help me regarding this.

    Thank you. 

     

     

    Monday, May 19, 2008 8:18 AM

All replies

  • User1634317999 posted

    Hello,

    you can try to use JavaScript to achieve this.

    IE of Windows Mobile 5 and later shall support the focus scripting method:

     

    textbox1.focus();
    

    Other mobile browsers may also support such a scripting method. You will have to test this method for each mobile browser.

    Monday, May 19, 2008 8:43 AM