Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在xlsx使用免费库在数据库中上传文件EPPlus。这工作正常,上传在数据库中可见。 我想检查上传状态,如“ upload successfull”或“ upload failed”。
xlsx
EPPlus
upload successfull
upload failed
有没有办法做到这一点?
我希望我已经清楚并为我糟糕的英语感到抱歉
这取决于您如何上传文件。如果不是通过 ajax,那么您可以根据成功或失败进行重定向。
try { // Code to process upload Response.Redirect("/success.aspx"); } catch (Exception) { Response.Redirect("/failure.aspx"); }