解决方案 »
- asp.net在服务器上不能调用System.Web.Mail.SmtpMail发送邮件
- 怎么抓取
- 有一个过滤HTML的正则表达式是这样的"<(.+?)>"
- 在服务器上调试返回的路径不对?
- ASP.NET中调用存储过程后,运行无错误,但数据库没有任何改变
- [VB]ASP.NET和ASP对比后,我对.NET的数组产生了一些疑惑!
- web项目打包的时候能否把iis打进去?或者可以让它自动进行组件更新
- [求助]如何解决windows 2003下的w3wp.exe占用CPU100%的问题???
- 导出EXCEL的问题,请指教
- 新手求用JQUERY 怎么删除GIRDVIEW除了标题行以外所有行
- 用户控件 radiobutton panel 求救!!!!!
- ASP.Net页面用弹出对话框后字体会变大
这个check规则,不是公司给出吗?
你要掌握的技术点是excel的操作(主要是读操作,好像没有写的要求)
文本文件的操作,(写操作,用来做日志输出)
using System.Diagnostics;
using System.IO;
string tracefile = "";
tracefile += Application.StartupPath;
tracefile += "\\错误日志文件.txt";System.IO.FileStream myTraceLog = new
System.IO.FileStream(tracefile,
System.IO.FileMode.OpenOrCreate);
// Creates the new trace listener.
System.Diagnostics.TextWriterTraceListener myListener =
new System.Diagnostics.TextWriterTraceListener(myTraceLog);Trace.Listeners.Add(myListener);
Trace.AutoFlush = true;Trace.write/writeline就可以再出错的地方写入错误日志了