Access Html Controls From Code Behind C#
My webpage generates a lot of HTML dynamically using jQuery to display data. However, I need to access those dynamic HTML controls from C#. I cannot do runat='server', because JQUE
Solution 1:
If all you need are values from input fields (input, select, radio, checkbox), just make sure JQuery creates those inside the main <form>
tag, then you can read them in the server side, after the form is submitted, using Request.Form["myFieldName"]
.
Post a Comment for "Access Html Controls From Code Behind C#"