Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding Textbox to a Class Property
Message
From
01/06/2004 13:40:08
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00908931
Message ID:
00908968
Views:
26
Gary,

I found one way that might work...

If you declare street as an actual property in the class, it seems it will work...so...

public class Address
{
private static string _Street;
public string street
{
get {return _Street ;}
set {_Street = value; }
}
}

...and then...

this.textBox1.DataBindings.Add("Text",oAddress ,"street"); ...

That seems to work (at least it did for me)

From what I read in the help file, you can bind to an actual property of a class.

Hope that helps...
Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform