RE: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-28 Thread Ian Thomas
Something I stumbled upon which is tangentially related, is the Evolutility project http://www.evolutility.org/ . May be worth a look . basically, the old data driven idea applied to databases with ASP.NET page rendering. _ Ian Thomas Victoria Park, Western Australia

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread Winston Pang
Sorry, I think I didn't make it clear, the person who asked me us to do this was a Senior Developer on their team. They too could be lurking these mailing list, which would be cool if they replied too! :D So it's not so much about educating them... I'm sure they are Senior enough to know the

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread Stephen Price
So often those things are black and white. They can be done one way, and the other way can be argued wrong. But then on the other hand there are reasons why the other way can be right. When I come across people who believe in the inverse of myself it's usually in the middle of something that

RE: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread David Kean
Subject: Re: ASP.NET Control databinding, member properties, dynamically fetch property name? Thank you. What is the name of concept we are dealing with here, Lambda and Property Binding ? On 27 May 2010 06:23, David Kean david.k...@microsoft.com wrote: Here's an example:    class Property

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread Winston Pang
. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Arjang Assadi Sent: Wednesday, May 26, 2010 2:37 PM To: ozDotNet Subject: Re: ASP.NET Control databinding, member properties, dynamically fetch property name? Thank you. What

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread silky
On Thu, May 27, 2010 at 1:51 AM, David Kean david.k...@microsoft.com wrote: I’m really interesting in hearing why people think this is a bad idea. I’ve done this in a few code bases (not ASP.NET, but WinForms) and it nothing but pure goodness from my perspective. Why do you do it? Is it only

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread Winston Pang
Not quite related. It's basically just Lambda Expressions, google that. On Thu, May 27, 2010 at 10:03 AM, Arjang Assadi arjang.ass...@gmail.comwrote: it seems this is called lambda dependency and lambda binding I found this :

RE: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread David Kean
? -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of silky Sent: Wednesday, May 26, 2010 4:59 PM To: ozDotNet Subject: Re: ASP.NET Control databinding, member properties, dynamically fetch property name? On Thu, May 27, 2010 at 1:51 AM

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread silky
On Thu, May 27, 2010 at 10:15 AM, David Kean david.k...@microsoft.com wrote: It's not for variable names, it's for properties and methods. I have to refactor code all the time - I'm not smart enough to get it right the first time. I don't understand this. Why make it like some sort of joke

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread Arjang Assadi
Silky it is not a joke. What Dean is saying and I also agree with is this: We the programmers need to palm off as much as possible to tools we use. I am not smart enough to remember all the strings in my code either, that is why I am stuck with type safety and compiler to help me out. There

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread silky
On Thu, May 27, 2010 at 10:33 AM, Arjang Assadi arjang.ass...@gmail.com wrote: Silky it is not a joke. What Dean is saying and I also agree with is this: We the programmers need to palm off as much as possible to tools we use. I am not smart enough to remember all the strings in my code

RE: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-26 Thread David Kean
, member properties, dynamically fetch property name? On Thu, May 27, 2010 at 10:15 AM, David Kean david.k...@microsoft.com wrote: It's not for variable names, it's for properties and methods. I have to refactor code all the time - I'm not smart enough to get it right the first time. I don't

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-25 Thread Bec Carter
not answering your questions directly but another option is to define the datasource in the markup and link it to the combobox which lets you change the property names without needing to regenerate the assembly. On Wed, May 26, 2010 at 8:35 AM, Winston Pang winstonp...@gmail.com wrote: Hi guys,

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-25 Thread Winston Pang
Their issue is refactoring, when changing the type names, string's won't be part of refactoring. I have put them in the markup whenever possible, however there are instances, where I have to do it int he code behind, as the third party control, requires me to hook into an event to retrieve this

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-25 Thread silky
On Wed, May 26, 2010 at 8:35 AM, Winston Pang winstonp...@gmail.com wrote: Hi guys, This is more of a question of whether or not this sounds feasible and has anyone seen anyone do this: Typically with most ASP.NET controls, lets take the ComboBox for an example, it'll be like

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-25 Thread mike smith
On 26 May 2010 08:35, Winston Pang winstonp...@gmail.com wrote: Hi guys, This is more of a question of whether or not this sounds feasible and has anyone seen anyone do this: Typically with most ASP.NET controls, lets take the ComboBox for an example, it'll be like

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-25 Thread Winston Pang
Well, firstly. The client is govt, and we're really dealing with their internal IT team, who would eventually do supporting for the system. I have no say in whether we do it or not, I've told them, it's redundant, and uncommon, and a bit too much. I've done all I can, can't fight anymore about

Re: ASP.NET Control databinding, member properties, dynamically fetch property name?

2010-05-25 Thread Arjang Assadi
Or Just an opportunity to do something different, that is what they want that is what we will give them, or even better ask them why? where did they get the idea to have it like that from and understand their real concerns that has facilitated the odd requirements, maybe there is method to their