如何从面板中生成的动态文本框中获取值 [英] how to get value from generated dynamic textbox in panel
本文介绍了如何从面板中生成的动态文本框中获取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的代码背后
this is my code behind
TextBox newtextbox = new TextBox();
newtextbox.ID = "textbox1"
MainPanel.Controls.Add(newtextbox);
这是我的HTML代码
this is my html code
<asp:Panel ID="MainPanel" runat="server"></asp:Panel>
推荐答案
分配所有文本框的UniqueId和使用JQuery都可以获得所有值。
快乐编码:)
Assign the UniqueId to all the textbox and using JQuery you can get all the values.
Happy Coding :)
这篇关于如何从面板中生成的动态文本框中获取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文