asp.net - updatepannel can't read innerHTML?
Posted
by
omega
on Stack Overflow
See other posts from Stack Overflow
or by omega
Published on 2012-11-24T05:02:05Z
Indexed on
2012/11/24
5:03 UTC
Read the original article
Hit count: 161
In my asp.net page, I have a jquery sortable accordian (in an update panel) I use so that clients can re-arrange items. Then to save it, users would click a button (thats created from jquery) and it would traverse through the accoridion in the DOM, and write the info to a asp control textbox. Then invoke the click function of a asp button control, which then reads that information and saves the data.
But now I decided to simplify this step, and use html agility pack in c#, so users click the asp button control (inside an update panel), and then it would get the innerHTML of the accordian. But the problem is, the html it's getting is not the reflecting the changes a user can make to the accordion (i.e. re arranging it), it the same as when the DOM was ready on page load...
But note that, using javascript to write the innerHTML to a textbox, then from the c# function, I can read the up to date html from the accordian.
Does anyone know why this is happening and how to get the up to data html from the accordian in c#?
© Stack Overflow or respective owner