使用javascript获取代码文件集中的图像的imageURL [英] Get imageurl of image in codefile set using the javascript
本文介绍了使用javascript获取代码文件集中的图像的imageURL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我在页面中添加了一个asp:image标记.然后,我使用javascript将图片设置为该图片.通过获取其clientid并将图像设置为src字段.
当我想在.cs文件中获取图像的图像URL路径,但其显示的图像URL为空时.
我不明白如何获取图片网址.
谢谢并问候
Hello,
I have added an asp:image tag in a page. And I set the image to it by using the javascript. By getting its clientid and set the image to the src field.
And when I want to get that image url path of the image in .cs file but its showing the imageurl empty.
I don''t understand how to get the imageurl.
Thanks and regards
推荐答案
如果图像url不会从客户端回传一个值,则将使用隐藏字段来传递该值.
If the image url won''t post back a value from the client, a hidden field will, you could use that to pass the value.
这篇关于使用javascript获取代码文件集中的图像的imageURL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文