Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58
function PopupCalendar(InstanceName)
{
///Global Tag
this.instanceName=InstanceName;
///Properties
this.separator="-"
this.oBtnTodayTitle="Today"
this.oBtnCancelTitle="Cancel"
this.weekDaySting=new Array("S","M","T","W","T","F","S");
this.monthSting=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
this.Width=200;
this.currDate=new Date();
this.today=new Date();
this.startYear=1970;
this.endYear=2010;
///Css
this.normalfontColor="#666666";
this.selectedfontColor="red";
this.divBorderCss="1px solid #BCD0DE";
this.titleTableBgColor="#98B8CD";
this.tableBorderColor="#CCCCCC"
///Method
this.Init=CalendarInit;
this.Fill=CalendarFill;
this.Refresh=CalendarRefresh;
this.Restore=CalendarRestore;
///HTMLObject
this.oTaget=null;
this.oPreviousCell=null;
this.sDIVID=InstanceName+"_Div";
this.sTABLEID=InstanceName+"_Table";
this.sMONTHID=InstanceName+"_Month";
this.sYEARID=InstanceName+"_Year";
this.sTODAYBTNID=InstanceName+"_TODAYBTN";
}
function CalendarInit() ///Create panel
{
var sMonth,sYear
sMonth=this.currDate.getMonth();
sYear=this.currDate.getYear();
htmlAll="";
document.write(htmlAll);
this.Fill(); 
}
function CalendarFill() ///
{
var sMonth,sYear,sWeekDay,sToday,oTable,currRow,MaxDay,iDaySn,sIndex,rowIndex,cellIndex,oSelectMonth,oSelectYear
sMonth=this.currDate.getMonth();
sYear=this.currDate.getYear();
sWeekDay=(new Date(sYear,sMonth,1)).getDay();
sToday=this.currDate.getDate();
iDaySn=1
oTable=document.all[this.sTABLEID];
currRow=oTable.rows[1];
MaxDay=CalendarGetMaxDay(sYear,sMonth);
oSelectMonth=document.all[this.sMONTHID]
oSelectMonth.selectedIndex=sMonth;
oSelectYear=document.all[this.sYEARID]
for(i=0;iMaxDay)break;
currRow = oTable.rows[rowIndex];
cellIndex = 0;
if(rowIndex==1)cellIndex = sWeekDay;
for(;cellIndex"+iDaySn+"";
this.oPreviousCell=currRow.cells[cellIndex];
}
else
{
currRow.cells[cellIndex].innerHTML=iDaySn; 
currRow.cells[cellIndex].style.color=this.normalfontColor;
}
CalendarCellSetCss(0,currRow.cells[cellIndex]);
iDaySn++;
if(iDaySn>MaxDay)break; 
}
}
}
function CalendarRestore() /// Clear Data
{ 
var i,j,oTable
oTable=document.all[this.sTABLEID]
for(i=1;i11)
{
nextYear=nowYear+1;
nextMonth=0;
}
else 
{
nextYear=nowYear; 
}
currDate=new Date(nowYear,nowMonth,1);
nextDate=new Date(nextYear,nextMonth,1);
theMaxDay=(nextDate-currDate)/(24*60*60*1000);
return theMaxDay;
}
function CalendargetPos(el,ePro) /// Get Absolute Position
{
var ePos=0;
while(el!=null)
{ 
ePos+=el["offset"+ePro];
el=el.offsetParent;
}
return ePos;
}
function CalendarDblNum(num)
{
if(num < 10) 
return "0"+num;
else
return num;
}
function CalendarCancel(oInstance) ///Cancel
{
var CalendarDiv=document.all[oInstance.sDIVID];
CalendarDiv.style.display="none"; 
}


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

调用方法:

<HTML>
<HEAD>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<meta http-equiv=”Content-Language” content=”zh-cn”>
<TITLE></TITLE>
<script language=”javascript” src=”calendar.js” ></script>
</head>
<BODY >
<script >
var oCalendarEn=new PopupCalendar(“oCalendarEn”);??? //初始化控件时,请给出实例名称如:oCalendarEn
oCalendarEn.Init();
?
var oCalendarChs=new PopupCalendar(“oCalendarChs”);??? //初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs.weekDaySting=new Array(“日”,”一”,”二”,”三”,”四”,”五”,”六”);
oCalendarChs.monthSting=new Array(“一月”,”二月”,”三月”,”四月”,”五月”,”六月”,”七月”,”八月”,”九月”,”十月”,”十一月”,”十二月”);
oCalendarChs.oBtnTodayTitle=”今天”;
oCalendarChs.oBtnCancelTitle=”取消”;
oCalendarChs.Init();
</script>
<br><br><br><br>
   <input readonly type=”text” name=”dd” id=”aa” onclick=”getDateString(this,oCalendarEn)” value=”English Version”>
