10 2013 档案
摘要:protected void btnConfirg_Click(object sender, EventArgs e) { genExcel(); } //设置内容文字色 表中有一个蓝色文字列和绿色文字列 protected Aspose.Cells.Style get_content_style(Workbook workbook, Color clrmy) { Aspose.Cells.Style styleTitleBlue = workbook.Styles[workbo...
阅读全文
摘要:我这里的gridView是采用空模板数据来显示的当gridView的数据源为空的时候它们就会显示标题有数据的显示它们就会显示下面的这种你仔细观察会发现,当有数据的时候空标题的table没有了,解释的出来的html就如上面所示var title_leng= $("#gridOrder tr table tr").length;//如果为1表示grid无数据,如果为0表示有数据 if(title_leng<=0) { alert('GridView有数据'); } else { alert('GridView没有数据'); }
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.SessionState;/// /// Summary description for Module/// //1.继承IHttpModule类,实现接口成员namespace JudgeSessionOutTime{ public class Module : IHttpModule, IRequiresSessionState { public void Dispose...
阅读全文
摘要:private void HtmlResponseToExecl() { //将数据(html)导入到Excel中 Response.Charset = "gb2312"; Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312"); string filename = "../Execl/test"; //解决乱码问题 filename = HttpUtility...
阅读全文
摘要:1:遍历对象属性var obj={a:'aa',b:'bb'}for(var i in obj){ alert(i); //输出 a b}var obj={'a':'aa','b':'bb'} // 这种也是一样的对象写法for(var i in obj){ alert(i); //输出 a b}2.遍历对象属性值var obj={a:'aa',b:'bb'}for(var i in obj){ alert(obj[i]); //输出 aa 和 bb 此写法类似C#索
阅读全文