码迷,mamicode.com
首页 > Web开发 > 详细

.net 后台判断是否要替换

时间:2019-01-08 21:10:05      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:window   save   fir   app   confirm   ppa   cti   delete   function   

Response.Write("<script>window.onload=function (){if(confirm(\"该文件已经存在,确定要替换吗吗?\")){document.getElementById(\"hidIsSave\").value = \"1\" }else {document.getElementById(\"hidIsSave\").value = \"0\"}}</script>");
if (hidIsSave.Value == "1")
{
File.Delete(Server.MapPath(FileName));
fuload.SaveAs(Server.MapPath(FileName));
}
else
{

}

.net 后台判断是否要替换

标签:window   save   fir   app   confirm   ppa   cti   delete   function   

原文地址:https://www.cnblogs.com/balcon/p/10240832.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!