摘要:
页面: 局部缓存查询的点击量:<asp:Substitution ID="Substitution1" runat="server" MethodName="GetClicks" /> 后台: //局部缓存 public static string GetClicks(HttpContext con 阅读全文
摘要:
页面: <asp:Label ID="lblId" runat="server" Text="Label"></asp:Label> <asp:Label ID="lblTitle" runat="server" Text="Label"></asp:Label> <asp:Label ID="lb 阅读全文
摘要:
页面: <%-- 缓存设置 --%> <%@ OutputCache Duration="30" VaryByParam="none" %> <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="true" OnSelectedInd 阅读全文
摘要:
1、可选参数和命名参数 1.1可选参数 语法: [修饰符] 返回类型 方法名(必选参数n,可选参数n) 注意: 1.必选参数可以不存在,也可以有多个;可选参数可以有1个或多个 2.可选参数必须放在必选参数之后 3.可选参数在定义时需要赋初始值 4.可选参数之间也需要使用,进行分隔 5.调用可选参数时 阅读全文