摘要: 解决办法:在from里加上:enctype="multipart/form-data "告诉表单如何格式化文件信息 阅读全文
posted @ 2012-01-11 10:37 匆匆夏日 阅读(962) 评论(0) 推荐(0) 编辑
摘要: 本方法是基于:select top 10 * from (select top 32 * from TD_Articles order by ID desc) where order by ID desc产生的,此方法已经过测试1.方法如下:View Code #region 获取当前页显示记录 /// <summary> /// 获取当前页显示记录 /// </summary> /// <param name="pageIndex">当前页码</param> /// <param name="pageSize 阅读全文
posted @ 2011-12-29 16:51 匆匆夏日 阅读(549) 评论(2) 推荐(0) 编辑
摘要: /// <summary> /// 图像处理类 /// </summary> public static class ImageHandler { /// <summary> /// 生成缩略图 /// </summary> /// <param name="originalImagePath">源图路径(物理路径)</param> /// <param name="thumbnailPath">缩略图路径(物理路径)</param> /// <para 阅读全文
posted @ 2011-12-27 16:45 匆匆夏日 阅读(909) 评论(2) 推荐(0) 编辑
摘要: 1.使用存储过程:exec sp_msforeachtable 'sp_changeobjectowner ''shanlin'', ''dbo''' 阅读全文
posted @ 2011-12-23 17:24 匆匆夏日 阅读(231) 评论(0) 推荐(0) 编辑
摘要: const 和 readonly 的区别,总是不太清楚,于是查了查资料。 const 的概念就是一个包含不能修改的值的变量。常数表达式是在编译时可被完全计算的表达式。因此不能从一个变量中提取的值来初始化常量。如果 const int a = b+1;b是一个变量,显然不能再编译时就计算出结果,所以常量是不可以用变量来初始化的。 readonly 允许把一个字段设置成常量,但可以执行一些运算,可以确定它的初始值。因为 readonly 是在计算时执行的,当然它可以用某些变量初始化。readonly 是实例成员,所以不同的实例可以有不同的常量值,这使readonly更灵活。readonly 关键字 阅读全文
posted @ 2011-11-01 16:23 匆匆夏日 阅读(443) 评论(1) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript"> function clickMail() { if 阅读全文
posted @ 2011-10-28 10:48 匆匆夏日 阅读(577) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Text;using System.Ne 阅读全文
posted @ 2011-10-10 12:28 匆匆夏日 阅读(752) 评论(0) 推荐(0) 编辑
摘要: html前台代码为:View Code div class="mainsearch clearfix"> <form method="post" name="CatalogSearchForm" action='proList.aspx' id="CatalogSearchForm"> <div class="searcharea"> <input type="text" onfocus="$('#sea. 阅读全文
posted @ 2011-09-27 09:11 匆匆夏日 阅读(1596) 评论(0) 推荐(0) 编辑
摘要: select b.*,(select count(a.id) from td_product a where a.protypeid=b.id) num from td_protype b 阅读全文
posted @ 2011-09-27 08:16 匆匆夏日 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.不同时间段显示不同问候语 <Script Language="JavaScript"> <!-- var text=""; day = new Date( ); time = day.getHours( ); if (( time>=0) && (time < 7 )) text="夜猫子,要注意身体哦! " if (( time >= 7 ) && (time < 12)) text="今天的阳光真灿烂啊,你那个朋友呢?" if (( time >= 12) && 阅读全文
posted @ 2011-08-25 09:16 匆匆夏日 阅读(504) 评论(1) 推荐(0) 编辑