![UploadStarted UploadStarted]()
本文介绍了解决方案文件夹内容在visual studio中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 在解决方案资源管理器下我创建了文件夹名称照片然后我以编程方式添加照片... 但是从环境中我无法看到文件夹内的照片但是当我打开文件夹时它是有什么问题我无法理解。 i我正在使用ajax照片上传器,因为这个问题上传照片没有显示 当我点击菜单显示对象浏览器顶部的所有文件时,我可以找到白色的照片 i需要帮助.....Under the solution explorer i created folder name photos then i add photo programatically...but from environment i can't see the photos inside the folder but when i open the folder it' s there what is the problem i cant understand.i am using ajax photo uploader because of this problem upload photo not displayingwhen i click the menu show all files on top of object explorer i can find the photo in white colori need help.....推荐答案Asynchronous file upload :<asp:asyncfileupload id="btnUpload" runat="server" xmlns:asp="#unknown"> onuploadedcomplete="btnUpload_UploadedComplete" UploaderStyle="Modern" CompleteBackColor="White" UploadingBackColor="#CCFFFF" ThrobberID="imgLoader" OnClientUploadComplete="uploadComplete" OnClientUploadStarted = "uploadStarted" Width="120px" ClientIDMode="Static" CssClass="FileUploadWidth" FailedValidation="False" /> protected void btnUpload_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e) { try { File.Delete(string.Format(@"{0}\{1}", Server.MapPath(this.UploadFolderPath), "Test.jpg")); filename = System.IO.Path.GetExtension(btnUpload.PostedFile.FileName).ToString(); btnUpload.SaveAs(Server.MapPath(this.UploadFolderPath) + "Test" + filename); imgDisplay.Src = this.UploadFolderPath + "Test" + filename; } catch (Exception ex) { } }javascript<script type = "text/javascript"> function uploadStarted() { 这篇关于解决方案文件夹内容在visual studio中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-03 02:06