如何在Tab.net中将标签添加到网站? [英] how to add tabes to a website in asp.net.?

查看:95
本文介绍了如何在Tab.net中将标签添加到网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用asp.NET中的脚本将选项卡添加到Web应用程序中.

I want to add tab''s to a web application by using script in asp.NET. How?

推荐答案

如果要使用回发,只需添加n个RadioButtons并构建n个ASCX控件,然后将它们加载到RadioButtonClick事件中即可.
如果您想在没有回发的情况下工作,则可以使用javascript一次加载所有选项卡,然后设置可见样式或使用AJAX在以后加载控件.
有完整的解决方案,即jQuery UI或AJAX工具包.
以下是链接:
http://jqueryui.com/demos/tabs/ [ http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx [ ^ ]
If you want to work with a Postback, just add n RadioButtons and Build n ASCX Controls and load them in the RadioButtonClick event.
if you want to work without a Postback, u can use javascript to load all Tabs at once and just set the Visible Style or use AJAX to Load the Controls afterwards.
There are Complete Solution for this, i.e. the jQuery UI or the AJAX Toolkit.
Here are the Links:
http://jqueryui.com/demos/tabs/[^]
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx[^]


要满足您的要求,有两种不同的方法.

1)在ajax TabContainer中使用ajax TabPanel.有关更多详细信息,请单击下面的链接
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx [ ^ ]

2)将asp.net的Multiview控制与菜单一起使用...每当用户选择任何菜单项时就会更改Active View ...它是服务器端,因此每次选择菜单项时整个页面都会回发,因此1个更好的解决方案
To achieve your requirement there are two different approaches.

1) Use ajax TabPanel within ajax TabContainer..For more detail Click on below link
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx[^]

2) Use Multiview contol of asp.net with menu...Whenever user select any menu item chage Active View...Its a server side so each time you select menu item entire page is post back so 1 is better solution compare to this


这篇关于如何在Tab.net中将标签添加到网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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