代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"htmlxmlns="http://www.w3.org/1999/xhtml"headrunat="server"titleAJAX控件之Rating/titlestyletype="text/cs Read More
posted @ 2010-12-16 15:19 咸鱼公子 Views(204) Comments(0) Diggs(0) Edit
如果DataFormatString无效,请添加属性HtmlEncode = "false"---------------------------------------设定BoundField的DataFormatString,通常有以下几种 DataFormatString= "{0:C}" 货币,货币的格式取决于当前Thread中Culture的设置 DataFormatString= "{0:E}" 科学计数法 DataFormatString= "{0: P}" 百分比 DataFormatString= "{0:F?}" 小数点后几位 DataFormatString= "{0:d Read More
posted @ 2010-12-16 11:48 咸鱼公子 Views(356) Comments(0) Diggs(0) Edit
我们可以通过网络上提供的服务来获取ip地址对应的城市,比如:http://fw.qq.com/ipaddress 。大家复制到地址栏看看就明白了,直接获取了ip地址和所对应的省、市等信息,如下:var IPData = new Array("114.246.160.224","","北京市","");大家可以看如下示例代码,通过修改可以实现很多功能,关键是节省了资源。script src="jquery-1.4.2.js" type="text/javascript"/script script type="text/javascript"$.getScript(‘http://f Read More
posted @ 2010-12-07 10:55 咸鱼公子 Views(23581) Comments(1) Diggs(1) Edit
因为领导要求对网站做压力测试,很久以前就听人说过这东东,然后去网上搜哇,下了N多个版本,V7.8版,V8.0版,V8.1版都是有问题要么IE不支持,然么就是录不了脚本....汗哇...晕哇....后来终于找到了一个HP公司推出的测试工具,4个多G呢相当大呢装安后又是有问题,只支持25用户并发,想要破解哇...后来用破V9.5版本的方法破了V11.00版,用得爽歪歪中... Read More
posted @ 2010-11-03 10:00 咸鱼公子 Views(270) Comments(0) Diggs(0) Edit
1.查询每个班级的学生成绩前十名.......2.分别查询状态为1和2的各显示10Select top 10* From Test Where status=1union allSelect top10 * From Test Where status=2-----狂汗哇.后来问了别人才晓得用这个方法 Read More
posted @ 2010-11-01 17:54 咸鱼公子 Views(148) Comments(0) Diggs(0) Edit
只有注册用户登录后才能阅读该文。 Read More
posted @ 2010-10-28 16:47 咸鱼公子 Views(27) Comments(0) Diggs(0) Edit
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--index.htm?参数1=数值1&参数2=数值2&参数3=数据3&参数4=数值4&......静态html文件js读取url参数根据获取html的参数值控制html页... Read More
posted @ 2010-10-19 12:43 咸鱼公子 Views(265) Comments(0) Diggs(0) Edit
以前是用SQL判断用户的IP后来改成了linq数据库字段也变了同原来的nvarchar变成bigint,问题来了哇.....就是判断不成功哇,很郁闷后来还是用了SQL的储存过程,再用linq来调用最后想说的是:原来linq 不但可以操作表也可以调用存储过程了耶.....很意外的事情呼呼 Read More
posted @ 2010-10-18 13:40 咸鱼公子 Views(206) Comments(0) Diggs(0) Edit
做了一个文章列表,要实现增删改查功能,以前常用用ajax方法中的(ajaxpro),jquery也行,那就用jquery吧,小试一下牛刀以前做数据删除的时候都有去aspx页请求的,后来知道用ashx会更快些,以下是方法jquery方法代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHi... Read More
posted @ 2010-09-21 17:31 咸鱼公子 Views(1511) Comments(1) Diggs(0) Edit
常用的就是:重点1: window.showModalDialog("ArtAdd.aspx","","dialogWidth=700px;dialogHeight=550px");///--要打开模态窗口,后面再加上窗口大小 location.reload(); ///操作完模态窗口后关闭会刷新一下父窗体,重点2:下面两句放在子窗里,可以在操作.net控件时不会弹出新窗口,也不会有缓存.(如果有... Read More
posted @ 2010-09-21 17:25 咸鱼公子 Views(240) Comments(0) Diggs(0) Edit