俺"篡改"他的program and use my own data input, for reviewing/training purpose. The following code is one of my page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page3.aspx.cs" Inherits="Page3" %>
Stock Charts
< type="text/java">
function HandleKey()
{
if(window.event.keyCode==37)//when we click the left key in the small keyboard.
{
__doPostBack('<%=btnPre.ClientID %>','');
}
if(window.event.keyCode==39)//when we click the right key in the small keyboard.
{
__doPostBack('<%=btnNext.ClientID %>','');
}
if(window.event.keyCode==52)//when we click the left key in the small keyboard.
{
__doPostBack('<%=btnLeft.ClientID %>','');
}
if(window.event.keyCode==54)//when we click the right key in the small keyboard.
{
__doPostBack('<%=btnRight.ClientID %>','');
}
}
>
Hope this help...