我有一个DataList视图,每个Item都有一个包含Items Id的Button,我想在点击这个Button时在数组中添加这个Id。 [英] I have a DataList View and every Item has a Button that contain Items Id and I want to add this Id in an array on when we click to this Button.

查看:65
本文介绍了我有一个DataList视图,每个Item都有一个包含Items Id的Button,我想在点击这个Button时在数组中添加这个Id。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个DataList视图,每个Item都有一个包含Items Id的Button,我想在点击这个Button时在数组中添加这个Id。

I have a DataList View and every Item has a Button that contain Items Id and I want to add this Id in an array on when we click to this Button.

推荐答案

Hi
您应该定义一个数组,然后在ButtonClickEvent上编写代码并从行获取ID并添加到数组。

Yours Farhad。
Hi You should define an array and then write code on ButtonClickEvent and get ID from row and add to array.
Yours Farhad.


这篇关于我有一个DataList视图,每个Item都有一个包含Items Id的Button,我想在点击这个Button时在数组中添加这个Id。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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