<br><br><br><br>
   <input readonly type=”text” name=”dd” id=”aa” onclick=”getDateString(this,oCalendarChs)” value=”中文界面版”>??????????????????????????????????
</BODY>
</HTML>


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58



Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

网页保存的时候若名字是中文,则下载到本地会因中文名称引用路径问题引起css不能读取,所以若默认是中文最好调到字母


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

用perfmon分析知,是磁盘读写拖慢了速度, 磁盘的读写操作是最费资源的操作之一,SQL Server 在内存中生成一个缓冲池来存放从数据库读取的页,可以加大通过加大内存,存放更多的缓冲数据来减少对磁盘的读写。
??? 1,增大虚拟内存:系统属性 – 高级 -性能 设置 – 高级 – 虚拟内存 更改:最大与最小设为物理内存的1.5倍
???? 2, SQL SERVER2005在32位上最大支持4GB,在数据库属性上开AWE,以支持更多内存。


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

?LIKE ‘%ASFD%’ 将执行全表扫描,速度低下,利用全表扫描解决
若存储过程执行timeout,则利用sql语句拼接方式!


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

?这是因为有些代码不符合w3规范引起的,去掉头部即可解决。
或者写符合w3规范的代码:将代码放到http://validator.w3.org/检测下,不符合规范的做出相应修改。

DOCTYPE声明对JS获取窗口宽度和高度的影响:
var control = document.body.scrollTop?document.body:document.documentElement;
然后用control.scrollTop与control.scrollLeft


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

数据表在不断的被插入,数据量不断增加,直接对满足条件的数据筛选,处理速度很慢。
解决方法: 表横向切割,将满足条件的数据转储到一临时表中,只对此临时表操作。因为此临时表记录数不会增加,且去除上多余的筛选,速度快上诸多。


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

解决方法:
1,优化sql语句。
2,将sql语句利用字符串构造,对于从几百个以上的数据中取出几个值来说,可以直接将值取出。
即:当使用exists或in时,若真正的数据占表中的比例小于10%,可以全部取出,构造sql语句处理。
DECLARE @Query VARCHAR(500)
SET @Query = ”
SET @Query = ‘
SELECT ISNULL(COUNT(1),0) as SalesCount, ISNULL(sum(b.Cash), 0) as Amount
FROM bdOrder a(NOLOCK)
JOIN bdAchievement b(NOLOCK)
ON a.Orderno = b.Orderno
WHERE OrderDate >=”’ + CONVERT(VARCHAR(10),@OrderDate) + ”’ ‘ + ‘ AND OrderDate < ''' + CONVERT(VARCHAR(10),Dateadd(day, 1, @OrderDate),120) + '''' + ' And OrderStatus NOT IN (''01'', ''61'',''04'',''21'',''22'')' DECLARE @DepartmentIDS VARCHAR(500) //存储小范围的数据 SET @DepartmentIDS = '' SELECT @DepartmentIDS = @DepartmentIDS + ',' + CONVERT(VARCHAR(4),pdr.SlaveDepartmentID) FROM permDepartmentRelation pdr WHERE pdr.MasterDepartment = @DepartmentID IF (@DepartmentIDS <> ”)
BEGIN
SET @DepartmentIDS = SUBSTRING(@DepartmentIDS,2,len(@DepartmentIDS))
END
SET @Query = @Query + ‘ AND b.DepartmentID IN(‘ + @DepartmentIDS + ‘)’

EXEC(@Query)

3,若利用了join,且where中有条件对这个连接表进行筛选,则可将条件直接放在join时进行筛选,以减少IO吞吐。
即:利用join时,where中的条件主要针对于主表。


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

