2

我正在尝试在我的客户 Web 应用程序中调用一个页面(Exact Synergy Enterprise)

这是链接:http://someserveridontdisclose/Synergy/docs/CSCANEduCourseCard.aspx?ProjectNr=ACPGINTV

在这个页面中是一个带有多个 TabPanel 的 Ajax TabContainer。其中之一被称为“Doelgroepen”

我没有这个应用程序的源代码,因为我不是它的开发者。我们只开发它的自定义扩展。

问题是:是否可以只使用 URL 来关注其中一个选项卡?如果有怎么办?

非常感谢您对此的看法。

4

3 回答 3

1

If you do not have access to the code and if this is not part of the requirement / design specification for the application you are using (ie: what you asked the developer to do), then the answer is No.

The control does not have "native" support for URL tab selection. There needs to be specific code in the application in order to handle this.

It is however very easy to implement, if you absolutely need it, it shouldn't take much time (about 15-30 lines of code, depending on how many tabs/urls combination you need).

You can find a running sample of the AjaxControlToolkit Tabs control at the following link (the available functionnalities are described in there): http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx

于 2013-10-14T09:54:26.403 回答
1

尝试用javascript设置。您必须编写自己的js才能从url获取您想要的索引号,然后像这样设置

$find('<%=TabContainer1.ClientID%>').set_activeTabIndex(2);

http://forums.asp.net/t/1127834.aspx

http://www.aspforums.net/Threads/420684/ASPNet-AJAX-TabContainer-Set-Active-Tab-Client-side-using-JavaScript/

于 2013-10-18T15:56:39.850 回答
0

如果 TAB 有 ID,您可以通过在 URL 中添加“#tabid”使其可见。

于 2013-10-20T20:07:32.570 回答