S
Siamak Zahedi
Hi,
weird problem I'm having cant seem to figure out what is going on.
I have a dropdownlist that gets populated from db and a button that causes
a post back
when I assign the value of the dropdownlist to a string var it always
returns the first item regardless of what was selected
code is simple
in the button click event
string name = ddlName.SelectedItem.ToString();
I'm learning asp.net and this is my first project so excuse the newbie
question .
weird problem I'm having cant seem to figure out what is going on.
I have a dropdownlist that gets populated from db and a button that causes
a post back
when I assign the value of the dropdownlist to a string var it always
returns the first item regardless of what was selected
code is simple
in the button click event
string name = ddlName.SelectedItem.ToString();
I'm learning asp.net and this is my first project so excuse the newbie
question .