使用ASP做网站虽然有点落伍,但在中国还是有很大市场的,因为大部分国内用户使用Windows Server服务器,在Windows Server的IIS环境下,ASP+SQLServer的性能丝毫不逊于PHP+MySQL,可惜ASP不支持跨平台,不支持Apache,因此发展受到了很大限制。在开源项目上,国内的ASP开源项目也没有PHP的多,不过也有一些,下面是我总结的一些基于ASP的建站开源系统。 论坛:DVBBS 动网论坛曾经是国内很流行的论坛,不过后来逐步衰落,在大用户量访问下,其性能不如Discuz和PHPWind。 博客平台:Z-BLOG Z-Blog是一套基于ASP平台的开放... Read More
posted @ 2009-08-01 13:01 汉卿 Views(754) Comments(0) Diggs(0) Edit
partial关键字 C#2.0提供的新关键字,用来将一个class、struct或interface的定义拆分,写在不同的源文件中。每个源文件包含类定义的一部分,编译应用程序时将把所有部分组合起来。在以下几种情况下需要拆分类定义: 1.处理大型项目时,使一个类分布于多个独立文件中可以让多位程序员同时对该类进行处理。 2.使用自动生成的源时,无需重新创建源文件便可将代码添加到类中。Visual Studio 在创建 Windows 窗体、Web 服务包装代码等时都使用此方法。无需编辑 Visual Studio 所创建的文件,便可创建使用这些类的代码。 用法如下: [modifiers] pa Read More
posted @ 2009-08-01 11:31 汉卿 Views(517) Comments(0) Diggs(0) Edit
如题。 Read More
posted @ 2009-08-01 11:26 汉卿 Views(158) Comments(0) Diggs(0) Edit
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Xml.Linq;using System.Collections.Generic;using System.Data.SqlClient; namespace DAL{ public class GetCon { private static SqlConnection conn; private static SqlDataAdapter da; private s Read More
posted @ 2009-08-01 11:19 汉卿 Views(1085) Comments(0) Diggs(0) Edit
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace IBLL{ public class GetRedirect { public GetRedirect() { } public const string WINALERT = "<script>alert('{0}');</script>"; public const string REDIRECT = "<script>doc Read More
posted @ 2009-08-01 11:18 汉卿 Views(193) Comments(0) Diggs(0) Edit
public bool IsNumberic(string oText) { try { //从字符串到双精度值的转换,字符串转换为Double,如果成功则返回为真,否则返回为假。 Double var1 = Convert.ToDouble(oText); return true; } catch { return false; } } Read More
posted @ 2009-08-01 11:16 汉卿 Views(166) Comments(0) Diggs(0) Edit
第一步 掌握一门.NET面向对象语言,C#或VB.NET 我强烈反对在没系统学过一门面向对象(OO)语言的前提下去学ASP.NET。 ASP.NET是一个全面向对象的技术,不懂OO,那绝对学不下去!第二步 对.NET Framework类库有一定的了解 可以通过开发Windows Form应用程序来学习.NET Framework。ASP.NET是建构在.NET Framework之上的技术,你对.NET Framework了解得越深,学习ASP.NET就越快。 举个例子:下面简单列出几个对掌握ASP.NET非常重要的概念: 对象的内存模型,委托,事件,多线程,程序集和应用程序域,安全模型 . Read More
posted @ 2009-08-01 10:18 汉卿 Views(148) Comments(0) Diggs(0) Edit
一、安装SQL Sever 2005数据库 如果你使用Windows Server 2003 Enterprise Edition,注意同时安装SP1或更高版本补丁。安装条件: 组件 要求 磁盘空间 所有版本的完全安装都需要350MB硬盘空间,而要安装示例数... Read More
posted @ 2009-08-01 09:20 汉卿 Views(475) Comments(0) Diggs(0) Edit