W
William
I have 2 user controls and I would like to display 1 of them depending on a
session variable. I have trie a place holder, but it doesnt seem to work.
ie..
Select Case Session("Variable")
Case "1"
PlaceHolder1.Controls.Add(New MyControl1)
Case "2"
PlaceHolder1.Controls.Add(New MyControl2)
End Select
this code does not seem to do anything. How can I acheive this behavior?
session variable. I have trie a place holder, but it doesnt seem to work.
ie..
Select Case Session("Variable")
Case "1"
PlaceHolder1.Controls.Add(New MyControl1)
Case "2"
PlaceHolder1.Controls.Add(New MyControl2)
End Select
this code does not seem to do anything. How can I acheive this behavior?