江大鱼的BLOG

不求大作,只为记录点点滴滴(转载本人原创文章转载请注明出处)

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

ASP.NET

.NET Web 开发技术
     摘要: 很多人用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 江大鱼 阅读(452) | 评论 (3)  编辑

     摘要: 在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 江大鱼 阅读(540) | 评论 (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 江大鱼 阅读(781) | 评论 (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 江大鱼 阅读(1209) | 评论 (1)  编辑

     摘要: 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 江大鱼 阅读(1323) | 评论 (1)  编辑

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

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

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

     摘要: 大家应该知道,微软的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 江大鱼 阅读(10437) | 评论 (59)  编辑

     摘要: 很多人都用网上流传的chs2py类进行汉字到拼音的转化,但是这个类存在一点小问题,就是如果 要转化的字符串中含有非中文字符的话就会出错。

所以我就在chs2py类字符转拼音之前先判断字符是否为汉字,如果为汉字就进行转化,否则不转化,直接附加!  阅读全文
posted @ 2005-09-05 11:00 江大鱼 阅读(760) | 评论 (3)  编辑

posted @ 2005-08-25 12:42 江大鱼 阅读(895) | 评论 (0)  编辑

     摘要: 今天试探性的打开了66.178.223.73的VS2005,添加了个Form和几个控件,里面的代码让我有点郁闷

Form1.cs里面基本没有什么代码

Using directives#region Using directives

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;

#endregion

namespace WindowsApplication3
{
partial class Form1 : Form
{
public Form1()
{
InitializeComponent(); <  阅读全文
posted @ 2005-08-25 11:44 江大鱼 阅读(462) | 评论 (2)  编辑

posted @ 2005-06-09 08:24 江大鱼 阅读(1931) | 评论 (6)  编辑

posted @ 2005-05-14 01:03 江大鱼 阅读(2368) | 评论 (5)  编辑

     摘要: jsntcw (chenwei)

大家开发ASP.NET项目时,是喜欢在IIS中建

虚拟目录还是建一个WEB站点进行开发?

IIS容易忽视的问题:

1)建虚拟目录
2)建一个WEB站点

大家说说这两种方式各有什么优缺点?我以前一直是建虚拟目录,但发现这种方式,在多层目录时,设定根路径比较麻烦.微软的示例都是建虚拟目录,但他的所有文件都放在同一个目录下,因此问题不大,但是如果有多层目录,也就是说不同的文件放在不同性质的目录下,这时就考虑根目录的问题,这时建虚拟目录就显得不是好的方案了。大家说说  阅读全文
posted @ 2005-05-06 13:56 江大鱼 阅读(1752) | 评论 (6)  编辑