Click here to Skip to main content
15,791,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using dotnet framework 2.0 and Visual Studio 2005.
For a web application
I bound datagrid from oracle database. In datagrid I have link button and when the user clicks the link button corresponding image will be displayed in Picture box.
My requirement is
When the user presses the down button key in keyboard, the next row's image should be populated in picture box. In
OnItemCommand="grdCoverDetails_ItemCommand"

I retrieve data from Oracle DB and display it in Picture box.
Can I call that
C#
grdCoverDetails_ItemCommand 
by pressing down button key? Please suggest.
Thanks
Posted

1 solution

You can capture the down-key press event on the client side using javascript. This[^] W3Schools page has a simple example on how to do that.

Once you have captured the event, you need to call the grdCoverDetails_ItemCommand using the __doPostback function. Use this[^] CodeProject article as reference.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900