P
Peter Wone
I created a WebUserControl that renders <DIV CONTENTEDITABLE
ID="whatever"></DIV> to offer HTML editing in a web page.
On postback I don't get the content of the DIV. This is unsurprising; it's
not an INPUT control. When I doing this in classic ASP I used to hook the
form's onsubmit event with some javascript to harvest the DIV tag innerHtml
into an INPUT TYPE="HIDDEN" field.
I -could- embed some inline script to add another handler to the onsubmit
event of the form containing the control. What's the -recommended- way to go
about implementing this sort of thing with an ASP.NET WebUserControl?
ID="whatever"></DIV> to offer HTML editing in a web page.
On postback I don't get the content of the DIV. This is unsurprising; it's
not an INPUT control. When I doing this in classic ASP I used to hook the
form's onsubmit event with some javascript to harvest the DIV tag innerHtml
into an INPUT TYPE="HIDDEN" field.
I -could- embed some inline script to add another handler to the onsubmit
event of the form containing the control. What's the -recommended- way to go
about implementing this sort of thing with an ASP.NET WebUserControl?