e.values item does not change on update

e.values item does not change on update

Old forum URL: forums.lhotka.net/forums/t/3608.aspx


ballistic posted on Thursday, September 27, 2007

Have two ddl: Category and Forum

I Bind both values to their ddl: CategoryId and ForumId

If I change the value on the DDLs and use e.Values("CategoryId") and e.Values("ForumId") only the CategoryId provides me with the new selected value in the DDL. The ForumId is not updated to reflect the selected value in the ddl.

I'm not sure if i'm not binding correctly.  Any ideas?

RockfordLhotka replied on Friday, September 28, 2007

The contents of e.Values are set by data binding based on the column names you have configured in your UI control (grid, list, form). So that string value you are using in code must match the column name from the UI control or you won't get the value you are looking for.

Copyright (c) Marimer LLC