Yes, this is very simple. In the Page Load routine (in VB this is Private Sub Page_Load) do somthing like this: Tabstrip.SelectedIndex = TabIndex (TabIndex is of course an integer)
OK, works but makes the code difficult to read if you see: MyTabStrib.SelectedIndex = 4; Also if there will be changes in the future (new tab or hiding/showing tabs dynamically) the resulting code will be difficult to maintain.
xtreme
Member
50 Points
10 Posts
How to Pre-select a tab in Microsoft.Web.UI.WebControls tabstrip
Oct 27, 2005 06:19 AM|LINK
Marnee
Member
368 Points
76 Posts
Re: How to Pre-select a tab in Microsoft.Web.UI.WebControls tabstrip
Nov 03, 2005 06:41 PM|LINK
xtreme
Member
50 Points
10 Posts
Re: How to Pre-select a tab in Microsoft.Web.UI.WebControls tabstrip
Nov 05, 2005 01:38 AM|LINK
kuruption208...
Member
225 Points
45 Posts
Re: How to Pre-select a tab in Microsoft.Web.UI.WebControls tabstrip
Nov 22, 2005 07:10 PM|LINK
<script language=jscript> function changeTab() { } </script> <script language=jscript>
function changeTab() {
<!--
var tabStrip = document.Form1.elements['ucActForm1:tabProducts'];
var selIndex = tabStrip.SelectedIndex;
if (selIndex == 0)
{
tabStrip.SelectedIndex(1);
}
-->
}
</script>
hfrmobile
Member
17 Points
12 Posts
Re: How to Pre-select a tab in Microsoft.Web.UI.WebControls tabstrip
Oct 06, 2009 09:51 AM|LINK
OK, works but makes the code difficult to read if you see: MyTabStrib.SelectedIndex = 4; Also if there will be changes in the future (new tab or hiding/showing tabs dynamically) the resulting code will be difficult to maintain.