How can I send a label from a WebUserControl to another WebUserControl?

see07

Regular
Joined
Apr 16, 2004
Messages
78
Location
Mexico City
Hello everybody…

I have a web page with 2 WebUserControl embedded.

Within an event in WebUserControl1 I have this code:

((InternetV2.webControl_miembros1) this.Parent).lblUsuarioReg.Text = lblPeticiones.Text;

I’m trying to send lblPeticiones.Text from this WebUserControl to lblUsuarioReg.Text within WebUserControl named webControl_miembros1.

When I compile the project was error CS0122: ‘member’ is not accessible because its protection level.

What is wrong with this?

I’ll thank some suggestions about this.

A.L.
 
hi,

I think the problem is in your lblPeticiones.Text... you must change it to lblPeticiones.text...

hope that helps!

regards,
chris
 
Back
Top