I have a dropdownlist that takes data from the sql server database. I load this dropdownlist into the page_load within a if(!IsPostBack){}
and from what I noticed from !IsPostBack
, it only goes in there if it is the first time it loads the page. p>
What bothers me is that every time I click on one of the dropdownlist items, the page reloads. Placing a breakpoint in the page_load of the page, I saw it go there every time I click on an item.
Why does this happen? How do you prevent it from reloading the page for each chosen item?