How to take image source from code behind after updating it from client side

StackOverflow https://stackoverflow.com/questions/18073893

  •  23-06-2022
  •  | 
  •  

سؤال

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 ?

هل كانت مفيدة؟

المحلول

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top