|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.Net 2.0 DropDownList Selected Not Working...Hi everybody,
I populate the dropdownlist control dynamically and when I am about to get the value of selected item in the dropdownlist I always get the first one, when I try to set the autopostback to true, no matter what I select in the dropdownlist it goes back to first selection. Is there anyone knows how I could solve this? This never happens when I am using asp.net 1.0 and 1.1. This is very strange... den2005 -- MCP Year 2005, Philippines The DropDownList must be populated only on the initial page load, if
not the list will behave just like you pointed out. void Page_Load ( ) { if ( ! IsPostBack ) { // bind dropdownlist here } } Thanks, ReyN..
-- Show quoteHide quoteMCP Year 2005, Philippines "ReyN" wrote: > The DropDownList must be populated only on the initial page load, if > not the list will behave just like you pointed out. > > void Page_Load ( ) { > if ( ! IsPostBack ) { > // bind dropdownlist here > } > } > >
Control events - page life-cycle
Controls calling other controls problem - ASP.NET 2.0 ASP.NET 2.0 / GridView / ObjectDataSource / Update / Missing Columns The parameter is not correct from SqlDataAdapter control How to keep state of treeview control ASP.NET report viewer chart control dual axis support Gridview - disappearing data when column is hidden Custom Control inside <page>.aspx.cs Adding Regular Expression Validators to GridView Two dropdownlist and two tables... |
|||||||||||||||||||||||