Asp.Net & CslaDataSource e.Values is emptyAsp.Net & CslaDataSource e.Values is empty
Old forum URL: forums.lhotka.net/forums/t/6250.aspx
ajj3085 posted on Sunday, January 25, 2009
Hi,
I'm doing an Asp.Net 3.5 application, using Csla 3.6.0. I have a page which contains a FormView, which is always in Edit mode. I have a LinkButton which has it's CommandName set to Update.
The problem I'm having is that when the CslaDataSource_UpdateObject is fired, the parameter e.Values never contains any values, so the object never gets the newest values.
Any ideas?
ajj3085 replied on Sunday, January 25, 2009
Found the answer.... use Bind, not Eval on the aspx page when setting the text property of the TextBox. Argh.
rfcdejong replied on Sunday, January 25, 2009
Generating more post points hehe ;)
I know about using Eval in an aspx page, never knew about Bind. Is Bind a new thing since .net 3.0 or something?tmg4340 replied on Sunday, January 25, 2009
Bind is new to .NET 2.0 - so it's not really all that new.
Instead of changing how Eval worked, MS chose to use a new command when they implemented two-way data binding in ASP.NET. Thus came Bind.
HTH
- Scott
Copyright (c) Marimer LLC