Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Listview VB.NET指定热键或使用enter插入记录_Listview_Keyboard Shortcuts_Vb.net 2010_Enter - Fatal编程技术网

Listview VB.NET指定热键或使用enter插入记录

Listview VB.NET指定热键或使用enter插入记录,listview,keyboard-shortcuts,vb.net-2010,enter,Listview,Keyboard Shortcuts,Vb.net 2010,Enter,我想使用listview进行数据输入。我在listview中有几个下拉列表、复选框和文本框。当最终用户在网格中导航时,在任何给定时间,最终用户都希望能够单击enter或特定热键,这将触发链接按钮单击事件以插入记录。 这在VB.NETWeb应用程序中是否可能?它不是表单,也不是Windows应用程序。我想使用这个js函数 function KeysShortcut() { if (event.keyCode == 13) { document.getElementById(

我想使用listview进行数据输入。我在listview中有几个下拉列表、复选框和文本框。当最终用户在网格中导航时,在任何给定时间,最终用户都希望能够单击enter或特定热键,这将触发链接按钮单击事件以插入记录。 这在VB.NETWeb应用程序中是否可能?它不是表单,也不是Windows应用程序。我想使用这个js函数

function KeysShortcut() {
    if (event.keyCode == 13) {
        document.getElementById("ctl00_ContentMain_ lvIncExpTrans").onsubmit();

    }
}
从该链接按钮:

<asp:LinkButton ID="LbtnInsert"  TabIndex="30" runat="server"
 CssClass="highlightInsert" Width="60px" Height="50px" CommandName="Insert" Text="Insert"
 OnClick="LbtnInsert_Click" />


要触发此受子保护的子项,请
lvIncExpTrans\u items插入(发送方作为对象,e作为ListViewInsertEventArgs)
处理lvIncExpTrans.items插入

欢迎使用SO。你能给我们看一些代码或者解释一下你的尝试吗?谢谢。你好,格雷,我想使用这个脚本文档。attachEvent('onkeyup',KeyShortcut);函数keyshortcut()(发件人作为对象,e作为ListViewInsertEventArgs)处理lvIncExpTrans.ItemInsertingI不知道您是否可以阅读(我的帖子)。我正在尝试使用JS,在按enter键时触发一个子例程。现在,LBTNInsert\u单击不起任何作用。我尝试调用子例程从该子例程(LBTN\u Insert)进行插入