在asp.net中使用jquery绑定图像不起作用 [英] bind image using jquery in asp.net not working

查看:76
本文介绍了在asp.net中使用jquery绑定图像不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个图像控件



< asp:ImageButton ID = imgAssetCardrunat =server
Height =128pxWidth =128pxCssClass =ImageBorder/>





i希望使用jquery将图像绑定到它



 var imgPath =GetImageHandler.ashx?param =+ strdate +& assetDesc = false& Opt = AssetTag& Invid =+ newval +

$(# imgAssetCard)。load(imgPath,function(response,status,xhr){
debugger
if(status ==success){

}
} );





但图像未显示。

解决方案

< blockquote>(#imgAssetCard)。load(imgPath,function(response,status,xhr){
debugger
if(status ==success){

}
});





但图像未显示。


Hi,
I Have a image control as

<asp:ImageButton ID="imgAssetCard" runat="server"  
    Height="128px" Width="128px" CssClass="ImageBorder"  /> 



i want to bind image to it using jquery

 var imgPath = "GetImageHandler.ashx?param=" + strdate + "&assetDesc=false&Opt=AssetTag&Invid=" + newval + ""

$("#imgAssetCard").load(imgPath, function (response, status, xhr) {
                   debugger
                   if (status == "success") {

                   }
               });



But the image is not getting displayed.

解决方案

("#imgAssetCard").load(imgPath, function (response, status, xhr) { debugger if (status == "success") { } });



But the image is not getting displayed.


这篇关于在asp.net中使用jquery绑定图像不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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