Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it a first Load for the UserControl?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01335717
Message ID:
01335866
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I'm adding an attribute to a control in a UserControl. I suspect I don't have to do this every time. But how can I find out if my UserControl loads the first time or not?
>
>Thanks in advance.

Check Page.IsPostBack, if it's true, you may not need to reload it. Controls do load everytime, but there is a lot of code in the background which makes it appear as though they are maintaining state.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform