Discussion:
Simple data binding in ASP.NET
chris Burgess
2008-02-26 15:52:18 UTC
Permalink
I have a 'Person' object with 2 properties (name, age).

I want to bind these properties to textboxes on an ASP.NET page
(NameTB, AgeTB). Is there a way to do this that is similar to the
simple data binding methods used in a Winform (using the Binding
object)?

So far, I've only been able to setup INotifyPropertyChanged, and
handle this through event calls.

Thanks!

Chris

===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Patrick Steele
2008-02-26 17:01:33 UTC
Permalink
Google for "asp.net databinding". Tons of hits (I think the 2nd one is
Microsoft's documentation).

---
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele


-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:DOTNET-***@DISCUSS.DEVELOP.COM] On Behalf Of chris Burgess
Sent: Tuesday, February 26, 2008 10:52 AM
To: DOTNET-***@DISCUSS.DEVELOP.COM
Subject: [DOTNET-WEB] Simple data binding in ASP.NET

I have a 'Person' object with 2 properties (name, age).

I want to bind these properties to textboxes on an ASP.NET page
(NameTB, AgeTB). Is there a way to do this that is similar to the
simple data binding methods used in a Winform (using the Binding
object)?

So far, I've only been able to setup INotifyPropertyChanged, and
handle this through event calls.

Thanks!

Chris

===================================
This list is hosted by DevelopMentor� http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Continue reading on narkive:
Loading...