Author: ahillyer | Posted on: 7/14/2008 7:13:21 AM | Views : 463

This is weird behavior to me that I sure wouldn't have expected to occur but maybe I don't fully understand the Session object.  Here is my code:
 
Dim p As Panel = DirectCast(Session("pnl"), Panel)
If p IsNot Nothing Then
For Each ctl As Control In p.Controls
Dim uc2a As uc3 = CType(ctl, uc3)
pnlTemp.Controls.Add(uc2a)
Next
End If If I have my debugger viewing the value of Session("pnl") --> System.Web.UI.WebControls.Panel --> Controls --> Count, it is 2 when I start this loop. However, w ...

Go to the complete details ...