访问服务器端的图像URL [英] Accessing Image URL in the server side

查看:129
本文介绍了访问服务器端的图像URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网页中使用asp图像控件。 (这里我没有设置任何ImageURL路径)



现在我在客户端的Jquery中通过src属性设置ImageURL。



现在点击一下butoon我必须访问这个ImageURL,但ImageURL总是空的。



如果我在客户端更改src值,任何人都可以告诉如何在服务器端访问此ImageURL

I am using an asp Image control in an web page. (Here i have not set any ImageURL path)

Now I am setting a ImageURL through src property in Jquery in client side.

Now On click of a butoon I have to access this ImageURL but the ImageURL is always empty.

Can anyone tell how to access this ImageURL in server side if I change the src value in client side

推荐答案

你不能。



服务器不会取回你在客户端修改的HTML。如果客户端有数据要发送回服务器,则必须将此数据放入要回发的表单中,或者必须在服务器上调用Ajax方法并返回一些修改后的数据。
You can't.

The server will not get back the HTML you modified on the client side. If the client has data to send back to the server it has to either put this data into a Form to be posted back or has to call an Ajax method on the server and send some modified data back.


这篇关于访问服务器端的图像URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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