I have a person class that has a 'name' property. I want to bind that
property to a textbox on an ASP.NET form.
In a winform, I can do something like this:
dim nameBinding as binding = new binding("text", me.person, "name",
true)
me.nameTB.databindings.add(nameBinding)
Is there an equivalent in ASP.NET?
Thanks,
Chris
<asp:textbox runat="server" text=<%# person.Name %> />
Look here for details:
http://msdn2.microsoft.com/en-us/library/bda9bbfx(VS.71).aspx

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
>I have a person class that has a 'name' property. I want to bind that
> property to a textbox on an ASP.NET form.
[quoted text clipped - 10 lines]
>
> Chris
cbtechlists@gmail.com - 27 Feb 2008 12:41 GMT
Thanks, Eliyahu! Is there any way to do this in the code behind?
On Feb 27, 5:19 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.org> wrote:
> <asp:textbox runat="server" text=<%# person.Name %> />
>
[quoted text clipped - 25 lines]
>
> - Show quoted text -