javascript - asp:button ocmmandName disable post back -
my website dynamically loads info list dynamically loaded dropdownlist in each item.
my button within of each item uses commandname execute code take value dropdownlist within of same item , it. (by using system.web.ui.webcontrols.datalistcommandeventargs e parameter)
my problem is, 1 time pick dropdownlist , click on button, performs post-back , takes "currently selected value" ddl, has been reset first 1 because of post back...
how can solve this?
i have tried putting onclientclick="return false;" onto button, seems stop commandname running @ all...
i have tried usesubmitbehavior="false", not stopping problem.
any ideas? thanks.
javascript c# asp.net
No comments:
Post a Comment