标签:mode bag app model cfile bll 水印 ima add
if (ExcFile == null)
{
return View();
}
string strename = Server.MapPath("/EXCEL/");
if (!Directory.Exists(strename))
{
Directory.CreateDirectory(strename);
}
string filename = Path.GetFileName(ExcFile.FileName);
ExcFile.SaveAs(strename + filename);
if (shuiyin.ImageWoter(strename + filename, Shuiyinwenzi) > 0)
{
ViewBag.aaa = "2222.jpg";
showMODEL mm = new showMODEL() {
Shuiyinwenzi=Shuiyinwenzi,
SCname= filename
};
bll.add(mm);
return View();
}
else
{
return Content("<script>alert(‘水印失败!‘)</script>");
}
标签:mode bag app model cfile bll 水印 ima add
原文地址:http://www.cnblogs.com/shenghuotaiai/p/7827818.html