Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Controls When to set the value of controls
Message
De
28/07/2009 10:16:05
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Application:
Web
Divers
Thread ID:
01414924
Message ID:
01415048
Vues:
35
>>Hi Paul,
>>
>>Thanks for the heads up on the event stuff. Yes, I am reloading the control based on the data, so at every postback. There is a logical in the data that determines which control to load. I am not sure about the part you mention of reloading the original control and then the new one. If I reload the original control, I would then have to get rid of it before I load the new one; I don't want both.
>>
>>I am not sure why the PreRender didn't work then. All my basic controls; textbox and such were null when the PreRender fired.
>
>Another question: where are you loading your user control? Which event?

I am loading the user control at the end of the Page_Load via a seperate method that also gets called from the grid selected index change. The control is inside an ajax panel so only the panel gets refreshed.

The controls that are null during PreRender are only the controls in the user control itself. Maybe I should try again as I have experienced weird things before.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform