Event when Design-Time Properties have been set

A

Alex Maghen

Is there an event I can catch for when ALL of the design-time properties that
have been set in the parent page of my control have been called but before
anything else?
 
S

Steven Cheng[MSFT]

Hello Alex,

Thank you for posting.

Regarding on this issue, I've also found your another similiar thread in
this newsgroup:

Subject: "Design-Time UserControl Property Setting"

I've posted some suggestion in that thread. As for the ascx usercontrol's
custom properties, if you're add them statically into aspx page at
design-time , those custom properties are persisted in the aspx template
(as inline attributes). At runtime, when the page parsing the usercontrol,
it will restore the custom properties' value from aspx template
(attributes) and assigned the value into the usercontrol instance's
properties. This happens before usercontrol's Init and Load event. As I've
posted in that thread, my suggestion is to hold the properties' value in
usercontrol class's private fields and access them later in other
events(such as Init or Load ....)

If you still have anything unclear or any other questions on this, please
feel free to let me know.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,037
Latest member
MozzGuardBugs

Latest Threads

Top