After edit the content in frontend, how can I get the content in backend?
asdf.InnerHtml does not work, I mean it won’t return new content that I entered in but just what it has on page first load. I need html content of that div.
After edit the content in frontend, how can I get the content in backend?
Share
The best way to do something like this is to use javascript to place the content into a hidden text box.
Once the page has posted back, this value is available on the server.
So you want to place one of these on your page, which you can manipulate however you want client side, and it will be submitted to the server when posted back.
It would look something like (on the client):
HTML:
Javascript:
Then check the value server side.