how to access a label form user control in Parent class ?
Posted
by haansi
on Stack Overflow
See other posts from Stack Overflow
or by haansi
Published on 2010-05-24T12:07:31Z
Indexed on
2010/05/24
12:11 UTC
Read the original article
Hit count: 218
I have a class UserControlBase that inherits System.Web.UI.UserControl and my user controls inherit UserControlBase class. UserControlBase has some common functions that are used in all user controls.
I want to put error display funtion to UserControlBase as well so that I may not have to declare and manage it in all user controls. Error will be displayed in some label in usercontrol. Issue is how to access label which is in usercontrol in UserControlBase in function ? I dont want to pass label as argument. Please guide me on this issue.
thanks
© Stack Overflow or respective owner