摘要: Server Error500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed.原因:Windows2008的系统和II7下Web.confing出错,网站并不提示以下错误 “/”应用程序中的服务器错误。配置错误解决办法:在根目录下添加Web.config文件,内容如下<configuration><system.webServer><httpErrors errorMode="Deta 阅读全文
posted @ 2011-09-01 18:45 HTL 阅读(1634) 评论(0) 推荐(0)
摘要: 在地址栏中输入javascript:alert(document.lastModified)如果时间与当前的时间相同则表示是伪静态, 阅读全文
posted @ 2011-09-01 18:18 HTL 阅读(1018) 评论(0) 推荐(0)
摘要: 打开 Cmdcd /d d:\进入mysql安装目录的bin文件夹输入mysql -h Ip地址 -u 用户名 -p回车出现Enter password:时输入密码进入 远程Mysql远程Mysql的任何数据库必须对远程的mysql数据库有管理权限,否则出现以下错误 denied for user '用户名' to database 'mysql' 阅读全文
posted @ 2011-08-31 19:14 HTL 阅读(218) 评论(0) 推荐(0)
摘要: Response.Write("<script>if(confirm('添加成功,是否继续添加?'))window.open('AddProducts','_self');else {window.open('Products.aspx','_self');}</script>"); Response.End(); 阅读全文
posted @ 2011-07-29 10:38 HTL 阅读(155) 评论(0) 推荐(0)
摘要: html body div.clear,html body span.clear{ background: none; border: 0; clear: both; display: block; float: none; font-size: 0; margin: 0; padding: 0; overflow: hidden; visibility: hidden; width: 0; height: 0;} 阅读全文
posted @ 2011-06-08 18:39 HTL 阅读(1065) 评论(0) 推荐(0)
摘要: var str="36,35,26,41,42,36,36,35,41,25,26,";var ret = [];var re = str.split(',');str.replace(/[^,]+/g, function($0, $1) { (str.indexOf($0) == $1) && ret.push($0)})alert(ret) 阅读全文
posted @ 2011-05-19 15:35 HTL 阅读(2605) 评论(1) 推荐(0)
摘要: FF中对2010-12-20这种时间的转换格式始终返回Nan解决办法:将-替换成/Date.parse('2010-12-20‘.replace(/[-]/g,'/')) 阅读全文
posted @ 2011-05-18 19:07 HTL 阅读(537) 评论(0) 推荐(0)
摘要: Date.prototype.format = function(format){ var args = { "M+" : this.getMonth() + 1, "d+" : this.getDate(), "h+" : this.getHours(), "m+" : this.getMinutes(), "s+" : this.getSeconds(), "q+" : Math.floor((this.getMonth() + 3) / 3), //quarter &q 阅读全文
posted @ 2011-05-17 19:09 HTL 阅读(3076) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Windows.Forms;using System.Text;namespace Common{ /// <summary> /// 窗体的单例模式 /// </summary> /// <typeparam name="T"></typeparam> public class FormSingle<T> where T : Form, new() { private static T form; 阅读全文
posted @ 2011-05-09 12:22 HTL 阅读(1132) 评论(0) 推荐(0)
摘要: 原因是资源文件的namespace与文件的namespace不相同 更改namespace即可http://hi.baidu.com/heiru/blog/item/fb62922359ef0c4dad34de96.html 阅读全文
posted @ 2011-04-20 14:26 HTL 阅读(642) 评论(0) 推荐(0)
htl