I use C# and Visual Studio.NET 2005 Beta to develop a WinForm UserControl and host it in ASP.NET 2.0. I want to send a string via the user control's properity by using <param name="WebSitePath" value="strWebSitePath" /> in object tag. But it doesn't work. Please tell me how to solve the problem. Thanks!
charlieucla
hi again !
I am back after a short break!!!
I have seen your's problem. So the solution i am discussing you i have tested in VB.NET 2003 but i think it will work in VS.NET 2005 also
So here it is: I am giving you the vb.net Code Translate it to c# yourself
In you Windows Form UserControl Class Create one Public Property called
Public Class MyUserControl Inherits System.Windows.Forms.UserControl
Public Property getString ( ByVal str As String ) As String Get return str End Get Set ( ByVal value As String ) str = value End Set End Property