简体   繁体   English

在asp.net中显示从临时文件夹到图像控件的临时文件

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

I have a asp.net form. 我有一个asp.net表格。 In that iam uploading one file and it is storing in temp folder as file.tmp. 在那个IAM中上传一个文件,它作为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 假设您在“ Data文件夹中有文件

Use this : 用这个 :

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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