P
Piotrek \Alchemik\
Hello,
i have small problem - i have dropdownlist, which is populated from
database by stored procedure. I had autopostback attached to this list.
I'm using this as a parameter to another stored procedure. So, when i
was using asp:SqlDataSource and bind to him values from this
dropdownlist everything was ok. But when i'm doing this in code behind
using SqlCommand and trying to get value from this dropdownlist
sensor = Int32.Parse(DropDownList1.nSelectedValue) ;
I got error. I can't find anything usefull for this kind of behaviour.
I hope somebody can help me
Piotrek
i have small problem - i have dropdownlist, which is populated from
database by stored procedure. I had autopostback attached to this list.
I'm using this as a parameter to another stored procedure. So, when i
was using asp:SqlDataSource and bind to him values from this
dropdownlist everything was ok. But when i'm doing this in code behind
using SqlCommand and trying to get value from this dropdownlist
sensor = Int32.Parse(DropDownList1.nSelectedValue) ;
I got error. I can't find anything usefull for this kind of behaviour.
I hope somebody can help me
Piotrek