c# - How to get modified Image (img) Source (src) server-side? -
i stuck on giving me headache. new asp.net , can't through seems simple in php.
i have img element declare empty src attribute :
<img runat="server" id="result_img" />
on client-side, have script changes values of attribute :
var img = $("img[id$='result_img']")[0]; img.src = 'pathtoimg';
the image showing , perfect.
however, when try modified value on server-side this
var urlimage = result_img.src;
the 'src' attribute still empty.
am doing wrong or impossible in asp ?
thanks help
i attach event handler click event on save button, or form submission event, , write image hidden field there. or use ajax post server.
Comments
Post a Comment