If you want to accomplish this you may use using hidden field, among other ways.
Please refer to:
http://www.codeproject.com/Articles/603102/Persist-JavaScript-changes-on-postback,
http://forums.asp.net/t/1428896.aspx/1,
http://forums.asp.net/t/1285473.aspx.
How to take image source from code behind after updating it from client side
Question
I have the following scenario.
User is trying to update the profile image , I am using uploadify plugin to upload image to server , and in callback I am setting
<img src="" runat="server" class="user-image" id="uploadedImage" />
SRC attribute to the uploaded path. This part is working good , then when user clicks on Save button , i need somehow to get new picture path and save it to database.
user.ImageUrl = this.uploadedImage.Attributes["src"];
doen't brings a new picture path , and returns a previous path. Can someone help pls ?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow