add asp.net control using javascript

前端 未结 6 1431
广开言路
广开言路 2021-01-16 07:40

I would like to add an ASP:label and ASP:textbox control to a page through Javascript.



        
6条回答
  •  一整个雨季
    2021-01-16 08:06

    You can dynamically add html controls to the page through javascript pretty easily through jQuery. This will allow you to do it without talking to the server, and you can also set the ids too if you wish using .attr('id','NEWIDVALUE'); on the element.

提交回复
热议问题