UserControl作为中继器 [英] UserControl as repeaters

查看:83
本文介绍了UserControl作为中继器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在尝试一个可以充当中继器的用户控件.我在使用用户控件时需要重复填充它,并且在检查用户控件中的所有控件后也要保存它.我的用户控件有一个复选框和一个文本框,我需要在面板中填充与保存在数据库中一样多的次数.
在此先感谢

Hello,
I was trying on a user control which can act like a repeater. I am using a user control where I need to fill it repeatedly and also save it once i am checking on all the controls inside user control. My user control is having a checkbox and a textbox which i need to populate as many times inside a panel as it has been saved in database.
Thanks in advance

推荐答案

我倾向于使用用户控件,以防我拥有可重用的业务内容或简单的UI组件来实现某种功能.不知道我是否正确理解了您,但似乎您可能需要使用自定义控件而不是用户控件.
I tend to use a user control in case I have a reusable business content or a simple UI component to acheive a certain functinoality .. while I am not sure if I got you correctly but seems you might need to have a custom control instead of a user control.


这篇关于UserControl作为中继器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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