江大鱼的BLOG

原创文章转载请注明出处

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

2008年4月20日 #

     摘要: The class System.Convert provide two basic methods "ToBase64String()" and "Convert.FromBase64String()" to encode a byte array to a base64 string and decode a base64 string to a byte array.

It is very good to use them to encode and decode base64. But in some case, it is a disaster.

For example, if you want to encode a 4 gb file to base64, the code above must throw an OutOfMemory exception., because you must read the file into a byte array. So we need to look for another way to e  阅读全文
posted @ 2008-04-20 21:48 江大鱼 阅读(45) | 评论 (0)编辑

2007年12月20日 #

     摘要: 很多人用ActionlessForm来解决这个问题,可是把每个form都改成ActionlessForm的工作量确实太大。

如果你的系统中已定义了叶面基类,那么问题可就简单的多了:

protected override void OnLoadComplete(EventArgs e)
{
string originalUrl = Context.Items["OriginalUrl"] as string;

if (!string.IsNullOrEmpty(originalUrl)) //So this page have been urlrewriten, after the page onloaded, rewrite the url of this page to original url
{
string query = string.Empty;
int pos = originalUrl.IndexOf('?');
  阅读全文
posted @ 2007-12-20 13:36 江大鱼 阅读(269) | 评论 (3)编辑

2007年11月22日 #

     摘要: Flex第一步 -- 国内第一本关于Flex的书籍

《flex第一步》 全书共分为17章。内容包括:Flex简介、Flex的安装和开发环境的建立、MXML 语法简介、使用容器控制界面布局、使用组件处理数据和交互、使用行为对象和动画效果、ActionScript 3.0编程知识、Flex的事件机制、数据绑定、组件的使用、Flex 2.0新特性实例开发、Flex与外部的数据通信、Flex程序设计等。

书中包括四个大型应用开发实例:Flex数据库留言本、Flex产品展示系统、Flex投票系统、Flex天气预报系统。除此之外,书中还贯穿了大量Demo级小例子,让技术不再抽象,帮你快速掌握Flex开发的关键。

作者深入浅出,从理论到实践,从基础知识到实践项目把Flex的技术阐述得相当到位,堪称国内Flex图书的开山之作。
  阅读全文
posted @ 2007-11-22 12:52 江大鱼 阅读(221) | 评论 (0)编辑

2007年9月23日 #

     摘要: 在asp.net 1.1中, 二级域名Forms验证模式下共享登陆状态的方法请参考下面文章:
http://www.cnblogs.com/caomao/archive/2005/07/05/186606.html
而在asp.net 2.0中实现方法更为简单,只需修改web.config文件即可,修改方法如下  阅读全文
posted @ 2007-09-23 00:04 江大鱼 阅读(437) | 评论 (5)编辑

2006年9月27日 #

     摘要: Atlas 近期发布的版本中总是出现莫名其妙的脚本错误, 但是又不影响功能的实现, 最终发现是atlasglob.axd在作怪!
直接访问 http://localhost/atlasglob.axd ,
抛出异常:
System.ArgumentException: Culture name 'zh' is not supported.  阅读全文
posted @ 2006-09-27 11:12 江大鱼 阅读(455) | 评论 (2)编辑

2006年7月6日 #

     摘要: Microsoft has been working on version 2.0 of the.NET Framework and Visual Studio 2005
for a number of years now. Between the bits that were handed out at the PDC in 2003 and the
release candidate handed out at the PDC in 2005, there’s been an unusually long period of
time for curious developers to play around with the new functionality, picking out their
favorites, and pining for the day they can be used in a production application. Over that same
period of time the features   阅读全文
posted @ 2006-07-06 17:29 江大鱼 阅读(749) | 评论 (4)编辑

     摘要: Brilliantly compiled by author Juval Lowy, Programming .NET Components, Second Edition is the consummate introduction to the Microsoft .NET Framework--the technology of choice for building components on Windows platforms. From its many lessons, tips, and guidelines, readers will learn how to use the .NET Framework to program reusable, maintainable, and robust components.

Following in the footsteps of its best-selling predecessor, Programming .NET Components, Second Edition has been upda  阅读全文
posted @ 2006-07-06 17:20 江大鱼 阅读(1199) | 评论 (1)编辑

2006年5月23日 #

     摘要: 在.net 1.1中我们要实现压缩这一功能,一般都是用open source的SharpZipLib 或者调用J#类库。
现在在.net 2.0中增加了压缩功能,名字空间为 using System.IO.Compression;  阅读全文
posted @ 2006-05-23 16:23 江大鱼 阅读(725) | 评论 (0)编辑

2006年3月28日 #

     摘要: bcm.gif

Download Address:
http://www.drivehq.com/file/ShowFolder.aspx?G=1&shareID=43383

In the Folder named "DotNet"

Please Open it!
  阅读全文
posted @ 2006-03-28 11:05 江大鱼 阅读(1284) | 评论 (1)编辑

2006年2月20日 #

     摘要: 本文背景: http://jzywh.cnblogs.com/archive/2005/09/29/246650.html

网上很多朋友看到我这篇文章,按照我的方法做了,但是还是没有得到想要的效果,其实有些问题需要注意一下,我上篇文章也只是提出了解决这一问题的办法的最核心的内容,有些朋友可能在实际运用中可能会碰到一些问题其实可以根据自己的经验作出相应处理应该可以解决,我在这里帮大家列出几点以帮助大家快速解决问题。   阅读全文
posted @ 2006-02-20 13:29 江大鱼 阅读(6379) | 评论 (34)编辑

2006年1月16日 #

     摘要: Introduction
Internet Storage can be used to:
Store files on the internet for accessing from anywhere, anytime;
Sharing files among friends;
Remote or off-site file backups.
Lots of companies provide internet storage services. Most of them offer this service for a fee; a few of them provide either a restricted free service or a limited free trial. This report is created to provide an objective and the most up-to-date feature comparisons among all Internet storage websites  阅读全文
posted @ 2006-01-16 12:32 江大鱼 阅读(970) | 评论 (1)编辑

2005年12月17日 #

posted @ 2005-12-17 12:37 江大鱼 阅读(307) | 评论 (0)编辑

2005年10月26日 #

posted @ 2005-10-26 09:55 江大鱼 阅读(258) | 评论 (0)编辑

2005年9月29日 #

     摘要: 大家应该知道,微软的URLRewrite能够对URL进行重写,但是也只能对域名之后的部分进行重写,而不能对域名进行重写,如:可将 http://www.abc.com/1234/ 重写为 http://www.abc.com/show.aspx?id=1234 但不能将
http://1234.abc.com 重写为 http://www.abc.com/show.aspx?id=1234。

要实现这个功能,前提条件就是 www.abc.com 是泛解析的,再就是要修改一下URLRewriter了。
总共要修改2个文件   阅读全文
posted @ 2005-09-29 14:08 江大鱼 阅读(9364) | 评论 (58)编辑

2005年9月9日 #

posted @ 2005-09-09 13:14 江大鱼 阅读(1122) | 评论 (0)编辑