problem with Tabstrip. - 09-28-2004 , 04:15 PM
I have succeed added my tabstrip with the codes below :
For Each DR In DS.Tables("Webform").Rows
Dim t As New Tab
x = x + 1
t.Text = (DR.Item("FormName"))
t.ID = "Tab" + x.ToString() <--------- I'm assigning ID for every page.
However, when i try retrieve the page ID, nothing.
Private Sub tabstrip1_SelectedIndexChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tabstrip1.SelectedIndexChange
Can anyone tell me why ? All I want is to get the page ID for every tab in the tabstrip.
Posted using Wimdows.net NntpNews Component -
Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
RE: problem with Tabstrip. - 09-30-2004 , 05:46 PM
Try casting the 'sender' value in your event handler to a tabstrip and
using it to get your value.
Also, keep in mind that all controls which raise events in a web page have
to be instantiated before event processing occurs (otherwise the event
won't fire correctly).
SDET Developer Division Sustained Engineering
supports Post Alerts, Ratings, and Searching.
|Thread Tools||Search this Thread|