PROPERTY of a CONTROL

J

Jose Fernandez

Hello

I have a class named X (that inherits from INamingContainer y WebControl).
This class loads a userWebControl.ascx and add it to the controls in my
page. Well, this control has a Property. It looks like this

<Web:MiControl Color="red" id="ventana1" runat=server />

Color is the property that i need to capture in my Class X. I know how to
get the objects inside the ascx using the FindControl method, but i don't
have a clue at all on how to retrieve the Color Property from this ascx
(that lacks of .cs 'cause i am working with my Class X its inner controls)

Can anybody help me?
 
J

Jose Fernandez

CORRECTION
Problem solver.

i was confused. What I do is this.
<Web:X Color="red" id="ventana" runat=server />

SO, i have to add a property to my X class retrieving Color property. Then i
assing the value to the Label control inside the ascx i'm retrieving!!!
Thanks anyway.
 

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

Top