Dynamic Controls HELP --URGENT
-
Hello I am creating Dynamic HTML controls using javascript and filling data from ajax. When post back i cannot access the html controls like text box and combo box using request.form() and those dynamic controls. How to access dynamically created HTML Controls on Client side on Server side after the page is submited? Need help Urgently thanks and regards
Help in need is the help indeed
-
Hello I am creating Dynamic HTML controls using javascript and filling data from ajax. When post back i cannot access the html controls like text box and combo box using request.form() and those dynamic controls. How to access dynamically created HTML Controls on Client side on Server side after the page is submited? Need help Urgently thanks and regards
Help in need is the help indeed
AFAIK controls added on client are not accessible on server unless there is way to modify viewstate on client (I don't think you can do it). A better way to achieve something like you want is to create the controls on server and show them or hide them on client as per your logic/requirement.
-----
-
Hello I am creating Dynamic HTML controls using javascript and filling data from ajax. When post back i cannot access the html controls like text box and combo box using request.form() and those dynamic controls. How to access dynamically created HTML Controls on Client side on Server side after the page is submited? Need help Urgently thanks and regards
Help in need is the help indeed
-
Have you assigned id attributes to the elements? Try checking the request sent to the server to check what POST variables its sending (using a tool like Firebug and/or Fiddler)
Thank you very much for the reply. Yes i have assigned both name and id attributes for the controls i have created. But not showing in the key Collections in request.form. It only shows the Items that i created as server controls.
Help in need is the help indeed