Hello there i have written some code in jquery to add new input type elements in aspx page! Now I want to fetch values of these elements via ASP.NET! I know if i want to achieve this i will have to store each values in hidden form elements n then fetching hidden element val in cs file! I am curious if i could get a direct/shortcut way to fetch the values of each dynamically added contols in Asp.Net incase there were dozens of elements which were added dynamically in jquery!
Thanks in advance
Give every element you add to your page a class, say “dynamic”. Before postback, update a HiddenField like so:
Then access the comma delimited hidden field value in the code behind.