AccessKey doesn't work when load pdf document on XP?

Discussion in 'ASP .Net' started by david cheng, Apr 22, 2004.

  1. david cheng

    david cheng Guest

    I am trying to load the pdf document through AccessKey. Here is the
    code

    <HTML>
    <body bottomMargin="0" bgColor="gray" leftMargin="0" topMargin="0"
    rightMargin="0">
    <form id="Form1" method="post" runat="server">
    <table height="100%" width="100%">
    <TBODY><tr>
    <td vAlign="top" width="80">
    <asp:imagebutton id="IBtn1" accessKey="1" runat="server"
    ImageUrl="images/1.gif"/><BR>
    <asp:imagebutton id="IBtn2" accessKey="2" runat="server"
    ImageUrl="images/2.gif"></asp:imagebutton></td>

    <td width="*"><iframe id="iframe1" width="100%" height="100%"
    runat="server"></iframe></td>
    </tr></TBODY></table>
    </form>
    </body>
    </HTML>

    private void IBtn1_Click(object sender,
    System.Web.UI.ImageClickEventArgs e)
    { iframe1.Attributes.Add("src", "1.pdf"); }

    private void IBtn2_Click(object sender,
    System.Web.UI.ImageClickEventArgs e)
    { iframe1.Attributes.Add("src", "2.pdf"); }

    ==========================================================
    Mouse click always works for switching pdfs. But AccessKey doesn't
    work on XP. Accesskey works on windows 2000. Any ideas? Thankx in
    advance.

    BTW, this behavior (switching documents using AccessKey) only applies
    to .pdf, .doc or other documents requiring plug-ins to open. It will
    work fine with .txt or html contents.

    David
     
    david cheng, Apr 22, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manan

    Accesskey option

    Manan, Jul 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    620
    Lewis Wang [MSFT]
    Jul 16, 2003
  2. www.MSmobiles.com
    Replies:
    1
    Views:
    1,663
    www.MSmobiles.com
    Jul 18, 2004
  3. Chintakrindi Meghanath

    PDF Library - Reading the PDF Document

    Chintakrindi Meghanath, Jan 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    221
    Hannes Wyss
    Jan 9, 2006
  4. Ricardo Pog
    Replies:
    1
    Views:
    800
    Austin Ziegler
    Mar 26, 2008
  5. Sean Nakasone
    Replies:
    1
    Views:
    676
    Farrel Lifson
    Apr 14, 2008
  6. Replies:
    0
    Views:
    286
  7. MAX
    Replies:
    7
    Views:
    394
    A. Sinan Unur
    Dec 21, 2005
  8. icogs
    Replies:
    0
    Views:
    242
    icogs
    Jan 31, 2008
Loading...