摘要: 今天有个小web需要php环境运行,为了配置,下了番苦功!终于可以显示了:我们知道php配置有几种:1、CGI方式加载PHP环境,通常就是IIS里面配置解释器为php.exe,早期比较常见,目前使用较少。 特点是:稳定,但效率太低。 2、ISAPI方式加载PHP环境,通常就是IIS里面配置解释器为php5isapi.dll,目前使用最多,应用最广。 特点是:多线程,效率较高,但不够稳定。 3、FastCGI方式加载PHP环境,在IIS环境里并不常见,但其它系统环境应用还是有的,不过IIS7.0开始内置FastCGI了。 特点是:高效率,高稳定性,属于将来发展趋势。我试过其他的特别麻烦,PHP 阅读全文
posted @ 2010-03-05 16:52 曾祥展 阅读(175616) 评论(54) 推荐(25)
摘要: 分页是Web应用程序中最常用到的功能之一,AspNetPager 简单实用,应用到项目后台中,棒极了!自定义样式:<style type="text/css">/*拍拍网风格*/.paginator { font: 11px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}.paginator a {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;margin- 阅读全文
posted @ 2010-03-03 19:28 曾祥展 阅读(33683) 评论(29) 推荐(13)
摘要: 如果你要COPY站点,进行站点维护,部署,和进行大量修改,有可能要停掉你的WEB应用程序了,而以一个友好的方式提示给用户,比如什么“本网站正在更新”等等的信息可以建立一个叫app_offline.htm (大小写没关系)的静态HTM页面文件,其中修改成你要临时显示的内容,将其放在你的应用的根目录下。这样,任何外部的请求的话,都会马上被转移到该页面了。这个时候,你的网站依然可... 阅读全文
posted @ 2010-03-01 15:00 曾祥展 阅读(2487) 评论(0) 推荐(1)
摘要: 文件上传 带进度条 多种风格 非常漂亮! 友好的提示 以及上传验证! 部分代码: upload.aspx: 代码就不贴完了 直接打包下载吧! 有关上传的都归类在这里了:http://www.cnblogs.com/zengxiangzhan/category/269831.html 目前 流行: 百 阅读全文
posted @ 2010-02-28 15:07 曾祥展 阅读(102348) 评论(173) 推荐(49)
摘要: 鼠标滑过小图时,左侧前四张大图可以,但是最后那张大图无法展示: falsh产品展示需要通过参数传递,把关联产品id的图片get出来,如: http://192.168.8.166:90/category/prod_img.aspx?prodid=101 结果: Flash需要上面图片的那一大串数据! 所有的图片都get出来了 为什么最后那张大图就不能显示呢?那就郁闷奇怪了?首先说明一下 fa... 阅读全文
posted @ 2010-02-25 17:32 曾祥展 阅读(1931) 评论(3) 推荐(2)
摘要: 素材: 阅读全文
posted @ 2010-02-25 11:57 曾祥展 阅读(5784) 评论(0) 推荐(1)
摘要: 下载模板 阅读全文
posted @ 2010-02-25 09:18 曾祥展 阅读(3868) 评论(4) 推荐(5)
摘要: FlyTreeView的外观俏丽,性能也最为丰富,可谓精雕细琢。先一睹为快!ASP.NET的FlyTreeView(版本2.0,3.0,3.5,4.0)是一种快速,更轻,功能齐全的AJAX TreeView控件。此控件提供给开发者用于tree数据的列层次最强大的解决方案。灵活的外观选项为能够创建独特的树状外观。内置自定义图片,每个样式或行为类型设置可以很容易地定制。有效的客户端(Ajax)模型和现代服务器端(ASP.NET)让开发人员将网络应用提高用户体验。主要特点跨浏览器的执行情况(即的Firefox,Mozilla,Opera,Safari和谷歌浏览器)。符合标准的XHTML 1.1标记。 阅读全文
posted @ 2010-02-22 17:20 曾祥展 阅读(4368) 评论(14) 推荐(3)
摘要: <asp:DropDownList ID="ddl1" runat="server" Width="100px" ></asp:DropDownList> <asp:DropDownList ID="ddl2" runat="server" Width="100px" ></asp:DropDownList> <asp:DropDownList ID="ddl3" runat="server& 阅读全文
posted @ 2010-02-21 17:21 曾祥展 阅读(8275) 评论(15) 推荐(3)
摘要: jQuery - 中文輸入法與KeyDown/KeyPress事件 JavaScript数组采用从0开始, eq(1)取得的是集合中的第二个元素; CSS 则是从1开始,css选择符$('div:nth-chind(1)')取得的是作为其父元素第一个子元素的所有div 替换logo图片: $("#blogLogo").attr("src","logo.png"); button替换成image类型: 代码: $("#btnZzk").hide(); $(".div_my_zzk" 阅读全文
posted @ 2010-02-20 10:05 曾祥展 阅读(1559) 评论(0) 推荐(0)
摘要: js:<scripttype="text/javascript">functiononUpdating(){varupdateProgressDiv=document.getElementById('upCustomer');vargridView=document.getElementById('gvUpdateProgress');vargridViewBounds=Sys.UI.... 阅读全文
posted @ 2010-02-19 16:50 曾祥展 阅读(1221) 评论(1) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Text; using System.Text.RegularExpressions; namespace WebApplication1 { /// /// 汉字转拼音类 /... 阅读全文
posted @ 2010-02-09 20:24 曾祥展 阅读(2378) 评论(5) 推荐(3)
摘要: declare@tvarchar(255),@cvarchar(255)declaretable_cursorcursorforselecta.name,b.namefromsysobjectsa,syscolumnsb,systypescwherea.id=b.idanda.xtype='u'andc.namein('char','nchar','nvarchar','varchar','text','ntext')declare@strvarchar(500),@str2varc 阅读全文
posted @ 2010-02-08 08:18 曾祥展 阅读(2372) 评论(0) 推荐(2)
摘要: function ClientSideStrongPassword(value) { var num = 1; if (value.trim().length == 0) { return num; } if (value.length > 0 && value.length ,=... 阅读全文
posted @ 2010-02-04 14:36 曾祥展 阅读(5290) 评论(155) 推荐(8)
摘要: -->测试数据:[tb]ifobject_id('[tb]')isnotnulldroptable[tb]gocreatetable[tb]([姓名]varchar(1),[部门]varchar(4),[学历]varchar(4),[出生年月]datetime)insert[tb]select'A','后勤','高中','1986-1-1'unionallselect'B','后勤','初中','1984-3-7'unionallselect&# 阅读全文
posted @ 2010-02-04 11:00 曾祥展 阅读(4070) 评论(1) 推荐(2)
摘要: 代码:实体类product.cs: 阅读全文
posted @ 2010-02-03 09:22 曾祥展 阅读(1444) 评论(0) 推荐(0)
摘要: 问题浏览器DEMO解决方法1input[button | submit] 不能用 margin:0 auto; 居中IE8bug | fixed为input添加width2body{overflow:hidden;}没有去掉滚动条IE6/7bug | fixed设置html{overflow:hidden;}3hasLayout的标签拥有高度IE6/7bug | fixed*height:0;_overflow:hidden;4form>[hasLayout]元素有margin-left时,子元素中的[input | textarea] 出现2×margin-leftIE6/7 阅读全文
posted @ 2010-02-02 19:12 曾祥展 阅读(1108) 评论(0) 推荐(1)
摘要: Stream iStream = null; byte[] buffer = new Byte[10240];// 缓冲区块10K bytes : int length; long dataToRead; string filepath = @"E:\software\SQL Server 2000 Personal Edition.ISO"; ... 阅读全文
posted @ 2010-01-30 13:15 曾祥展 阅读(868) 评论(0) 推荐(0)
摘要: 方法一: //须添加对System.Web的引用 using System.Web.Security; ... /// <summary> /// SHA1加密字符串 /// </summary> /// <param name="source">源字符串</param> /// <returns> 阅读全文
posted @ 2010-01-30 11:35 曾祥展 阅读(33883) 评论(11) 推荐(15)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Management;//添加引用 using System.IO; namespace ConsoleApplication1 { class Program { ... 阅读全文
posted @ 2010-01-30 11:14 曾祥展 阅读(14008) 评论(1) 推荐(1)
摘要: 问题描述: 安装程序安装到点击接受协议的时候弹出如下提示: 按照正常的话应该有序列号输入框,现在没有,怀疑与我安装的vs08 的 product key有冲突。 Google Baidu 都用上了,网上还是找不到有过与我一样出现的问题。 解决方案: 种种尝试,确定与08的key冲突! 定位注册表:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualSt... 阅读全文
posted @ 2010-01-28 22:11 曾祥展 阅读(2739) 评论(0) 推荐(1)
摘要: FlyTreeView的外观俏丽,性能也最为丰富,可谓精雕细琢。先一睹为快!破解后 没有文字水印 ,没有过期无法运行情况 图片如下: 原版有文字水印在左上角上,并且过了期限就不能运行 图片如下:过期后无法运行: 过程手记:打开--vs2008 程序-Microsoft Windows SDK v6.0A—Tools--IL 反汇编程序把所用的dll生成.il文件 打开il文件 k掉836 - 846.publickey = (00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 // .$..............00 24 00 00 52 53 阅读全文
posted @ 2010-01-27 21:54 曾祥展 阅读(618) 评论(0) 推荐(0)
摘要: <div class=wpn_wrapper><div class=wpn_right><span class=wpn_heading2> Friends <A class="wpn_toggle-expand wpn_toggle-hide wpn_wpn_toggle-hide" href="#"></A> </span><div style="DISPLAY: block" class="wpn_box wpn_expandable" 阅读全文
posted @ 2010-01-21 11:57 曾祥展 阅读(6110) 评论(3) 推荐(2)
摘要: 阅读全文
posted @ 2010-01-21 10:43 曾祥展 阅读(1160) 评论(0) 推荐(1)
摘要: using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Xml; using System.Xml.XPath; public class XmlHelper { private X... 阅读全文
posted @ 2010-01-19 21:26 曾祥展 阅读(734) 评论(0) 推荐(1)
摘要: 原版只能用30天,这个破解版可以长期用了(设置了时间2010-2110). 注册控件:调用控件:后台代码: 阅读全文
posted @ 2010-01-18 20:53 曾祥展 阅读(7713) 评论(37) 推荐(4)
摘要: 例子1:例子2-1:例子2-2:JS:请看效果:例子1: 迅雷下载 例子2-1: 例子2-2: 迅雷专用高速下载2 阅读全文
posted @ 2010-01-16 13:13 曾祥展 阅读(8155) 评论(0) 推荐(1)
摘要: 浏览-选择文件-点击 “上传 ”后,效果如下:弹出透明UI遮罩层 并显示上传这个过程 我这里设置太透明了 效果不是很立体 文件结构如图: 说明:用到“高山来客”的大文件上传组件 http://www.cnblogs.com/bashan/archive/2008/05/23/1206095.html以及Newtonsoft.Json.dll Json字符串反序列化为对象 http://james.newtonking.com/projects/json-net.aspxjquery.blockUI.js 弹出透明遮罩层 http://malsup.com/jquery/block/jquery 阅读全文
posted @ 2010-01-14 16:27 曾祥展 阅读(22786) 评论(60) 推荐(24)
摘要: default.aspx.cs: 点击商品 URL:http://localhost:3052/WebSite1/product/item=33点击注册 URL:http://localhost:3052/WebSite1/Registration 阅读全文
posted @ 2010-01-07 11:49 曾祥展 阅读(798) 评论(0) 推荐(0)
摘要: /**得到字符串的字符长度(一个汉字占两个字符长)*/ functiongetBytesLength(str){//在GBK编码里,除了ASCII字符,其它都占两个字符宽returnstr.replace(/[^x00-xff]/g,'xx').length;}/***根据字符长来截取字符串*/functionsubStringByBytes(val,maxBytesLen){varlen=maxBytesLen;varresult=val.slice(0,len);while(getBytesLength(result)>maxBytesLen){result=resu 阅读全文
posted @ 2010-01-06 19:31 曾祥展 阅读(457) 评论(0) 推荐(0)