Groups | Blog | Home
all groups > asp.net mobile > july 2003 >

asp.net mobile : Accesskey attribute


Erik van Berkel
7/10/2003 11:19:31 PM
How can I define an accesskey attribute to define a shortcut for my link
control?

Thanx,

Erik

sachingo NO[at]SPAM online.microsoft.com
7/15/2003 4:46:04 PM
Hi Erik,
The Mobile link controls do not have the AccessKey property. However you could get around that by using an ASP.NET webform HyperLink control in a content
template, as follows:

<mobile:Form id="Form1" runat="server">
<mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="isHTML32" Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ContentTemplate>
<asp:HyperLink id="HyperLink1" runat="server" NavigateUrl="http://www.msn.com">HyperLink</asp:HyperLink>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>

Another thing to consider is that your targeted device may not support the accesskey attribute.

Hope this helps.

Thanks.

Sincerely,

Sachin Goregaoker
Microsoft Developer Support

This posting is provided "AS IS" with no warranties,
and confers no rights.
--------------------
|
| How can I define an accesskey attribute to define a shortcut for my link
| control?
|
| Thanx,
|
| Erik
|
|
|

AddThis Social Bookmark Button