在gridview内的单击事件上更改图像按钮的图像 [英] changing the image of image button on click event inside the gridview

查看:116
本文介绍了在gridview内的单击事件上更改图像按钮的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个griview,分别具有sno,名称,联系电话,编辑,删除和活动/非活动列.当我单击该活动/非活动按钮click时,如何更改图像按钮的图像.处于活动状态时,当我单击该按钮时,它将变为不活动的按钮图像,我该怎么办,请问有谁可以帮助我.

i have an griview with columns sno,name,contact number,edit,delete,and active/inactive respectively.how to change the image of image button when i click on that active/inactive button click.for suppose if it is in active state when i click on that it will change to inactive button image how can i do that,can any one pls help me.

推荐答案

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    ImageButton1.ImageUrl = "~\Images\abstract-green-background-2560x1600.jpg"
End Sub


这篇关于在gridview内的单击事件上更改图像按钮的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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