Click here to Skip to main content
16,014,568 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question[Message Deleted] Pin
bjk8821-Oct-07 23:03
bjk8821-Oct-07 23:03 
AnswerRe: formula Pin
Colin Angus Mackay21-Oct-07 23:07
Colin Angus Mackay21-Oct-07 23:07 
JokeOh No! Pin
CPallini21-Oct-07 23:17
mveCPallini21-Oct-07 23:17 
GeneralRe: Oh No! Pin
Guffa22-Oct-07 0:09
Guffa22-Oct-07 0:09 
AnswerRe: Oh No! Pin
CPallini22-Oct-07 0:15
mveCPallini22-Oct-07 0:15 
AnswerRe: [Message Deleted] Pin
Colin Angus Mackay22-Oct-07 7:46
Colin Angus Mackay22-Oct-07 7:46 
QuestionThanks To Dave And Others who helped me Pin
VB 8.021-Oct-07 19:20
VB 8.021-Oct-07 19:20 
QuestionUser based Tabs Format..., Pin
Member 387988121-Oct-07 18:57
Member 387988121-Oct-07 18:57 
Hi the follwoing code i used for my user control tab events...,

See in that code,i have said the tabs and its subtabs and its url refer sites...,

Now my quest is...,
I like to view the tabs based on the user entry...,

It means i have 2 tables in one table i have said the userid,pagenum..,
Another table i said pagenumber,pagename & pageurl...,
Now using the following code how to display the tabs,sub tabs and its url instead of display static how to dispaly dynamic(based on userid)??????,...
Plz help me,
My static code follows here :

'Adding here main tabs
Dim _Text As ArrayList = New ArrayList
_Text.Add("Admin")
_Text.Add("Guest")

Dim ts As JQD.TabStrip = CType(Me.FindControl("TabStrip1"), JQD.TabStrip)
ts.TabText = _Text
Dim _SubTabText As Hashtable = New Hashtable

'Adding here Sub tabs for that Admin (main) tab
_Text = New ArrayList
_Text.Add("Admin User Login")
_Text.Add("Admin Default Page")
_SubTabText.Add(0, _Text)
'Adding here Sub tabs for that Guest (main) tab
_Text = New ArrayList
_Text.Add("microsoft")
_Text.Add("oracle")
_SubTabText.Add(1, _Text)

ts.SubTabTextCol = _SubTabText
AddHandler ts.SelectionChanged, AddressOf Me.ts_SelectionChanged

Private Sub ts_SelectionChanged(ByVal sender As Object, ByVal e As JQD.TabStrip.SelectionChangedEventArgs)

'Assigning links for that sub tabs
Dim TabPos As Integer = e.TabPosition
Dim SubPos As Integer = e.SubTabPosition
Select Case (TabPos)
Case 0
If (SubPos = 0) Then
src = "Admin1.aspx"
End If
If (SubPos = 1) Then
src = "Admin2.aspx"
End If

Case 1
If (SubPos = 0) Then
src = "Guest1.aspx"
End If
If (SubPos = 1) Then
src = "Guest2.aspx"
End If
End Select
Session("src") = src
End Sub


Regards,
Magi

AnswerRe: User based Tabs Format..., Pin
Tom Deketelaere21-Oct-07 22:20
professionalTom Deketelaere21-Oct-07 22:20 
GeneralRe: User based Tabs Format..., Pin
Member 387988122-Oct-07 17:40
Member 387988122-Oct-07 17:40 
GeneralRe: User based Tabs Format..., Pin
Tom Deketelaere22-Oct-07 22:24
professionalTom Deketelaere22-Oct-07 22:24 
Questionbeginner here. Pin
bjk8821-Oct-07 13:11
bjk8821-Oct-07 13:11 
AnswerRe: beginner here. Pin
Colin Angus Mackay21-Oct-07 13:23
Colin Angus Mackay21-Oct-07 13:23 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 13:28
bjk8821-Oct-07 13:28 
GeneralRe: beginner here. Pin
Colin Angus Mackay21-Oct-07 13:33
Colin Angus Mackay21-Oct-07 13:33 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 13:42
bjk8821-Oct-07 13:42 
GeneralRe: beginner here. Pin
Colin Angus Mackay21-Oct-07 13:50
Colin Angus Mackay21-Oct-07 13:50 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 13:58
bjk8821-Oct-07 13:58 
AnswerRe: beginner here. Pin
Guffa21-Oct-07 22:35
Guffa21-Oct-07 22:35 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 22:48
bjk8821-Oct-07 22:48 
GeneralRe: beginner here. Pin
Guffa21-Oct-07 23:01
Guffa21-Oct-07 23:01 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 23:12
bjk8821-Oct-07 23:12 
GeneralRe: beginner here. Pin
Guffa21-Oct-07 23:48
Guffa21-Oct-07 23:48 
GeneralRe: beginner here. Pin
bjk8822-Oct-07 0:04
bjk8822-Oct-07 0:04 
AnswerRe: beginner here. Pin
Guffa22-Oct-07 0:11
Guffa22-Oct-07 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.