<asp:textbox runat="server" text=<%# person.Name %> />
Look here for details:
http://msdn2.microsoft.com/en-us/library/bda9bbfx(VS.71).aspx
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<(E-Mail Removed)> wrote in message
news:bb1279be-a07e-45b9-8f71-(E-Mail Removed)...
>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