asp.net中的tab容器 [英] tab container in asp.net

查看:107
本文介绍了asp.net中的tab容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个标签容器,其中有tabpanel1,tabpanel2,tabpanel3,tabpanel4,当用户选择tabpanel4时,它应该打开tabpanel1。我在javascript代码中尝试了onClientActiveTabChanged,但它没有用。

i have one tab container in which have tabpanel1,tabpanel2,tabpanel3,tabpanel4 when user selects the tabpanel4 it should open tabpanel1 . i tried onClientActiveTabChanged in javascript code but its not working.

推荐答案

我想你想说当用户点击任何标签时它会打开第一个标签。 />
您可以检查它背后的原因是 -

-DO您在tab属性中将tabpanel1设置为活动标签?

- 当您点击时tabpanel有一个帖子后退?

-it再次初始化你的页面并将活动标签设置为tabpanel1?



如果这些是事情



在更新面板中有标签容器(用于部分回发)以避免回发。
I think that you want to say that when user clicks on any tab it opens the 1st tab.
The reason behind it which you may check is-
-DO You have set tabpanel1 as active tab in tab property?
-When you are clicking tabpanel there is a post back firing?
-it initializes your page again and sets the active tab as tabpanel1?

if these are the things

have the tab container in update panel(for partial postback) to avoid post backs.


这篇关于asp.net中的tab容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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