asp.net: (c# client-side) how to access html element created after page loads?
问题 Imagine this, Step 1: ASPX Page Loads. Step 2: Button fires a script that creates a html element (div, span, etc) with an id or class tag, including runat server attribute. and my problem is, Final Step: From my C# file, how to access that element and get it's inner html, so I can save it to a string? PS: i'll use that string to save it in my mssql database. 回答1: You cannot create a "real" runat=server element/control without doing a full postback to the server. The best approach may be to