User Controls - help

  • Thread starter Thread starter Timothy V
  • Start date Start date
T

Timothy V

Hi,
I was wondering if there is a way to pass parameters to a User Control
within asp.net.

Thank you,

Timothy.
 
One way is to simply make a public property on your User Control.

Something like this:
Public Property SomeProperty as String
Get
Return m_var
End Get
Set
m_var=value
End Set
End Property

Then from your page you can use code like this:
MyUserControl.SomeProperty="whatever"
 
Back
Top