|
hi to all
hoe can i pass an data to a user control;
ia have a user control A that this userControl have usercontrol B in self;
ant i want pass a data from outer of user control A to User control B .how can do this.
any help will be useful
thanks
|
|
|
|
|
Expose public properties in the Usercontrols such that data assignment and accessibility is easily achieveable.
Once you have the properties in place, all you would need is to get the instance of the user control and then you can get-set that property value which internally can be set for controls in the UC.
|
|
|
|
|
ok but iwant access this property in .asx file then
i have to define a protected property .and i cant access protected property outside of usercontrol by usercontrol.propertyname.
do you have idea fo this.
thanks for answer
|
|
|
|
|
mehdi.sabet wrote: i have to define a protected property .
Define public property and you will be able to access.
|
|
|
|