Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Make A Tabbed WebForm
Message
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00680496
Message ID:
00681193
Views:
22
You wire this up differently then other controls. In the HTML for the control you are using, you would enter:
onselectedindexchange = "tab_Click"
Then remove the Handles clause for the tab_Click method.

>Thanks Cathi
>
>Do you know how to I can capture what tab they selected, I tried putting the following code, but it is not capturing the "click" event. I have the autopostback set to true, and the page flashes. I'm just not getting it "WiredUp" correctly.
>
>
>   Private Sub tab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabStrip1.SelectedIndexChange
>        Label1.Text = TabStrip1.SelectedIndex
>        Select Case TabStrip1.SelectedIndex
>            Case 0
>                Server.Transfer("SurgeonMenu.aspx")
>            Case 1
>                Server.Transfer("YTD_Activity.aspx")
>            Case 2
>                Server.Transfer("DeptGrid.aspx")
>            Case 3
>                Server.Transfer("Schedule.aspx")
>            Case 4
>                Server.Transfer("docLogin.aspx")
>        End Select
>    End Sub
>
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform