List Info

Thread: Bind expression syntax




Bind expression syntax
user name
2006-05-16 05:06:40
> 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 DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Bind expression syntax
user name
2006-05-16 05:40:06
BTW, this is the link to the Ladybug report:

http://lab.msdn.microsoft.com/produc
tfeedback/viewfeedback.aspx?feedbackid=a
2578f7d-612b-491b-9688-c5f8e595a85a

-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Marc Brooks
Sent: Tuesday, May 16, 2006 1:07 AM
To: DOTNET-WEBDISCUSS.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

Bind expression syntax
user name
2006-05-16 05:37:02
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
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Marc Brooks
Sent: Tuesday, May 16, 2006 1:07 AM
To: DOTNET-WEBDISCUSS.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

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )