Re: How to bind a class property to a textbox
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Wed, 27 Feb 2008 12:19:01 +0200
<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
<cbtechlists@xxxxxxxxx> wrote in message
news:bb1279be-a07e-45b9-8f71-285fbca80a5a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
.
- Follow-Ups:
- Re: How to bind a class property to a textbox
- From: cbtechlists
- Re: How to bind a class property to a textbox
- References:
- How to bind a class property to a textbox
- From: cbtechlists
- How to bind a class property to a textbox
- Prev by Date: Re: dotnet 1.1 Placeholder and css
- Next by Date: RE: LINQ Join Error
- Previous by thread: How to bind a class property to a textbox
- Next by thread: Re: How to bind a class property to a textbox
- Index(es):
Relevant Pages
|