I'm sure this is really simple and I'm missing something obvious but....
I have a tab strip which moved between pageviews when you click on a tab. Ideally when a user clicks on a tab I want to do some server side processing to populate the pages controls with values.
I naturally assumed in the Page_Load sub I could use this code:
Code: Visual Basic.NET
If Me.TabStrip1.SelectedIndex = 2 Then
Populate_Controls(...)
End If
However, the value for SelectedIndex is always -1 regardless to the tab selected, thus making it so I can't work out which tab was clicked. Could you give me some pointeres on how to run server side code as to when a tab is clicked? A different function/sub per tab would be fine.
Thanks
Ed