drop down menu - Issue with dropdownlist in asp.net -
i have problem selectedindexchanged event of dropdownlist, on page load checking id , make item selected in dropdownlist. on selectedindexchanged of dropdownlist, when try print, dropdownlist.selectedvalue, returns me blank value, guess thing on page load dropdownlist defautl selected value messing me up, still required.
below page load code:-
if (!ispostback) { listitem item = ddlslideslist.items.findbyvalue(bl.slideshowid.tostring()); if (item != null) item.selected = true; }
and below code under selectedindexchanged event.
response.write(ddlslideslist.selectedvalue);
Comments
Post a Comment