Friday, April 13, 2007

ASP.NET ACESS KEY PROPERTY-SHORT KEY FOR FOCUS

In the desktop windows application. You can easily create short key which moves current cursor to a particular control. Now with ASP.NET Access key property you can also create short key in
web application.

For example you have a text box called txtName write name of the candidate. So go the property window by pressing f4. And goto access key property and write N . That's it you have created a short cut key for the that text box.

Compile the source and code and view the page in a browser. Now you can set focus on txtname text box via pressing ALT+N.

Happy Programming....




Share:

1 comment:

  1. hi
    I want to use Page Down or "Ctrl + Insert" control for a button in a web application ( C# ) but i don't how to use shotcut key?
    can you help me?
    thanks.

    ReplyDelete

Your feedback is very important to me. Please provide your feedback via putting comments.

Search This Blog
About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 10+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews