how do you handle null integer values from an objectdatasource.
i'm trying to assign the value of a dropdownlist, when its null, i'm happy to just pass by the statement, but nothing i'm trying works.
If Not dr.Userid Is DBNull.Value Then ddlUser.Text = dr.Userid
but i keep getting an error that null cannot be casted. what is the proper way to do this?