2011年10月13日

仿新浪微博“大家正在说”渐入轮显滚动效果

摘要: <title>仿新浪微博“大家正在说”渐入轮显滚动效果</title><!--把下面代码加到<head>与</head>之间--><style type="text/css">*{margin:0;padding:0;}ul,li{list-style-type:none;}body{font-size:13px;background-color:#999999;}#con{width:400px;height:300px;margin:10px auto;position:relative;borde 阅读全文

posted @ 2011-10-13 09:40 缘来 阅读(456) 评论(0) 推荐(0)

2011年10月9日

GRBA 颜色通明通道rgba(220,220,220,0.2)

摘要: rgba(220,220,220,0.2) 阅读全文

posted @ 2011-10-09 12:54 缘来 阅读(1940) 评论(0) 推荐(0)

2011年9月15日

SQL 去年同期数据

摘要: 依照年份查询数据,并依照月份进行合计,并且关联出本月的往年数据sselect 月份=Datepart(mm,EndTime), 人数=sum(PersonAmount), 销售金额=sum(TotalMoney), 人均消费金额=(sum(TotalMoney)/sum(PersonAmount)),上年同期=(select sum(TotalMoney) from BillTest where Datepart(mm,EndTime)=Datepart(mm,ta1.EndTime) and convert(Varchar(4),EndTime,20)='2010')from 阅读全文

posted @ 2011-09-15 13:50 缘来 阅读(2597) 评论(0) 推荐(0)

2011年9月6日

Linq 增删改基本操作

摘要: static DataServerDataContext cpt = new DataServerDataContext(); public List<ProductModel> GetProduct() { // GetProductDataContext cpt=new GetProductDataContext(); var query = from p in cpt.product select p; List<ProductModel> products = new List<ProductModel>(); foreach (var item i 阅读全文

posted @ 2011-09-06 10:35 缘来 阅读(187) 评论(0) 推荐(0)

2011年8月24日

excel 导入SQL

摘要: 一、在程序中,用 ADO.NET。代码如下: //连接串 string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=Excel 8.0;Data Source=" + [EXCEL文件,含路径] + ";"; OleDbConnection conn = new OleDbConnection(strConn); conn.Open(); DataTable dtSchema = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Table 阅读全文

posted @ 2011-08-24 09:35 缘来 阅读(202) 评论(0) 推荐(0)

2011年8月8日

身份证号码验证

摘要: <head runat="server"> <title>无标题页</title> <script type='text/javascript' src='JS.js'></script></head><body> <form id="form1" runat="server"> <div> 请输入身份证号码: <input name='card_no' type=' 阅读全文

posted @ 2011-08-08 14:01 缘来 阅读(680) 评论(0) 推荐(0)

2011年8月3日

正则表达式集锦

摘要: if (Regex.IsMatch(string input, string pattern)) stringphone=@"^(13[0-9]|15[0-9]|18[0|2|5|6|7|8|9])\d{8}$"; //手机号码 string email = @"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";//E_mail stringcardID1s = @"^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$";//15位 阅读全文

posted @ 2011-08-03 14:41 缘来 阅读(152) 评论(0) 推荐(0)

2011年8月2日

滚动显示图片

摘要: <div id="www_qpsh_com" style="overflow:hidden;height:278px;width:949px; margin-left:50px;"><table cellspacing="0" cellpadding="0" style="width: 680px; border :0px;"><tr><td id="www_qpsh_com1" ><table style="b 阅读全文

posted @ 2011-08-02 12:42 缘来 阅读(175) 评论(0) 推荐(0)

2011年8月1日

javascript 获取焦距触发按钮事件

摘要: <script type="text/javascript"> document.onkeydown=function(e) { e=e?e:window.event; var keyCode=e.which?e.which:e.keyCode; if(keyCode==13) { if(document.getElementById("tbxName").value == "") { document.getElementById("tbxName").focus(); } else if(docum 阅读全文

posted @ 2011-08-01 12:52 缘来 阅读(336) 评论(0) 推荐(0)

2011年7月8日

asp生成PDF不使用插件

摘要: using System.IO;using System.Text ;public partial class Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } static float pageWidth = 594.0f; static float pageDepth = 828.0f; static float pageMargin = 30.0f; static float fontSize = 20.0f; static float leadSize = 10 阅读全文

posted @ 2011-07-08 14:20 缘来 阅读(1122) 评论(0) 推荐(0)

导航