如何在asp.net中更改活动选项卡索引 [英] How to change active tab Index In asp.net

查看:62
本文介绍了如何在asp.net中更改活动选项卡索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网页中使用了ajax Tab Panel。

它有一个母版页。我已经使用了tabconatainer的activetabIndex属性,但它没有激活提到的标签。

但它没有激活下一个标签。

所以如何导航到我的标签中的标签单击按钮上的面板?

I''m using ajax Tab Panel in my web page.
It has a masterpage. i have used activetabIndex property of tabconatainer but it is not activating the mentioned tab.
but its not activating the next tab .
so how could i navigate to tabs in my tab panel on button click ?

推荐答案

我想说,这是一个错误的想法。这超出了Web应用程序的内容,即使应用程序创建了一个新的浏览器窗口。



标签或单独窗口的整个概念是一个概念特别浏览器。特别是,当用户点击锚点时,这是决定是否应该在同一窗口中加载新页面,创建新窗口或新选项卡的用户。它还取决于当前有效的浏览器选项集。



Web应用程序无法控制它。即使用JavaScript创建了新窗口( http://www.w3schools.com/jsref/obj_window.asp [ ^ ],http://www.w3schools.com/jsref/met_win_open.asp [ ^ ]),浏览器决定它是否应该是一个单独的顶级窗口或标签页,具体取决于参数,浏览器'的设计(有些根本没有标签)和选项。



-SA
I would say, this is a wrong idea. This is beyond the content of the Web application, even if the application creates a new browser window.

The whole concept of a tabbed or separate window is the concept of a particular browser. In particular, when an anchor is clicked by the user, this is the user who decides if it should load a new page in the same window, create a new window or a new tab. It can also depends on the currently effective set of browser''s options.

A Web application has no control over it. Even if new window is created by JavaScript (http://www.w3schools.com/jsref/obj_window.asp[^], http://www.w3schools.com/jsref/met_win_open.asp[^]), a browser "decide" if it should be a separate top-level window or a tab page, depending on parameters, browser''s design (some don''t have tabs at all) and options.

—SA


这篇关于如何在asp.net中更改活动选项卡索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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