1,找到视频的swf地址:http://player.youku.com/player.php/sid/XMTgzOTYyMzk2/v.swf
2,将地址加上partnerid: http://player.youku.com/player.php/partnerid/XNJU2/sid/XMTgzOTYyMzk2/v.swf
3,在地址栏中打开转换出的地址,
得到:http://static.youku.com/v1.0.0115/v/swf/qplayer_skin.swf?VideoIDS=XMTgzOTYyMzk2&embedid=-&isAutoPlay=true& showAd=0&partnerid=XNjU2
引用上述地址即可。


 


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58
  1. On the Webmaster Tools Home page, select the site you want.
  2. Click Diagnostics, and then click Malware.
  3. Click Request a review.
  4. 通过上述方式来让google清除掉恶意记录
  5. 暂时去掉的方法:

firefox:工具??选项??安全??取消选中“阻止已报告的攻击站点”!

chrome:选项??高级设置??取消选中“启用网上诱骗和恶意软件保护功能”!


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

1,列表错误将连接方式改为被动。
?2,Data Socket Error:Connection refused 一般是端口被防火墙拦截或端口关闭造成。,关掉客户机与服务器的防火墙,看了下网络邻居属性,发现TCP端口只允许开放了部分端口,而在与服务器连接时,服务器选任意一个端口,若此端口被不被允许,则就会报出Data Socket Error:Connection refused,解决方法:1,开端口 。 2,为ftp服务器指定限定端口连接,即:令ftp服务器使用的端口来自只被允许的端口。


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

原因:选择的字符编码与原sql数据库的字符编码不一致造成的,原数据库是什么编码,导入的时候就要选择相应的字符编码
1,创建数据库utf8。
2,打开sql文件,将编码格式统一替换为utf8.
3,在查询中运行此sql所有代码


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

发现变量是用static定义的,而这种变量是针对所有用户而言的,对A所得到的权限将会应用到B上,故将其换作ViewState存储,就避免了多个共享的情况发生。


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

1, SEO的主要功能是抓取页面、关键字以达到网站页面收录的目的,从而提高网站知名度,同时,搜索引擎在抓取页面的时候会屏蔽掉所有javascript代码,而基于Ajax技术的Web站点其中所用到的很重要的一项技术就是javascript代码, 那么Ajax载入的内容对于搜索引擎来说也就是是透明的,不可见的。

2,html 到了浏览器上之后,所有的源代码是不会改变的。但是变量确实会变化。变量改变后他的东西是在内存里,而不是修改浏览器的源代码。即若页面在客户端利用js做出的改变只是存在于内存之中,不会改动源文件。可以想一下,假如做出的变量改变可以在源文件中看到,要知道源文件是存在于电脑上的,也就是说可以用js直接改电脑上的文件,这明显是不可实现的。
用JS不可改变源文件,而ajax就是利用js的,可知ajax不能改变源文件,源文件是第一次加载时形成的。


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

?把<customErrors mode=”RemoteOnly” defaultRedirect=”GenericErrorPage.htm“> 改成<customErrors mode=”Off”/> 再运行网站看提示的具体错误, 一般是程序出问题


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

原因:用户名密码验证成功后系统通过js转到系统主页,而恰恰是js在IE中不能执行,通过在地址栏中输入:javascript:alert(‘asd’); 没有任何反应,便确认了这点,操作系统的js dll文件损坏掉了,要重新注册: regsvr32 jscript.dll regsvr32 vbscript.dll
重新注册后成功解决!


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

上看下看,系统服务都没有问题,是5分钟自动跑一次,但不规律的是有时会一直停止,不再启动。
解决方案:在系统服务程序代码中所有可能出现问题的地方加上try catch,并在抛出异常时写入日志,观察一段时间,发现是生成邮件的时候mailTo为空生成邮件实例失败造成的!!!在生成实例的时候加上mailTo为空就不产生实例的判断,问题解决!!!

生成日志的方法如下:
?

public static void WriteLog(string context)
        {
            using (StreamWriter w = File.AppendText("c:\\temp.txt"))
            {
                Log(context, w);
                w.Close();
            }

        }

        public static void Log(String logMessage, TextWriter w)
        {
            w.Write("\r\nLog Entry : ");
            w.WriteLine("{0} {1}", DateTime.Now.ToLongTimeString(),
                DateTime.Now.ToLongDateString());
            w.WriteLine("  :");
            w.WriteLine("  :{0}", logMessage);
            w.WriteLine("-------------------------------");
            // Update the underlying file.
            w.Flush();
        }