J
jm
I have a dropdownlist.
In my page_load I have:
myvariable as integer
myvariable = myddl.selectedvalue
I get "Input string was not in a correct format."
The I know my data and it is supposed to be a number. In reality,
however, because this is a fresh load (not a postback), the value is
empty for the selectedvalue and it is causing the error. I have to
have this load in the nonpostback. Since the value of the
dropdownlist is empty, nothing, or null, how do I test for this? I
cannot find it. Thank you.
In my page_load I have:
myvariable as integer
myvariable = myddl.selectedvalue
I get "Input string was not in a correct format."
The I know my data and it is supposed to be a number. In reality,
however, because this is a fresh load (not a postback), the value is
empty for the selectedvalue and it is causing the error. I have to
have this load in the nonpostback. Since the value of the
dropdownlist is empty, nothing, or null, how do I test for this? I
cannot find it. Thank you.