在C#中获取动态生成的多个文本框值 [英] Get dynamically generated multiple textbox values in C#

查看:86
本文介绍了在C#中获取动态生成的多个文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在创建一个页面,我在页面中使用for循环创建动态标签和文本框。但是现在我不明白如何按顺序获取多个文本框值保存数据库中的值。

Hello,
I am creating a page in which I created dynamically labels and textboxes using for loop in code behind page.But now I don't understand how to fetch the multiple textbox values in order to save the values in database.

推荐答案

请按照以下链接:

Control.FindControl方法 [ ^ ]

如何:动态创建ASP.NET Web服务器控件模板 [ ^ ]

了解ASP.NET视图状态 [ ^ ]
Please, follow the below links:
Control.FindControl Method[^]
How To: Create ASP.NET Web Server Control Templates Dynamically[^]
Understanding ASP.NET View State[^]


这篇关于在C#中获取动态生成的多个文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