File Upload & Delete in asp.net -
how can upload file without clicking submit button & how delete uploaded file in asp.net? can upload can't delete uploaded file.my code behind source:
public partial class webform1 : system.web.ui.page { protected void page_load(object sender, eventargs e) { } public void uploaddocument(object sender, eventargs e) { fudocument.saveas(server.mappath("~/documents/" + path.getfilename(fudocument.filename))); lblmsg.visible = true; } }
}
to upload file, can use javascript - there many examples of on , web in general. such as:
https://cmatskas.com/upload-files-in-asp-net-mvc-with-javascript-and-c/
you "can't delete" file. how trying delete , happens when try? if it's exception, message , stack trace?
Comments
Post a Comment