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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -