摘要: --取出点击量最高的文章100篇,每个作者不超过5篇 selecttop100 id,title,tips,author from ( select*,cnt=row_number() over (partition by author orderby tips desc) from tb ) t where cnt 11 then substring(a.Phone, 3, 11) else a.Phone end=b.phone and b.cnt=1 阅读全文
posted @ 2010-01-03 10:50 曾祥展 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Text;public partial class pay : Sys 阅读全文
posted @ 2009-12-31 15:37 曾祥展 阅读(1744) 评论(2) 推荐(2) 编辑
摘要: /// /// 通用数据库接口 /// using System; using System.Collections; using System.Collections.Specialized; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Data.Comm... 阅读全文
posted @ 2009-12-31 15:03 曾祥展 阅读(18108) 评论(18) 推荐(7) 编辑
摘要: //多个代理背后的ip地址文件名:IPAddress.csusing System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Text.RegularExpressions;namespa 阅读全文
posted @ 2009-12-31 14:15 曾祥展 阅读(3004) 评论(3) 推荐(2) 编辑
摘要: using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using Syste... 阅读全文
posted @ 2009-12-31 08:20 曾祥展 阅读(1687) 评论(2) 推荐(1) 编辑
摘要: usi... 阅读全文
posted @ 2009-12-27 22:47 曾祥展 阅读(1634) 评论(6) 推荐(1) 编辑
摘要: 水印在图片中心 这个图只截取了一部分 阅读全文
posted @ 2009-12-27 17:22 曾祥展 阅读(3408) 评论(0) 推荐(1) 编辑
摘要: 登录的时候先取cookie,取到就加1.然后保存。防止同一账户重复登录放在登陆成功的地方:stringkey=TextBox1.Text;//用户名文本框设为cache关键字stringuer=Convert.ToString(Cache[key]);//读取cache中用户相应的值if(uer==null||uer==String.Empty)//判断cache中是否有用户的信息,如果没有相关的... 阅读全文
posted @ 2009-12-23 18:52 曾祥展 阅读(4387) 评论(2) 推荐(1) 编辑
摘要: 一个外层div ScriptManager1 UpdatePanel1 GridView1 Triggers html: 阅读全文
posted @ 2009-12-23 10:23 曾祥展 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 官方网没有.net版本 只有php版 下面是.net版css:js:html:后台:Upload.cs:Web.config:实现IHttpHandler 接口可用.axd直接访问在开发一个上传客户端的时间,实现了IHttpHandler 封装一个新类。目的是给外部程序(如flash,flex,javascrtip)访问。不需要建立html、aspx形式文件。web.config配置<sys... 阅读全文
posted @ 2009-12-22 21:43 曾祥展 阅读(5303) 评论(40) 推荐(0) 编辑
摘要: using System.Text.RegularExpressions; //正则string strHtml = " </ul> <div id=\"photo-tags\"> <h3 id=\"tags-title\">Tags in this photo: </h3> <ul id='tags'> <li> <a href='/user/669345/tags/Belgium'>Belgium </a> < 阅读全文
posted @ 2009-12-21 22:38 曾祥展 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 设置jmail服务器: 用户名邮箱 | 密码 | 服务器 <add name="email" connectionString="itn0300012@the-capable.com.cn|666666|192.168.8.8" /><add name="emailac1" connectionString="itn0300012@the-capable.com.cn" />Outlook Express—工具—账户常规--邮件账户:服务器--POP3: 阅读全文
posted @ 2009-12-21 14:53 曾祥展 阅读(443) 评论(0) 推荐(0) 编辑
摘要: cs: web.confing: 阅读全文
posted @ 2009-12-21 11:24 曾祥展 阅读(4654) 评论(102) 推荐(4) 编辑
摘要: 阅读全文
posted @ 2009-12-18 08:25 曾祥展 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 调用:<TD bgColor=#ecf5ff colSpan=2> <INPUT type=hidden name=content> <IFRAME id=eWebEditor1 height=450 src="../EwebEditor/ewebeditor.htm?id=content&amp;style=southidc" frameBorder=0 width=550 scrolling=no> </IFRAME> </TD>问题:出现无法上传 因为不是在asp环境下 如图 解决:IIS下配置 多个 阅读全文
posted @ 2009-12-17 17:37 曾祥展 阅读(3695) 评论(4) 推荐(0) 编辑
摘要: JS: 阅读全文
posted @ 2009-12-15 23:15 曾祥展 阅读(1142) 评论(2) 推荐(0) 编辑
摘要: 官方网:http://www.uploadify.com/ 只有PHP版本 对于我们.net的来说是一个遗憾!现在奉献一个c#版本,希望对大家有用。看代码其实很简单,在做这个之前遇到许多问题,特别是在IHttpHandler 里面,只有经历过了才会体会到,还是给解决了!直接运行html出现下面错误 要在vs运行下才没有下面错误 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.d 阅读全文
posted @ 2009-12-14 17:38 曾祥展 阅读(18605) 评论(107) 推荐(5) 编辑
摘要: 页面:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html 阅读全文
posted @ 2009-12-13 20:29 曾祥展 阅读(9360) 评论(30) 推荐(20) 编辑
摘要: html:WebService.cs: 阅读全文
posted @ 2009-12-05 19:52 曾祥展 阅读(896) 评论(0) 推荐(0) 编辑
摘要: /*a表 a.user_id a.name b表 b.user_id b.name c表 c.user_id c.user_type 当c表的 c.user_type = "a" 时 它显示 a表的 a.name 当c表的 c.user_type = "b" 时 它显示 b表的 b.name a,b,c表中的 a.user_id = c.user_id,b.user_id = c.user_id ... 阅读全文
posted @ 2009-12-05 11:10 曾祥展 阅读(7889) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript">var year = new Date().getFullYear();var month = new Date().getMonth();var result = [];for(var i = 1; i <= 31; i++){ var weekday = new Date(year, month, i).getDa... 阅读全文
posted @ 2009-12-05 09:46 曾祥展 阅读(958) 评论(0) 推荐(0) 编辑
摘要: sql语句优化性能不理想的系统中除了一部分是因为应用程序的负载确实超过了服务器的实际处理能力外,更多的是因为系统存在大量的SQL语句需要优化。为了获得稳定的执行性能,SQL语句越简单越好。对复杂的SQL语句,要设法对之进行简化。常见的简化规则如下:1)不要有超过5个以上的表连接(JOIN)2)考虑使... 阅读全文
posted @ 2009-12-04 17:58 曾祥展 阅读(40304) 评论(10) 推荐(39) 编辑
摘要: 没有弹出框 这样才有弹出对话框运行后,不论点击哪一个li,都是alert提示“4”。这就是一个需要注意的地方:闭包允许内层函数引用父函数中的变量,但是该变量是最终值。闭包引用的变量i,是循环结束后的值用闭包来解决<script language="javascript" type="text/javascript">var li=document.getElem... 阅读全文
posted @ 2009-12-02 20:38 曾祥展 阅读(5370) 评论(1) 推荐(3) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>舒服的颜色</title><meta http-equiv="Content-Type" content="tex 阅读全文
posted @ 2009-11-26 17:24 曾祥展 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 下载 阅读全文
posted @ 2009-11-24 22:04 曾祥展 阅读(1930) 评论(0) 推荐(0) 编辑
摘要: 引用COM:Microsoft Office 11.0 Object Library 引用类: using System; using System.Windows.Forms; using Excel = Microsoft.Office.Interop.Excel; 调用: private void button1_Click(objectsender, EventArgse) { Pict... 阅读全文
posted @ 2009-11-24 10:45 曾祥展 阅读(12303) 评论(6) 推荐(4) 编辑
摘要: --统计某月份周情况没有的补0ifobject_id('temp_tb')isnotnulldroptabletemp_tbcreatetabletemp_tb([ID][numeric](18,0)IDENTITY(1,1)NOTNULL,[test_values]intNULL,[time]datetimenull,);goinsertintotemp_tb([test_values],[ti... 阅读全文
posted @ 2009-11-24 09:27 曾祥展 阅读(3073) 评论(0) 推荐(0) 编辑
摘要: create table t( id int identity(1,1), name varchar(50),--商品名称 j int, --入库数量 c int, --出库数量 jdate datetime --入库时间 ) insert into t(name,j,c,jdate) select 'A',100,0,'2007-12-01' insert into t(name,j,c,jda... 阅读全文
posted @ 2009-11-22 15:22 曾祥展 阅读(4206) 评论(0) 推荐(0) 编辑
摘要: /* 作者:邹建 */ /*--同步两个数据库的示例 有数据 srv1.库名..author有字段:id,name,phone, srv2.库名..author有字段:id,name,telphone,adress 要求: srv1.库名..author增加记录则srv1.库名..author记录增加 srv... 阅读全文
posted @ 2009-11-15 09:36 曾祥展 阅读(3399) 评论(1) 推荐(3) 编辑
摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="... 阅读全文
posted @ 2009-11-13 12:06 曾祥展 阅读(5439) 评论(14) 推荐(1) 编辑