ASP.NET Mischellous II
@import url(“layout.css”)
CSS Selectors: *, p, div span, div > span, *[href], li+li, .title, #container, #title p:first-child, a:link, a:hover, a:visited, p:before, p:after
p:after{content:’url(images/quote.gif)’}
!important State Mode: Off, InProc, StateServer, SQLServer, Custom
<Page EnableSessionState=”false”/>
<sessionState mode=”StateServer” stateConnectionString=”tcpip=127.0.0.1:42424”/>
The class should be marked as [Serializable] while you try to use “StateServer” or “SQLServer” mode. Anyway, make sure state objects should be serializable. cache: <%@ OuputCache %>, CacheDependency, AggregateCacheDependency, Cache[“Item”], Cache.Insert, SqlDependency Trace: <trace enabled=”true” pageOutput=”false” requestLimit=”20” traceMode=”SortByTime” localOnly=”true”/>
trace is between Begin_Load and End_Load Tools:
Firebug, YSlow, IE WebDeveloper, dotTrace or ANTS, PositionLsEverything.net, QuicksMode.org, HTMLDog.com, www.asp.net, Refactor! for ASP.NET, CSS minimal(from www.asp.net), ASPX Edit Helper plugin, Power Toys Pack Installer ELMAH:错误记录模块和处理程序
ISAPI_Rewrite Telerik:在线代码编辑器, www.codechanger.com
WinMerge
Differencing,
Reflector,
CR_Documentor: xml in visual studio
Process Explorer
相关文档:
获取网站根目录的方法有几种如:
Server.MapPath(Request.ServerVariables["PATH_INFO"])
Server.MapPath("/")
Server.MapPath("")
Server.MapPath(".")
Server.MapPath("../")
Server.MapPath("..")
&nb ......
1.重载protected override bool OnBubbleEvent(object source, EventArgs args)
OnBubbleEvent是控件内包含的控件向外层控件作事件冒泡
-------------------------------------------------------------------------------------------------------------------------------------------
using System;
using System.Co ......
1. Web.config中添加:
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
2. 頁面中添加:
<head>
<meta http-equiv="Content-Type" content="charset=utf-8&qu ......
这段时间,老大在看了网站后,发现viewstate所产生的一堆乱码,严重影响了我们网站http://www.xbcar.net 西部汽车网的打开速度和搜索引擎的抓取.就给我下了道铁令,三天内必须解决.这下该轮到我头大了,
例如:
input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="dEV4cHJlc3Npb247UmVhZE9ub ......
1. 注册js函数
String scriptString = "<script language=JavaScript>function doClick(){";
scriptString += "for(var index=0;index<myArray.length;index++)";
scriptString += "alert(myArray[index]);}<";
scriptString += "/" + "script>";
ClientScript.RegisterStartupScript(typeof(WebForm2) ......