验证并保存动态创建的服务器端控制数据到数据库中 [英] Validating and save Dynamically created server side controls data into database

查看:78
本文介绍了验证并保存动态创建的服务器端控制数据到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我的表单页面是使用动态控件创建的,其信息存储在数据库中。当用户填写所有数据并单击提交按钮时,我想验证这些控件并验证是否成功将用户信息保存到数据库中。我也应用了按钮点击事件处理程序,但我无法识别哪个控件用于名称以及哪个用于手机,因为我没有按钮点击事件处理程序中的控制信息。有没有办法将我从数据库中检索到的控制信息发送到事件处理程序,以便我可以根据数据库中的信息识别表单上的控件。



问候。

Hello,
My form page is created with dynamic controls whose information is stored into database. when user fill all data and click submit button, i want to validate those controls and is validation successful save the user information into database. I have also applied Button click event handler but i am not able to identify which control is used for name and which for phone because i don''t have control information in button click event handler. is there a way to send control information which i have retrieved from database to event handler so that i can identify controls on form depending on information which i have in database.

Regards.

推荐答案



检查这个

如何在asp.net中创建动态文本框,下拉列表以及如何在数据库中保存这些值? [ ^ ]

最好的问候

M.Mitwalli
Hi ,
Check this
how to create dynamic textbox,dropdown list in asp.net and how to save that values in database?[^]
Best Regards
M.Mitwalli


这篇关于验证并保存动态创建的服务器端控制数据到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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