在我的网页中使用Tabcontainer之类的Ajax控件时出现问题 [英] I got a problem while using ajax controls like tabcontainer in my webpage

查看:86
本文介绍了在我的网页中使用Tabcontainer之类的Ajax控件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..

我在开发Web应用程序时遇到问题....我的问题是,在我的项目中,我有两个网页...第一页包含显示,创建的按钮,第二页包含具有两个两个标签面板的标签容器,即tabpanel1和tabpanel2我的要求是,每当我单击显示按钮时,第一页应重定向到第二页tabpanel1 ...,然后单击create按钮将其重定向到第二页tabpanel2,这是我的要求,任何人都可以为此提供帮助. ..



提前致谢
Mishrutha

Hai Everyone..

I got a problem in developing my web application....my problem is,in my project i have two web pages...the page one contains the buttons display, create and the page two contains tab container with two two tab panels i.e tabpanel1 and tabpanel2 my requirement is whenever I click on display button the page one should be redirected to page two tabpanel1...and by clicking on create button it should be redirected to page two tabpanel2 that is my requirement can anyone help for this....



Thank''s in Advance
Mishrutha

推荐答案

在Page1中,应该使用类似
的代码将变量发送到page2.
In Page1 You Should send the variables to page2,by using the code like

in button1: response.redirect("page2.aspx?value=1");

in button2:response.redirect("page2.aspx?value=2");

in page2 u should take the value in page load

int i=convert.int16(request["value"].tostring());

if(i==1)
{

tabcontainer1.activetabindex=0;
}
else if(i==2)
{

tabcontainer1.activetabindex=1;

}


这篇关于在我的网页中使用Tabcontainer之类的Ajax控件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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