tab容器(ajax)问题 [英] tab container (ajax) problem

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

问题描述

heyy ..





我使用标签容器(ajax标签容器),我有3个标签面板..我的问题是

如果我在第二个tabpanel中输入一个文本框,然后输入,第一个选项卡面板中的按钮

正在工作....(或第一个选项卡面板中的事件是调用)...我该怎么解决这个问题...

heyy..


I use a tab container (ajax tab container)and I have 3 tab panels ..My problem is
if I enter a textbox in 2nd tabpanel and then enter,the button in the 1st tab panel
is working....(or event in 1st tab panel is call)...how can I solve this...

推荐答案

使用以下代码选择在C#中的pageLoad()函数中应该加载哪个选项卡。

Use the following code to select which tab should be loaded inside the pageLoad() function in C#.
protected void Page_Load(object sender, EventArgs e)
{
  if(firstEnterButton.clicked)
  {
    TabContainer1.ActiveTab = TabContainer1.Tabs[0];
  }
  else if(secondEnterButton.clicked)
  {
    TabContainer1.ActiveTab = TabContainer1.Tabs[1];
  }
}





使用可以使用各种选项(如Querystring)来完成这项工作。



与单击第一个Enter按钮一样,页面应使用Response.Redirect()函数重新加载,路径为yourpage.aspx?page = 1





Use can use various options such as Querystring to make this work.

Like on clicking the first Enter button, the page should be reloaded using Response.Redirect() function with the path as "yourpage.aspx?page=1"

protected void enter1_Click(object sender, EventArgs e)
{
  Response.Redirect("yourpage.aspx?page=1");
}





在PageLoad函数中,使用if条件为





and in the PageLoad function, use the if condition as

if (Page.Request.QueryString["page"] == "1")
        {
            TabContainer1.ActiveTab = TabContainer1.Tabs[0];
        }





等等..它取决于你如何使用它。



问候。

Sriram



and so on.. Its upto you how to use it.

Regards.,
Sriram


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

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