windows live writer 文章发布测试
2011-09-03 21:39
411 查看
在公司不能上博客园,限制太多,基本上你能想到的博客是不能上了。邮箱也只能上内网的。纠结!
DateTime now = DateTime.Now;
newName = now.ToString("yyyyMMddHHmmss") + uploadFiles.PostedFile.ContentLength.ToString();
//上传路径 指当前上传页面的同一级的目录下面的wordTmp路径
string path = System.Web.HttpContext.Current.Server.MapPath("wordTmp/");
if (!System.IO.Directory.Exists(path))
{
System.IO.Directory.CreateDirectory(path);
}
string aimPath = path + newName + extendName;
uploadFiles.PostedFile.SaveAs(aimPath);
DateTime now = DateTime.Now;
newName = now.ToString("yyyyMMddHHmmss") + uploadFiles.PostedFile.ContentLength.ToString();
//上传路径 指当前上传页面的同一级的目录下面的wordTmp路径
string path = System.Web.HttpContext.Current.Server.MapPath("wordTmp/");
if (!System.IO.Directory.Exists(path))
{
System.IO.Directory.CreateDirectory(path);
}
string aimPath = path + newName + extendName;
uploadFiles.PostedFile.SaveAs(aimPath);
相关文章推荐
- 测试使用windows live writer的adsense coder发布文章
- Windows Live Writer博客发布工具测试在本地发布博客文章到csdn
- 这上Windows Live Writer离线发布的测试文章
- windows live writer向cnblog发布文章设置(转)
- 【超详细教程】使用Windows Live Writer 2012和Office Word 2013 发布文章到博客园全面总结
- 使用Windows Live Writer 2011发布文章到51cto博客
- 使用Windows Live Writer 2012或Office Word 2013 发布文章到博客园
- 如何使用Windows Live Writer在博客园发布文章【博客园新手可以看看哦】
- 【超详细教程】使用Windows Live Writer 2012和Office Word 2013 发布文章到博客园全面总结
- Windows Live Writer发布CSDN离线博客教程及测试
- 测试一下..在 Windows Live Writer 发布日记.
- 图文并茂教你使用 Windows Live Writer 在博客园发布文章
- 使用Windows Live Writer 2012和Office Word 2013 发布文章到博客园
- Windows Live Writer 发表文章测试
- 最近使用windows live writer写文章了,来个测试先吧!
- 使用Windows Live Writer 2011发布文章到51cto博客
- 【转载】使用Windows Live Writer 2012和Office Word 2013 发布文章到博客园全面总结
- 使用Windows live writer客户端来发布CSDN的博客文章
- 转——windows live writer向cnblog发布文章设置
- 【超详细教程】使用Windows Live Writer 2012和Office Word 2013 发布文章到博客园全面总结