我想点击图像后重新编辑页面,但我的代码不起作用 [英] i want redirct page after click on image,but my code does not work

查看:78
本文介绍了我想点击图像后重新编辑页面,但我的代码不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:Image ID="ImageItem" runat="server" Height="100px" Width="100px" ImageUrl='<%# Eval("SGL_IMG") %>' CommandArgument='<%# DataBinder.Eval(Container.DataItem, "MFR_SKU_NUM")%>'OnClick="ImageItem_Click" />

推荐答案

你正试图映射单击事件上的图像到图像按钮,因此它不起作用。使用图像按钮,并将图像作为URL,然后在点击时触发相同的事件。它会起作用
u are trying to map the image to imagebutton on click event so its not working. Use imagebutton insted and give the image as url then fire the same event on click. it will work


这篇关于我想点击图像后重新编辑页面,但我的代码不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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