简体   繁体   中英

displaying temp file from temp folder to image control in asp.net

I have a asp.net form. In that iam uploading one file and it is storing in temp folder as file.tmp. I want to display that file in to image control in my form.

I want to display that file in to image control in my form.

Assuming you have the file in Data folder

Use this :

  MyImg.ImageUrl=ResolveClientURL("~/Data/File.tmp")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM