06 2013 档案
摘要:1.Bootstrap使用教程相关教程:http://www.bootcss.com/components.html页面使用代码:2.angularjsvarapp = angular.module("ControlState", []);app.controller("Home/Login",function($scope,$window) {$scope.login =function(user) {varurl="@Url.Action("Login","Home")";$.post(ur
阅读全文
摘要:#include <stdio.h>#include <stdlib.h>#include<windows.h>char GetSystemDisk(){ char str[255]; GetSystemDirectory(str, 255); return str[0];}char* merge(char *s1,char *s2,char* des){ int length1=strlen(s1); int length2=strlen(s2); int sumLength=length1+length2; des=(char *)malloc(size
阅读全文
摘要:最普遍的情况:等级不一样等级的人,他们对一个方法(Action)的权限不一样.说明:有的等级能访问该方法,有的等级不能访问,有的等级只能部分访问:此处不考虑因为设计耦合度高).针对于这种情况,人分等级(不一样的角色).最后我们根据权限树(不一定是xml)来决定该方法是否属于某一等级<?xmlversion="1.0"encoding="utf-8"?><Roles><Controllername="Home"><Actionname="Index"></Acti
阅读全文
摘要:<system.web> <!--这里设置身份验证信息--> <authenticationmode="Forms"> <formsloginUrl="/Login/Login"timeout="2880"name="LyIng.Net"/> </authentication> if(CheckLogin.Instance.Login(UserName,PassWord)) { Users ModelUser =newUsers(){ID =10000,N
阅读全文
摘要:1.效果图(Ajax分页)(dynamic无视linq)(数据更新)2.后台代码实例View Code /**由SharpDevelop创建。*用户:秦仕川*日期:2013-4-20*时间:9:23**要改变这种模板请点击工具|选项|代码编写|编辑标准头文件*/usingSystem;usingSystem.Collections.Generic;usingSystem.Web.Mvc;usingMoon.Orm;usingmynorthdb;namespaceRazor.Moon.Controllers{publicclassHomeController:Controller{publicA
阅读全文
摘要:1.Moon.Orm的自动实体查询方案using System;using Moon.Orm;using System.Windows.Forms;using North;using System.Diagnostics;using System.Collections.Generic;namespace Demo{ class Program { public static readonly Stopwatch sp=new Stopwatch(); public static void Main(string[] args) { Moon.Orm.GlobalData.AUTO_...
阅读全文
摘要:第一部分 客户端篇1.压缩js、css,将js的引入放在之前;2.合并一个页面下的js/css文件,压缩传输.(SquishIt)相关博文3.ajax技术应用.ajax可以做到精准定量的请求,可以减少非必须资源的请求和重复请求.4.页面压缩传输技术(将页面数据进行压缩.IIS支持gzip压缩)5.统...
阅读全文