Saturday, March 24, 2012

TabStrip in User Web Control

I am using a TabStrip control in a .ascx file so I can
create a menu navigation system for my ASP.NET
application. The menu never changes, so I have every page
in the app using the .ascx control. I have the TabStrip
set up, and it calls the pages correctly. However, I
can't figure out how to change the SelectedIndex when the
page loads.

For instance, the application loads with Tab0 as the
default. When I click on Tab1, Response.Redirect takes me
to the appropriate page, but Tab0 is still selected. I
need to be able to programatically change the
SelectedIndex as the page loads, based on what tab was
selected on the previous page. How can I do that? Thanks.

FlynnCheck out this article,
http://msdn.microsoft.com/msdnmag/i...ge/default.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Flynn Arrowstarr" <flynnarrowstarr@.nowhere.net> wrote in message
news:000601c3b43f$a9c27a60$a401280a@.phx.gbl...
> I am using a TabStrip control in a .ascx file so I can
> create a menu navigation system for my ASP.NET
> application. The menu never changes, so I have every page
> in the app using the .ascx control. I have the TabStrip
> set up, and it calls the pages correctly. However, I
> can't figure out how to change the SelectedIndex when the
> page loads.
> For instance, the application loads with Tab0 as the
> default. When I click on Tab1, Response.Redirect takes me
> to the appropriate page, but Tab0 is still selected. I
> need to be able to programatically change the
> SelectedIndex as the page loads, based on what tab was
> selected on the previous page. How can I do that? Thanks.
> Flynn

0 comments:

Post a Comment