摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;using... 阅读全文
jquery如何判断checkbox(复选框)是否被选中
2010-01-07 15:40 by cnb_mtime, 1259 阅读, 0 推荐, 收藏, 编辑
摘要:谁都知道 在html 如果一个复选框被选中 是 checked="checked"。但是我们如果用jquery alert($("#id").attr("checked")) 会提示您是true而不是checked所以很多朋友判断 if($("#id").attr("checked")=="true") 这个是错误的,其实应该是 if($("#id").attr("checked")==true)... 阅读全文
。net里文件编码问题,我快转晕了
2009-12-21 14:15 by cnb_mtime, 168 阅读, 0 推荐, 收藏, 编辑
摘要:今天写项目中的搜索模块,发现怎么都找不到值,汗一个。。。原来乱码呢在web.config中加上 <globalization requestEncoding="GBK" responseEncoding="GBK"/>然后好了,无奈一会我发现ajax全不好用了。。。,我晕了,看网上说request过来的值都是UTF-8,是不?应该是,然后我在局部的接受ajax参数的地方加上 UTF =... 阅读全文
没有为第 2 列(属于 'b')指定列
2009-12-16 10:14 by cnb_mtime, 1025 阅读, 0 推荐, 收藏, 编辑
摘要:这个问题,让我郁闷了半天。问题是这样的,我要求出所有部门所发布的文章数;每个文章都会属于一个部门;部门id的列名是dep_id;SQL语句如下select dep_id,count(*) from article group by dep_id意思很简单,按部门Id,分组计算;输出结果dep_id----------- -----------69 8892 85115 29138 3177 741... 阅读全文
在.net里得到一个asp.net页面的执行时间
2009-12-16 08:54 by cnb_mtime, 195 阅读, 0 推荐, 收藏, 编辑
摘要:[代码]protectedvoidApplication_BeginRequest(Objectsender,EventArgse){Application["StartTime"]=System.DateTime.Now;}protectedvoidApplication_EndRequest(Objectsender,EventArgse){System.DateTimestartTime=(... 阅读全文