L
Lucas Tam
Hi all,
I am dynamically loading user controls after a postback. Within the User
Control, how do I check if it is being loaded for the first time?
With a regular ASPX page I can check If Not Page.IsPostback, however, since
these controls are loaded AFTER postback, this won't work.
I tried using Viewstate, but since I'm swapping multiple controls, I'll
need to manage the Viewstate variable... and that makes it troublesome.
Is there any property to check to see if a User Control is being loaded for
the first time?
Thanks!
I am dynamically loading user controls after a postback. Within the User
Control, how do I check if it is being loaded for the first time?
With a regular ASPX page I can check If Not Page.IsPostback, however, since
these controls are loaded AFTER postback, this won't work.
I tried using Viewstate, but since I'm swapping multiple controls, I'll
need to manage the Viewstate variable... and that makes it troublesome.
Is there any property to check to see if a User Control is being loaded for
the first time?
Thanks!