箭头树状asp.net键导航 [英] Arrow key navigation in treeview asp.net

查看:140
本文介绍了箭头树状asp.net键导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net TreeView控件。我需要通过它的节点进行导航,使用向上和向下箭头键。我找不到相同的任何财产。此外,对于没有树状keydown事件。请帮助!

I have a treeview control in asp.net. I need to navigate through its nodes, using the up and down arrow keys. I cannot find any property for the same. Also, there is no keydown event for treeview. Please help!

推荐答案

asp.net是一个服务器端的技术。 KEYDOWN事件发生的客户端。你不希望每个用户presses一个关键的时间发布到服务器,所以你应该使用一些客户端的技术,例如JavaScript(普通纸或使用jQuery库)来处理浏览器的keydown事件。看看这个 jQuery的例子

asp.net is a server-side technology. Keydown events happen client-side. You don't want to post to the server every time the user presses a key, so you should use some client-side technology such as javascript (plain or using the jQuery library) to handle the browser's keydown event. Take a look at this jQuery example.

这篇关于箭头树状asp.net键导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