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

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -