|
-
October 21st, 2009, 08:33 PM
#1
Child control properties
Hi. Does anyone knows if there's a way of adding the properties of a control to its parent? Without having to rewrite all the properties...
For example, if I have an user control with a button inside, and I want to have the "text align" property of the button, in the list of properties of the usercontrol. Is that possible?
If not, is there a way of making the child control of an usercontrol editable?
Thanks!
-
October 22nd, 2009, 01:30 AM
#2
Re: Child control properties
Only way I know off is to either expose the property yourself (which I guess is what you mean with "rewriting it") or expose/access the child control directly using FindControl and make a property to expose the button, or similar things like that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|