Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为这样的网络表单动态创建一些(大约 20 个)文本字段:
TextBox propValue = new TextBox(); propValue.Text = columnValue.ToString(); propValue.ID = columnName; propHolder.Controls.Add(propValue);
然后,在另一个函数中,我需要从每个函数中获取值。有没有办法使用我分配的 ID 获取值?