posted @ 2010-12-24 10:47 jasonC 阅读(271) 评论(0) 推荐(0) 编辑
摘要:
前几天写一段向客户端写入流的代码: FileStreamMyFileStream; longFileSize; MyFileStream=newFileStream=("c:\\a.doc",FileMode.Open); FileSize=MyFileStream.Length; byte[]Buffer=newbyte[(int)FileSize]; MyFileStream.Read(Buffer,0,(int)FileSize); MyFileStream.Close(); Response.AddHeader("Content-Disposition","attachment; 阅读全文
摘要:
function toExcel() { var objTable = document.getElementById("%=gdvSchedulePlan.ClientID %"); if (objTable == null) { objTable = document.getElementById("gdvSchedulePlan"); } if (objTable == null) { alert("找不到数据源!"); return; } var tempTable = objTable.cloneNode(true); tempTable.id = "tempTable1119 阅读全文
posted @ 2010-12-17 14:12 jasonC 阅读(182) 评论(0) 推荐(0) 编辑
摘要:
function toExcel() { var objTable = document.getElementById("%=gdvSchedulePlan.ClientID %"); if (objTable == null) { objTable = document.getElementById("gdvSchedulePlan"); } if (objTable == null) { alert("找不到数据源!"); return; } var tempTable = objTable.cloneNode(true); tempTable.id = "tempTable1119 阅读全文
posted @ 2010-12-17 14:12 jasonC 阅读(165) 评论(0) 推荐(0) 编辑
摘要:
public class Expressions{ /// <summary> /// 将表达式中的操作数和运算符分割出来 /// </summary> /// <param name="expression">文本表达式</param> /// <returns>操作数与运算符表</returns> internal sta... 阅读全文
posted @ 2010-07-07 11:20 jasonC 阅读(255) 评论(0) 推荐(0) 编辑
摘要:
#!/user/bin/perlmy @maze=([qw(e swe we ws)],[qw(ne new sw ns)],[qw(ns - ns wn)],[qw(ne w ne w)],);my %direction=(n=>[-1,0],s=>[1,0],e=>[0,1],w=>[0,-1]);my %full=(e=>'East',n=>'North'... 阅读全文
posted @ 2010-07-01 15:19 jasonC 阅读(348) 评论(0) 推荐(0) 编辑