Dynamically add a new text box on button click

后端 未结 2 373
陌清茗
陌清茗 2020-12-10 20:00

I have textbox \"tb1\" on my page and I want users to be able to add another if they need to input more data. I have the following code:

VB:

2条回答
  •  失恋的感觉
    2020-12-10 20:13

    You can't do that easily using server-side code. You have to use jQuery/JavaScript for this purpose. Please read the asp.net Page and control life cycle from the MSDN.

提交回复
热议问题