博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

03 2007 档案

摘要:section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> ... 阅读全文

posted @ 2007-03-29 00:15 Snapping 阅读(195) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/donkeyzheng/archive/2006/09/14/1222581.aspx 阅读全文

posted @ 2007-03-29 00:08 Snapping 阅读(167) 评论(0) 推荐(0)

摘要:Error info:WS-Metadata Exchange Error URI: http://localhost:8080/WCFTest/Service.svcHTTP GET Error URI: http://localhost:8080/WCFTest/Service.svc在service的web.config中添加 ... 阅读全文

posted @ 2007-03-27 18:10 Snapping 阅读(347) 评论(1) 推荐(0)

摘要:USE SnappingTestGO CREATE TABLE DBO.FreeGift( FreeGiftID int identity(1,1) not null, FreeGiftType char(1) not null default('')) alter table dbo.FreeGift add constraint PK_FreeGift primary key (FreeGif... 阅读全文

posted @ 2007-03-27 14:08 Snapping 阅读(248) 评论(0) 推荐(0)

摘要:摘录自http://www.developer.com/net/cplus/article.php/1479761: The following list outlines some of the major differences between .NET Remoting and Web services that will help you to decide when to use one... 阅读全文

posted @ 2007-03-27 12:05 Snapping 阅读(216) 评论(0) 推荐(0)

摘要:update sls.dbo.newegg_somasterset sodate = getdate()from sls.dbo.newegg_somaster ainner join sls.dbo.newegg_soTransaction bon a.sonumber = b.sonumberwhere a.sonumber = 1779881 阅读全文

posted @ 2007-03-27 09:24 Snapping 阅读(141) 评论(0) 推荐(0)

摘要:http 协议一共有4种方式:其中两种是 GET 和 POST,另外两个不常用。 get 是通过附加在 url 后面,以查询字符串的方式,来发送请求 比如你写一个 发出请求时,效果完全等同于 xxx.asp?username=snapping 这样一个请求 get 因为 url 长度有限制,所以可以传输的东西是比较少的并且有一定的限制。 post 呢,本质上是通过附加 http header... 阅读全文

posted @ 2007-03-26 14:55 Snapping 阅读(274) 评论(0) 推荐(0)

摘要:[DllImport("user32.dll")] private static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam); private int GetLineCount(TextBox txt) { return SendMessage(txt.Handle, 0xBA, 0, ... 阅读全文

posted @ 2007-03-26 14:48 Snapping 阅读(248) 评论(0) 推荐(0)

摘要:JsSelect.html New Document Options.html New Document " class="btn" onclick="sele... 阅读全文

posted @ 2007-03-26 00:41 Snapping 阅读(755) 评论(2) 推荐(0)

摘要:为类实现复制方法。下面方法只是对成员变量,属性实现复制。有空还需要将方法等补上。 private static void CopyObject(object src, object des) { System.Type objType = src.GetType(); foreach (PropertyInfo pi in objType.GetPropertie... 阅读全文

posted @ 2007-03-23 09:27 Snapping 阅读(208) 评论(0) 推荐(0)

摘要:并非所有的非贪婪匹配都存在效率问题!! 以下文章有详细介绍,原文地址 http://blog.csdn.net/dbigbear/archive/2006/12/25/1461099.aspx 2. 非贪婪匹配的效率 可能有不少的人和我一样,有过这样的经历:当我们要匹配类似 "内容" 或者 "[b]加粗[/b]" 这样的文本时,我们根据正向预搜索功能写出这样的表达式:"([^))*"... 阅读全文

posted @ 2007-03-23 08:56 Snapping 阅读(220) 评论(0) 推荐(0)

摘要:在aspx的cs文件中使用静态变量保存currentPageIndex, 导致每个客户端的currentPageIndex共享同一个。 阅读全文

posted @ 2007-03-21 16:50 Snapping 阅读(204) 评论(0) 推荐(0)

摘要:aspx的cs文件中注册Javascript txtPageIndex.Attributes.Add("onFocus", string.Format("{0}.select();", txtPageIndex.ClientID)); txtPageIndexBack.Attributes.Add("onFocus", string.Format("{0}.select();", txtPa... 阅读全文

posted @ 2007-03-21 16:46 Snapping 阅读(364) 评论(1) 推荐(0)

摘要:SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GO /*--利用SQL未公开的存储过程实现分页 方法简单且效率高,已知的问题就是要多返回一个空的记录集 解决的方法是在前台调用时,用 set recordset=recordset.nextrecordset的方法跳过第一个记录集 此方法由J9988提供,我只是将它改成了方便调用的存储过程... 阅读全文

posted @ 2007-03-21 16:36 Snapping 阅读(258) 评论(0) 推荐(0)