Default Selected Value

2 posts, 0 answers
  1. Tiago
    Tiago avatar
    11 posts
    Member since:
    Jun 2011

    Posted 28 Jul 2011 Link to this post

    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
  2. Tiago
    Tiago avatar
    11 posts
    Member since:
    Jun 2011

    Posted 28 Jul 2011 Link to this post

    I've solved this with the DefaultValue of the ObjectDataSource.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top