all groups > asp.net building controls > october 2007 >
You're in the

asp.net building controls

group:

How to add Style property to User Control


How to add Style property to User Control Steve Trandahl
10/29/2007 10:17:01 AM
asp.net building controls:
I am trying to add a simple Style property to our base User Control. Even if
I add it as a simple string type, I get the error "Operation GetValue on the
component did not succeed, generating the error code 0x80020005." in the
property window for the property. It seems to be indicating a type mismatch.
If I rename the property to something else, it works fine. Since User
Controls don't have a style property to hide or override, why am I getting
Re: How to add Style property to User Control Aamir Ghanchi
11/26/2007 4:04:03 PM
I also got into the same situation. Will appreciate if anyone has the
solution.
thanks
On Oct 29, 11:17 am, Steve Trandahl
[quoted text, click to view]
RE: How to add Style property to User Control Gerry Polucci
12/1/2007 12:25:00 PM
Steve, did you ever find the solution to this problem? I am running into it
as well.

Thanks,
Gerry

[quoted text, click to view]
RE: How to add Style property to User Control Steve Trandahl
12/1/2007 4:24:00 PM
Unfortunately no. I ended up naming the property ControlStyle. It still
renders a style tag in the control, but I didn't figure out how to name the
property Style. :(

[quoted text, click to view]
AddThis Social Bookmark Button