Sign in | Join
Last post 07-07-2009 6:35 AM by Bullonprowl. 4 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi,
I am new in asp.net Mobile web forms, I don't know how to focus a particular textbox while page load any one Help me.
Hello,
Try this..
document.Form1.TextBox1.focus()
Hope it helps.
Hi Ramesh,
write the code on the page load event
TextBox1.focus();
where TextBox1 is the id of the text box
Thank's for reply,
I tried this
TextBox1.focus() i got the following error.
A form tag with runat=server must exist on the Page to use SetFocus() or the Focus property.
I asked in Mobile Web form Textbox.
hi rameshduraikannu,
Setfocus() or Focus() is not supported in Mobile Web Forms. It cannot be used in Mobile Web Forms. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=113661 Check out the reply given here by Microsoft.