我们可以将Repeater作为ButtonClick()函数中的参数进行传递吗? [英] can we pass repeater as a parameter in ButtonClick() function.

查看:58
本文介绍了我们可以将Repeater作为ButtonClick()函数中的参数进行传递吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们能否在asp.net的源代码中的Button_Click()函数中将中继器作为参数传递?

can we pass repeater as a parameter in Button_Click() function in source code in asp.net

推荐答案

您通常不会传递控件.您可以传递数据源或对该数据或其适用部分的某些引用.

要获得更准确的答案,您需要使我们对您的工作及其原因有所了解.
You don''t generally pass controls around. You can pass the datasource, or some reference to the data or applicable portion of it.

To get a more accurate answer you''ll need to give us some understand of what you are doing and why.


这篇关于我们可以将Repeater作为ButtonClick()函数中的参数进行传递吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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