Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

accesskey property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BobLaughland - 13 Aug 2007 02:10 GMT
Hi There,

I have a website which uses access keys. I can press alt+1, alt+2,
etc, and it hilights controls on the page.

My question is why do some controls need enter pressed after the
access key combination is pressed?

I have a bunch of '<a href/>' controls which require enter being
pressed after the access key combination is pressed to activate the
control (these are links to other pages).

I also have an '<asp:ImageButton/>' control, which doesn't require
enter to be pressed after the access key combination is pressed.

It seems that the html controls are behaving one way, and the ASP .NET
controls behaving the other way. They are both using the same
'accesskey' atribute.

By changing the minimum amount of stuff how can I make them all
consistant?

Thanks.
BobLaughland - 20 Aug 2007 22:14 GMT
> Hi There,
>
[quoted text clipped - 19 lines]
>
> Thanks.

Any ideas on this one? I read the microsoft documentation, and it says
that when an access key is pressed each type of control has the option
of performing an action (this is defined by the control, not the
user). It seems that this is the problem in this case. The ImageButton
is performing the click action when the access key is pressed.

One of the examples they gave was when an option group has an access
key associated with one of the items. When the access key(s) is/are
pressed there is the potential for the option group selection to
change.

Is it possible to disable this functionality, the control performing a
predefined action?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.