asp.net - Update Panel doesn't refresh content -
problem:
i'm having problems updatepanel not refreshing contents.
i have web page dropdown lists cascade selections such selecting value in 1 filters available options in next.
my page structured this:
- dropdownlist1
- updatepanel1 ( dropdownlist2 )
- updatepanel2 ( dropdownlist3 )
when user makes selection in ddl1, filters options in ddl2 , ddl3. this works
when user makes selection in ddl2, should filter remaining options in ddl3. does not work
what i've tried:
i have several breakpoints set , know update method ddl3 being called.
if remove updatepanel2, contents of ddl3 updated expected, whole page refreshes , scrolls top.
updatepanel2 has asyncpostbacktrigger pointing ddl2. if change postbacktrigger ddl3 correctly updates whole page refreshes , scrolls top.
if remove triggers updatepanel2, ddl3 correctly updates whole page refreshes , scrolls top.
help:
i don't know else try.
i fixed problem.
for whatever reason, event handler wasn't getting set correctly. in page init, manually assigned event handler , working now.
protected sub page_init(byval sender object, byval e system.eventargs) handles me.init addhandler ddlsecond.selectedindexchanged, addressof ddlsecond_selectedindexchanged end sub
Comments
Post a Comment