当用户点击任何按钮时,我有60个图像按钮,该按钮id应插入数据库,如何找到点击的按钮id [英] i have 60 image button when user Clicked any button , that button id should insert into the database, how to find which button id clicked

查看:69
本文介绍了当用户点击任何按钮时,我有60个图像按钮,该按钮id应插入数据库,如何找到点击的按钮id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有60个图像按钮当用户点击任何按钮时,该按钮id应插入数据库,如何找到点击的按钮id

i have 60 image button when user Clicked any button , that button id should insert into the database, how to find which button id clicked

推荐答案

使用ImageButton_Click事件



在那里写代码获取按钮ID



string butID = ImageButton.ID.tostring() ;



现在写insertquery
use ImageButton_Click event

write the code there get the button id

string butID=ImageButton.ID.tostring();

now write insertquery


这篇关于当用户点击任何按钮时,我有60个图像按钮,该按钮id应插入数据库,如何找到点击的按钮id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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