自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(31)
  • 资源 (1)
  • 收藏
  • 关注

转载 hashtable and hashmap

<br />1、 继承和实现区别Hashtable是基于陈旧的Dictionary类,完成了Map接口;HashMap是Java 1.2引进的Map接口的一个实现(HashMap继承于AbstractMap,AbstractMap完成了Map接口)。2、 线程安全不同HashTable的方法是同步的,HashMap是未同步,所以在多线程场合要手动同步HashMap。3、 对null的处理不同HashTable不允许null值(key和value都不可以),HashMa

2011-04-13 15:35:00 444

转载 system.Web.UI.Page.Server.get 要求引用解决方法

代码是判断是否支持一些服务器组件 如下    public static string IsObject(string ObjectName)    {        try        {            Server.CreateObject(ObjectName);            return "√";        }        catch (Exception

2010-04-15 19:11:00 530

原创 "Stack overflow in line 0" errors when I look at it in Internet Explorer.

I had an OnError() event in some code that was setting the image source to a default image path if it wasnt found. Of course, if the default image path wasnt found it would trigger the error handl

2010-04-14 11:35:00 304

原创 local map domain

C:/WINDOWS/system32/drivers/etc hosts # Copyright (c) 1993-1999 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings

2010-04-07 13:40:00 235

原创 asp.net 也玩微操:long?

今天发现一个很有用的东西:“?” 比如long? number与long inc比在DAC Lever当number收到字母等不合意的东西时,会自动地变成null存到数据库,而这时inc收到不合理数据,会出错!

2010-03-04 12:53:00 167

转载 Clear in CSS

在CSS中我们会经常要用到“清除浮动”Clear,比较典型的就是clear:both; 语法:clear : none | left | right | both 取值:none : 默认值。允许两边都可以有浮动对象 left : 不允许左边有浮动对象 right : 不允许右边有浮动对象 both : 不允许有浮动对象 说明:该属性

2010-02-25 10:33:00 386

转载 Refresh or redirect

先看看ASP.NET页面刷新的实现方法:   public static void Refresh() { WriteScript("window.location=/"" + HttpContext.Current.Request.RawUrl + "/";"); if (null != HttpCont

2010-02-25 10:30:00 825

转载 ASP.NET Web Developer Checklist

The following is a simple checklist you can use when building web applications.  Much of this still applies to other technologies and can easily be extended.  I try not to get too spe

2010-02-25 10:04:00 368

转载 about use javascrip change button image

                           function ValidateTandCs(source, args)    {           }    function disableBtn(btnID, newText) {        if (Page_IsValid == true) {         var btn = document.getElementById(

2010-02-04 17:17:00 225

转载 ASP.NET MVC ACTION FILTER - CACHING AND COMPRESSION

http://weblogs.asp.net/rashid/archive/2008/03/28/asp-net-mvc-action-filter-caching-and-compression.aspx Caching plays a major role in developing highly scalable web applications. We can cache

2010-02-04 10:41:00 286

转载 《博客园精华集》ASP.NET分册第2论筛选结果文章列表

http://www.cnblogs.com/dflying/archive/2008/06/13/1219896.html 

2010-02-03 17:47:00 174

转载 ASP.NET中将数据输出到Excel

在开发ISO文件管理系统的时候,曾经遇到过要将ASPX直接输出到EXCEL的需求,现将经验所得与大家分享。 其实,利用ASP.NET输出指定内容的WORD、EXCEL、TXT、HTM等类型的文档很容易的。主要分为三步来完成。   一、定义文档类型、字符编码 Response.Clear();  Response.Buffer= true;  Response.Charset="utf-8"; //

2010-02-03 17:44:00 147

转载 ASP.NET Ajax using a custom ViewManager to render paged data without updatepanels (在ASP.NET AJAX中使用自定义ViewManager局部更新数据)

Sometimes you do not want the overhead of using an updatepanel, as each time you make a request it is posting more back than you might need, sure it can be powerful and easy to use but not always the

2010-02-03 17:16:00 277

转载 Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 3

http://aspalliance.com/1604_Building_a_Simple_Blog_Engine_with_ASPNET_MVC_and_LINQ__Part_3.all

2010-02-03 17:15:00 171

转载 A Templated ASP.NET RSS Feed Reader Control (开发模板化的ASP.NET RSS Feed Reader控件)

By popular demand (well a couple people) I have included a sample project with everything needed to get started using this control. Basically just a sample web project, click here to get the zipped ar

2010-02-03 16:57:00 469

原创 FileUpload filter

When we need to <a id="KonaLink0" class="kLink" style="position: static; text-decoration: underline !important;" onclick="function onclick(){adlinkMouseClick(event,this,0);}" onmouseov

2010-02-03 14:25:00 327

转载 IIS 6.0配置HTTP压缩

 1. HTTP压缩概述 HTTP压缩是在Web服务器和浏览器间传输压缩文本内容的方法。HTTP压缩采用通用的压缩算法如gzip等压缩HTML、JavaScript或CSS文件。 2. HTTP压缩工作原理 Web服务器处理HTTP压缩的工作原理如下:    Web服务器接收到浏览器的HTTP请求后,检查浏览器是否支持HTTP压缩; 如果浏览器支持HTTP压缩,Web服务器检查请求文件的后缀名;

2010-02-03 14:06:00 881

转载 Javascript&Jquery 常用属性

JScript code  Attribute:$(”p”).addClass(css中定义的样式类型); 给某个元素添加样式$(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值,参数是map$(”img”).attr(”src”,”test.jpg”); 给某个元素添加属性/值$(”img”).at

2010-02-03 11:34:00 511

原创 System.Threading

pub void function_thread{            Thread UserCreateThread = new Thread(new ParameterizedThreadStart(function_name));            string[] temp = { createnumber.ToString(), GroupName, gparentid.T

2010-01-27 18:49:00 186

转载 C# and VB .NET Libraries to Digg, Flickr, Facebook, YouTube, Twitter, Live Services, Google and other Web 2.0 APIs (调用Digg、Flick

Someone emailed me recently saying that they couldn’t find enough examples in .NET for talking to the recent proliferation of “Web 2.0 APIs” so I thought I’d put together a list and look at some sou

2010-01-27 11:30:00 1271 1

转载 10 Tips to Boost Your Productivity with C# and Visual Studio 2008

Learn Key BindingsIts an obvious and trivial thing, but the timesaving will add up, especially for those actions you perform tens or hundreds of times a day such as building and debugging.  Her

2010-01-27 11:28:00 240

转载 ASP.NET MVC ACTION FILTER - CACHING AND COMPRESSION

Caching plays a major role in developing highly scalable web applications. We can cache any http get request in the user browser for a predefined time, if the user request the same URL in that prede

2010-01-27 10:10:00 171

原创 .net 实现 URL重写,伪静态

一,获得Mircosoft URLRewriter.dll:获得Mircosoft URLRewriter.dll可以到http://www.microsoft.com/china/msdn/library/webservices/asp.net/URLRewriting.mspx?mfr=true  下载完毕后,导入工程,我这里没有对该工程做任何修改,保留了原来的重写方式,然

2010-01-25 17:38:00 157

转载 .net用url重写URLReWriter实现任意二级域名

解释了url重写的相关知识.用asp.net实现二级域名重写的方法.对重写的一些问题做了汇总解答.提供了几段示例代码.好久没有写技术文章,如果大家看不明白,就多看几篇,汗,或者,在文章的后面回复(这是最有效的办法),我会尽力帮助大家解答疑惑.来找这篇文章的,应该都知道什么叫二级域名吧,废话就不说了.但是讨论前,先要明白一个思想问题.很多朋友一直考虑不清(我前几天也一直搞不明白)

2010-01-25 17:36:00 129

转载 Asp.net 中session存储的三种模式的具体运用

在Asp.net中Session的存储方式不象asp那样单一,一共提供了三种存储方式,由于最近一个2000多人使用的web软件出现了故障,用户每天早上在某一时刻出现难以登陆现象,接着Session丢值出现,只有重启IIS,或机器.这时程序恢复正常了.整天都不会出现同样的问题,但是第二天依旧!这种现象持续了好几天,我检查了一下日志文件,高峰每秒访问人数大概20人左右,同时大概100多人在线,

2010-01-25 17:27:00 140

转载 在Forms验证模式下,实现多个站点(SubDomain相同)共享同一用户登录状态

今天一早看了dudu关于二级域名Cookie的问题及解决方法,认为dudu的原理解释不是十分明确,不能确定dudu的代码FormsAuthentication.SetAuthCookie后添加下属代码HttpCookie cookie = Request.Cookies[".DottextCookie"]; if(cookie!=null) { cookie.Domain = ".cnblogs.

2010-01-25 17:17:00 185

转载 ASP.NET二级域名站点共享Session状态

ASP.NET二级域名站点共享Session状态2010-01-15 10:44我的前面一篇文章提到了如何在使用了ASP.NET form authentication的二级站点之间共享登陆状态,http://www.cnblogs.com/jzywh/archive/2007/09/23/902905.html,今天, 我要写的是如何

2010-01-25 17:16:00 154

转载 ASP.NET 2.0 二级域名Forms验证模式下共享登陆状态

在asp.net 1.1中, 二级域名Forms验证模式下共享登陆状态的方法请参考下面文章:http://www.cnblogs.com/caomao/archive/2005/07/05/186606.html而在asp.net 2.0中实现方法更为简单,只需修改web.config文件即可,修改方法如下:Code highlighting produced by Actipro CodeH

2010-01-25 17:13:00 376

转载 路径

相对路径-以引用文件之网页所在位置为参考基础,而建立出的目录路径。因此,当保存于不同目录的网页引用同一个文件时,所使用的路径将不相同,故称之为相对。     绝对路径-以Web站点根目录为参考基础的目录路径。之所以称为绝对,意指当所有网页引用同一个文件时,所使用的路径都是一样的。  其实绝对路径与相对路径的不同处,只在于描述目录路径时,所采用的参考点不同。由于对网站上所有文件而言,

2010-01-18 11:41:00 438 1

原创 得到id以及属性

用javascrip在.net中写代码,得到其ID方法满多种,一种是在.net控件中直接写onclientclick=fuctionname(this.id),然后把ID传过去,一种是在javascrip中直接写document.getElementById() 得到ID后,要写点属性什么的咋办?用firbug点中控制后看Dom就行了,基本上都能搞定。别的就慢慢写类

2010-01-17 21:39:00 137

原创 .net + html 同意注册

.net 功能十分强大,其实可以直接在里面写一些html的代码,比如像这样This is ABC web   onclick="ValidateTandCs" /> 这种可以用于注册时的超链接到别的地方,当然可以发挥想像,所有Text都可以这么用。                              ClientValidationFunction="ValidateT

2010-01-17 21:24:00 176

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除