|
ASP.NET Book
The online ASP.NET Tutorial Book |
|||||||||
|
|
|||||||||
ASP.NET BasicsHTML BasicsASP.NET Web Server Advanced HTML Application Designing Using Visual Studio ASP.NET Standards ASP.NET Styling ASP.NET Navigation ASP.NET TipsASP.NET ValidationHTML forms CSS Styling CSS Advanced ASP.NET Features ASP.NET Image Effects Common mistakes DB Design tips Building ApplicationsDesign Secure AppsBuild Secure Apps |
5.3 Default Focus and Default Buttons |
||||||||
|
Professional web developers follow a standard by setting a focus on startup so the user is focused to a position of the web page you want the user to be on. This logical starting point can be used for instance, when entering data in a web page in a Form. Note:
When using ASP.NET for web development, it makes it easier for creating sites which require data entry. ASP.NET forms let you set a default control and the following ASP.NET tutorial shows how to do this.
Now on rutime, the cursor automatically jumps to the text box named “txtFName” after the default control is set. <form id="form1" runat="server" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'Button1')"> Table of ContentsChapter 1 - HTML Web Standards [top] |
|||||||||