摘要: 腾讯开放平台公布了,很想尝试一下。开放平台目前提供三种组件:分享组件,应用组件和应用接入。 后面两个申请起来很麻烦。就先试验了下第一个。 将平台提供的js代码放到网站上 <a href="javascript:void(0);" onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?u... 阅读全文
posted @ 2010-09-18 18:32 今夜太冷 阅读(467) 评论(0) 推荐(1) 编辑
摘要: Exploring Claims-Based IdentityKeith BrownCode download available at: SecurityBriefs2007_09.exe (206 KB) Browse the Code Online Contents Finding Common Ground Traditional Representation of Client Ide... 阅读全文
posted @ 2010-01-04 16:10 今夜太冷 阅读(1267) 评论(0) 推荐(0) 编辑
摘要: 作者注:工厂类方法的例子参考了这位老兄的文章:http://www.cnblogs.com/fortune/archive/2007/09/12/890729.html这里是为了给大家展示一下工厂模式和扩展方法给大家编程带来的扩展性和灵活性。 啥也不说,直接上code :)先建立产品的抽象类:[代码]再建立具体的产品类:[代码]建立抽象工厂类:[代码]再建立具体工厂类:[代码]再建立个通用管理类:... 阅读全文
posted @ 2009-06-23 11:24 今夜太冷 阅读(1269) 评论(10) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-06-22 15:32 今夜太冷 阅读(660) 评论(0) 推荐(0) 编辑
摘要: txlicenhe 马可  一直没有关注它,今天刚学到的一招,还没彻底弄清楚。 情况是这样,有一个视图,用到了好几个表,其中一个表改了一些资料,在前台操作时总是超时过期(前台设置超时时间不长 60s)  今天用了一下: UPDATE STATISTICS 表名 再到前台操作就行了。  没想到这语句还可以解决超时问题。  lt1129 涛哥 更新表的所有统计,不大用到,关注!!!   w7525... 阅读全文
posted @ 2008-04-02 17:24 今夜太冷 阅读(788) 评论(0) 推荐(0) 编辑
摘要: exec sp_updatestats 对整个数据库更新 update statistics tablename 阅读全文
posted @ 2008-04-02 17:18 今夜太冷 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 1. Start->Run 2. input mmc3. File->Add/Remove snap-in4. Add -> Computer management, Click Add5. Choose "Another computer", input computer name or ip, Click Finish6. Close "Add standalone Snap... 阅读全文
posted @ 2008-04-02 10:16 今夜太冷 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 我用Forms认证,用下面的代码将cookie的失效时间设置为3天             if( ValidateUser( txtUserName.Text , txtPassword.Text ))             {                 HttpCookie  authenticationCookie=FormsAuthentication.GetAuthCook... 阅读全文
posted @ 2008-04-01 17:41 今夜太冷 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 在线生成favorite ico的网站 http://www.chami.com/html-kit/services/favicon/ 可以在HTML页面的Head中增加:<link rel="Shortcut Icon" href="favicon.ico">也可以直接把 favicon.ico 放在网站的根目录 阅读全文
posted @ 2008-03-31 16:59 今夜太冷 阅读(7177) 评论(0) 推荐(0) 编辑
摘要: When getting the value of a FCKEditor control using FCKEditor1.Vlue In server side, the page will be posted back, and there will be many problems occur. For example: Problem Title : HTML codes is con... 阅读全文
posted @ 2008-03-31 15:33 今夜太冷 阅读(382) 评论(0) 推荐(0) 编辑
摘要: The Custom Call Handler entry allows you to configure any custom handler class you create. The configuration editor creates an entry in the configuration that contains the name and the class type, plu... 阅读全文
posted @ 2008-03-20 11:21 今夜太冷 阅读(268) 评论(0) 推荐(0) 编辑
摘要: The Custom Matching Rule configuration item allows you to configure any custom matching rule class you create. The configuration editor creates an entry in the configuration that contains the name and... 阅读全文
posted @ 2008-03-20 10:57 今夜太冷 阅读(271) 评论(0) 推荐(0) 编辑
摘要:  You can use the Policy Injection Application Block factory methods to create an instance of any class that is interceptable or wrap an existing instance of any class that is interceptable. The t... 阅读全文
posted @ 2008-03-19 17:22 今夜太冷 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 问: 打扰一下,请问MarshalByRefObject中的"Marshal"应该怎样理解?   回复: 按照package的意思理解——当一个对象需要长途跋涉到另一个环境中时,需要将其marshal成一个可以传输的形态(比如在.NET Remoting中对象将被打包成一个serializable的ObjRef实例——这个ByRef就是指ObjRef这种形态);同理,当打包以后传输到目标地... 阅读全文
posted @ 2008-03-19 17:05 今夜太冷 阅读(404) 评论(0) 推荐(0) 编辑
摘要: Set related sections in web.config: <authentication mode="Forms" > <forms loginUrl="Login.aspx" protection="All" timeout="30" name=".ASPXAUTH" path="/" requireSSL="false" slid... 阅读全文
posted @ 2008-03-11 17:00 今夜太冷 阅读(695) 评论(0) 推荐(0) 编辑
摘要: Cookie实际上是一些小的数据包,里面包含着关于你网上冲浪习惯的信息,可以方便你以后的操作,但随后就为因特网上了解Cookie的站点所知。正因如此,我们还是有必要学会禁用Cookie,以保证上网的安全。以下给大家介绍禁用Cookie的三种方法,你可根据需要选择使用。   一、IE选项法   1、启动IE;   2、在"工具"菜单上,单击"Internet选项",打开"Internet选项"对话框... 阅读全文
posted @ 2008-03-11 16:10 今夜太冷 阅读(4981) 评论(0) 推荐(0) 编辑
摘要: 1.使用Forms验证存储用户自定义信息Forms验证在内部的机制为把用户数据加密后保存在一个基于cookie的票据FormsAuthenticationTicket中,因为是经过特殊加密的,所以应该来说是比较安全的。而.net除了用这个票据存放自己的信息外,还留了一个地给用户自由支配,这就是现在要说的UserData。UserData可以用来存储string类型的信息,并且也享受Forms验证提... 阅读全文
posted @ 2008-03-10 17:19 今夜太冷 阅读(550) 评论(0) 推荐(0) 编辑
摘要: When you install Enterprise Library 3.0, you actually get two distinct copies of the library. One copy is in the form of pre-compiled binaries - by default these get installed to "C:\Program Files\Mic... 阅读全文
posted @ 2008-03-06 18:01 今夜太冷 阅读(500) 评论(0) 推荐(0) 编辑
摘要: http://beautifully.blogdriver.com/beautifully/319441.html 阅读全文
posted @ 2008-03-06 09:47 今夜太冷 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Question:onServerClick event of HTML input does not support code post-binding, it can't find the Button_Click function defined for it in the cs file.Solution:You must declare Button_Click function as ... 阅读全文
posted @ 2008-03-06 09:45 今夜太冷 阅读(304) 评论(0) 推荐(0) 编辑
摘要: Problem:After installing Enterprise Library 3.1 – May 2007, when I open vs.net, there is no Guidance Package Manager button in the Tools category of VS's menu.Solution:After installing Enterprise Lib... 阅读全文
posted @ 2008-03-05 13:07 今夜太冷 阅读(366) 评论(0) 推荐(0) 编辑
摘要: <table>               <tr>                           <td   id="test">hello word!</td>                           <td>csdn</td>                           <td>th... 阅读全文
posted @ 2008-03-03 11:06 今夜太冷 阅读(3530) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/KB/HTML/webspeed.aspx 阅读全文
posted @ 2008-02-29 16:02 今夜太冷 阅读(285) 评论(0) 推荐(0) 编辑
摘要: <script language='javascript'>var isIE=!(navigator.userAgent.indexOf('MSIE')==-1);var news;var curNew=0;var timer;function init(pic,txt){ if(!pic)pic="NewsPic"; if(!txt)txt="NewsPicTxt"; var tex... 阅读全文
posted @ 2008-02-19 17:17 今夜太冷 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 调试javascript的好方法 1、从微软网站下载MS Script Debugger并安装,这是下载地址:http://download.microsoft.com/download/winscript56/install/1.0a/NT45XP/EN-US/scd10en.exe2、修改IE的设置:IE的选项-->高级,有两个选项默认是钩选的:Disable Script Debugg... 阅读全文
posted @ 2008-02-19 09:59 今夜太冷 阅读(254) 评论(0) 推荐(0) 编辑
摘要: TestRSS.aspx:<%@ Page Language="C#" AutoEventWireup="true" ContentType="text/xml" CodeBehind="TestRSS.aspx.cs" Inherits="NameSpace1.TestRSS" %> <asp:Repeater id="Repeater1" ... 阅读全文
posted @ 2008-02-18 12:50 今夜太冷 阅读(402) 评论(0) 推荐(0) 编辑
摘要: When I connect to a ftp server by typing ftp://servername I got the following error messages:421 too many users, please try it later.What's the reason?[Answer] This is because there are too many users... 阅读全文
posted @ 2008-02-18 10:34 今夜太冷 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: http://www.seoip.net/seoyh/wzch.htm 阅读全文
posted @ 2008-02-13 13:56 今夜太冷 阅读(253) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/KB/aspnet/CaptchaImage.aspx 阅读全文
posted @ 2008-02-13 13:24 今夜太冷 阅读(250) 评论(0) 推荐(0) 编辑
摘要: In some cases, we need to get part of a block of HTML contents, if truncate it directly, the HTML tags will be truncated, too. So before truncating, we have to remove all the HTML tags in the content.... 阅读全文
posted @ 2008-02-13 12:37 今夜太冷 阅读(419) 评论(0) 推荐(0) 编辑