This is a migrated thread and some comments may be shown as answers.

Default Selected Value

1 Answer 35 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Tiago
Top achievements
Rank 1
Tiago asked on 28 Jul 2011, 02:46 PM
Hello,

is it possible to change the value returned by the SelectedValue when there is nothing selected?
I need this because it returns 0, and that unfortunatelly is a valid id in the database, and when there is nothing selected it shouldn't retrieve anything from the database, and it is retrieving, and that's just weird.

Thanks!
Tiago Ribeiro

1 Answer, 1 is accepted

Sort by
0
Tiago
Top achievements
Rank 1
answered on 28 Jul 2011, 04:03 PM
I've solved this with the DefaultValue of the ObjectDataSource.
Tags
ListBox
Asked by
Tiago
Top achievements
Rank 1
Answers by
Tiago
Top achievements
Rank 1
Share this question
or