如何在asp.net中的tabcontainer中使用Enter键 [英] how to use enter key with tabcontainer in asp.net

查看:68
本文介绍了如何在asp.net中的tabcontainer中使用Enter键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常使用tabcontainer,它具有一个以上的选项卡面板.我使用javascript来实现,但是它只对第一个tabpanel有效,对其他人无效.请给我一些解决方案,我该如何解决这个问题.

iam using tabcontainer which has more then one tab panel. iam using javascript for that but its effecting only for first tabpanel its not effecting to others. please give me some solution how can i solve this problem.

推荐答案

如果您使用的是ajax选项卡容器,
在经过Tabtab修改的javascript中尝试一下

If you are using ajax tab container,
Try This in your tabchanged javascript

var container =


find(' TabContainer1'); // 您的Tab容器ID在此处 var activeTab = container.get_activeTabIndex(); // 之后,您可以通过使用标签容器的新活动标签来继续使用功能.
find('TabContainer1'); //your Tab container ID goes here var activeTab = container.get_activeTabIndex(); // you can continue your function after this by uing the new active tab of the tab container.

功能

如果仍然有任何问题/疑问,请回复.

function

If still you have any problem/doubt then please reply.


这篇关于如何在asp.net中的tabcontainer中使用Enter键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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