sending value between user controls

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Hey
asp.net 2.0

I wonder what C# code I need to send a value from one user control to
another user control on the same webpage? Maybe some of you have a link to a
great example covering this topic?

Jeff
 
Hi,
Hey
asp.net 2.0

I wonder what C# code I need to send a value from one user control to
another user control on the same webpage? Maybe some of you have a link to a
great example covering this topic?

Jeff

On the server, a user control is just a class. If you want to have an
instance of a class calling an instance of another class, you must
locate a reference to this instance (for example using the Page, or a
static method of the class itself), and then you can call methods of
this instance, depending on their visibility of course.

Is that what you're looking for?

HTH,
Laurent
 
Back
Top