I have an asp:textbox and an asp:button that submits that textbox. I then have javascript code that creates a div that contains a textarea and an input[type=button].
I want to be able to submit these created textarea's text using the asp:button event. So when a user enters text within one of the div created textarea's and clicks the div input:button, I want to copy the textarea text to the asp:textbox and then call the asp:button click event through javascript. I'd like to somehow pass the id of the div input:button into the click event of the asp:textbox.
How do I pass a variable to the OnClick event of an asp:button through javascript.
I've thought of using a hidden asp:label to store the id, but it seems like there should be a better way.