• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

Tabcontainer: Tabs change when hitting a select

I have a tab container with two tab panels.  Panel 2 has a gridview that has a select button.  When I hit the select button in the grid, the TabContainer goes to the default, Panel 1 view again and I don't want it to.  How do I keep it on Panel 2 when the button is hit?
0
jglazer63
Asked:
jglazer63
  • 3
  • 2
1 Solution
 
abelCommented:
Sounds to me that the select button (you mean a select list?) has a AutoPostBack = true. Or it is in an UpdatePanel object with similar settings. Change that to false and you should be fine.
0
 
jglazer63Author Commented:
Well the select button is on a bunch of gridview rows (autogenerateselect).  Where would I set postback??
0
 
abelCommented:
There are many ways to create or set AutoPostBack. you can even do it through javascript. But I'm not even sure that's the reason why your tab is switching back. Can you check whether there's a new page cycle when you click something in your select box?
0
 
jglazer63Author Commented:
Yes there is
0
 
abelCommented:
Can you then please post the code part, including the whole updatepanel (if any) and/or the whole tabcontrol?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now