HighTechTalks DotNet Forums  

problem with Tabstrip.

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss problem with Tabstrip. in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
DotNetJunkies User
 
Posts: n/a

Default problem with Tabstrip. - 09-28-2004 , 03:15 PM






Hi,

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.
tabstrip1.Items.Add(t)
Next

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
Response.Write(tabstrip1.Page.ID()) <--blank
End Sub

Can anyone tell me why ? All I want is to get the page ID for every tab in the tabstrip.

Thanks.


---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: problem with Tabstrip. - 09-30-2004 , 04: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).

Francis Ingels
SDET Developer Division Sustained Engineering

--------------------
Quote:
From: DotNetJunkies User <User@-NOSPAM-DotNetJunkies.com
Organization: http://www.wimdows.net/newsgroups/
X-Newsreader: Wimdows.net NntpNews
Subject: problem with Tabstrip.
Message-ID: <ufKeYfZpEHA.4008 (AT) TK2MSFTNGP14 (DOT) phx.gbl
Newsgroups: microsoft.public.dotnet.academic
Date: Tue, 28 Sep 2004 13:15:04 -0700
NNTP-Posting-Host: www.interadahosting.com 64.85.9.61
Lines: 1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP14.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.academic:7902
X-Tomcat-NG: microsoft.public.dotnet.academic

Hi,

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.
tabstrip1.Items.Add(t)
Next

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
Response.Write(tabstrip1.Page.ID()) <--blank
End Sub

Can anyone tell me why ? All I want is to get the page ID for every tab in
the tabstrip.

Thanks.


---
Posted using Wimdows.net NntpNews Component -
Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine
supports Post Alerts, Ratings, and Searching.
Quote:


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.