Thanks for the insite. I wonder how that will affect the
behavior of Bind.
It's for updating the DB also. My types are all templated
using Wilson OR
Mapper and Conessto templates. They make two partial
classes. One for
editing. I guess that is what I'll do.
-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of Marc Brooks
Sent: Tuesday, May 16, 2006 1:07 AM
To: DOTNET-WEB DISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WEB] Bind expression syntax
> The old Eval binding method allowed you to specify a
child object
> property, such as:
>
> <%#
Eval("EmployeeStatusObject.Description") %>
>
> How do you accomplish this with the new Bind method?
It errors out on
> the use of the child object property.
It's broken. You can vote on the Ladybug report if you
want it fixed.
My only workaround is to expose
"trickle-through" properties on the outer
object... like
Client.Address.Line1 is exposed as Client.AddressLine1 (and
it merely does
this.Address.Line1 internally).
--
"Remember when you are juggling all those balls that
some of them are glass
balls, some of them are rubber balls. Don't drop the glass
ones." - Nora
Roberts
Marc C. Brooks
http://musingmarc.blog
spot.com
===================================
This list is hosted by DevelopMentorR http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|