asp.net中的数据列表 [英] data list in asp.net

查看:59
本文介绍了asp.net中的数据列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有一个单选按钮列表和一个文本框的数据列表,对于它的源,我正在使用数据库(绑定到项目数据上),因此它创建了6行(基于数据库).
用户必须通过这些单选按钮列表和文本框输入,我想使用findcontrol在运行时保存它,在我的情况下,它是查找数据列表控件和所有控件,但没有找到用户输入的值,如何实现?

请引导我一点

I have a datalist with one radio button list and one text box and for its source i am using database (on item data bound ), so its creating 6 rows (on based from database).
a user have to enter through these radiobutton list and textboxes and i want to save it on run time using findcontrol, in my case its finding datalist control and all controls but not finding values the user entering, how to achieve it ?

plz guide me a bit

推荐答案

您是否在触发事件(即页面加载)之前进行数据绑定?如果是这样,您将清除输入的数据.
Are you data binding before the event that is firing ( that is, in page load ) ? If so, you''re erasing the data that was entered.


这篇关于asp.net中的数据列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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