摘要: 1.<img>控件 加上runat="server"修改后:<img src="images/footlogo.jpg" runat="server" />2.<a>控件加上runat="server"修改后:<a href="Report/WCDMAHSDPA.aspx" runat="server">WCDMA HSDPA</a>3.javascript路径的问题,加一段<%=Request.Applica 阅读全文
posted @ 2013-02-28 10:52 jeffrey77 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 在WebForm时代,CheckBoxList和RadioButtonList都非常容易实现。不得不承认,这两个控件还是非常实用的。但是在MVC中并没有相关的支持,可能微软觉得没必要了吧,不过真的有人讲这个功能完成了。代码摘抄自狼奔代码生成器。地址是:http://www.cnblogs.com/langben有兴趣的可以研究下。CheckBoxListHelper:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;using System.Web 阅读全文
posted @ 2013-01-14 08:52 jeffrey77 阅读(142) 评论(0) 推荐(0) 编辑
摘要: using System.Management; using System.Management.Instrumentation; /// <summary> /// 获取cpu序列号 /// </summary> /// <returns> string </returns> public string GetCpuInfo() { string cpuInfo ... 阅读全文
posted @ 2012-12-08 20:13 jeffrey77 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 官网http://twitter.github.com/bootstrap/index.html中文文档http://wrongwaycn.github.com/bootstrap/docs/index.html简介http://www.w3cplus.com/css/bootstrap-twitter案例http://www.jshint.com/http://www.fleetio.com/index2https://kippt.com/http://soundready.fm/皮肤http://wrapbootstrap.com/http://bootswatch.com/http:// 阅读全文
posted @ 2012-10-26 13:07 jeffrey77 阅读(373) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 取得某月的第一天 /// </summary> /// <param name="datetime">要取得月份第一天的时间</param> /// <returns></returns> private DateTime FirstDayOfMonth(DateTime datetime) { return datetime.AddDays(1 - datetime.Day); } /**//// <summ... 阅读全文
posted @ 2012-10-17 11:44 jeffrey77 阅读(298) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;using System.IO;namespace test_CryptoGraphy{ class Program { /// <summary> /// MD5 加密静态方法 /// </summary> /// <param name="EncryptString">待加密的... 阅读全文
posted @ 2012-10-16 14:30 jeffrey77 阅读(197) 评论(0) 推荐(0) 编辑
摘要: namespace Web.Mvc.Extensions { #region 验证基类 /// <summary> /// 通用验证基类 /// </summary> public abstract class EntityValidationAttribute : ValidationAttribute { #region Constructors public EntityValidationAttribute(MessageType messageId, params object[] args) : ... 阅读全文
posted @ 2012-08-17 22:06 jeffrey77 阅读(234) 评论(0) 推荐(0) 编辑
摘要: <SCRIPT LANGUAGE="JavaScript"><!--function formatFloat(src, pos){ return Math.round(src*Math.pow(10, pos))/Math.pow(10, pos);}alert(formatFloat("1212.2323", 2));//--></SCRIPT> 阅读全文
posted @ 2012-07-30 13:49 jeffrey77 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 正常情况下(要求not in字段唯一)selecttoppageSize*formtablewhereidnotin (selecttoppageSize*page-pageSizeidfromtableorderbyid)orderbyid 如果为联合主键selecttoppageSize*formtablewhereid1+id2notin (selecttoppageSize*page-pageSizeid1+id2fromtableorderbyid)orderbyid 阅读全文
posted @ 2012-07-26 15:34 jeffrey77 阅读(215) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE proc_pagination(@tblName nvarchar(1000), ----要显示的表或多个表的连接,必须参数@fldName nvarchar(4000) = '*', ----要显示的字段列表@fldSort nvarchar(4000) = null, ----排序字段列表或条件@fldFSort nvarchar(4000) = null, ----反向排序字段列表或条件(这个需要在调用前准备好,且一定要与原始排序完全相反)@strCondition nvarchar(4000) = null, ... 阅读全文
posted @ 2012-07-26 15:26 jeffrey77 阅读(232) 评论(0) 推荐(0) 编辑