Last post Feb 25, 2011 05:01 AM by Yisman
Feb 21, 2011 06:20 AM|Yisman|LINK
I have a linq2sql object named User which has 2 fields: FirstName and LastName
I want to have a "FullName" property that will allow two-way databinding
So in the User partial class I added
Property FullName As String
return lastname & ", " & firstname
set(byval value as string)
'some parsing code
Now what happens is, that if I bind a TextBox to "FullName", the property setter gets called twice, first with the correct data that the user input-ed, and then again with value=nothing!
Why is this? and how can it be fixed?
Thank you very much
Feb 25, 2011 05:01 AM|Yisman|LINK
can anyone help me out here?
id appreciate it