我的代碼是:圖像控件無法顯示圖像
string filename = FileUploader.PostedFile.FileName.Substring(fuImage.PostedFile.FileName.LastIndexOf("\\") + 1);
if(fuImage.HasFile)
{
FileUploader.SaveAs(Server.MapPath("Modules/NewUserProfile/UserPic/" + filename));
imgUser.ImageUrl = Server.MapPath("Modules/NewUserProfile/UserPic/" + filename);
}
imgUser
是asp:Image
Control.Image的ID上傳慾望文件夾,但control.What我做錯了這裏的不顯示圖像的圖像?是否有任何回發問題。謝謝。