Javascript的document对象

摘要: 对象属性: document.title //设置文档标题等价于HTML的标签 document.bgColor //设置页面背景色 document.fgColor //设置前景色(文本颜色) document.linkColor //未点击过的链接颜色 document.alinkC... 阅读全文
posted @ 2008-09-18 13:29 NullReferenceException 阅读(244) 评论(0) 推荐(0)

ASP.NET 如何取得 Request URL 的各个部分

摘要: 我们在开发Web应用程序,时常需要去解析网址(Request.Url)的每个片段,进行一些判断。 例如说 "http://localhost:1897/News/Press/Content.aspx/123?id=1#toc",我们想要取得网址里第一层目录的名字(News)用以判断不同的页面标题(Page Title)。 我看很多人都用字符串的 IndexOf 方法与 Substring 方法... 阅读全文
posted @ 2008-08-28 11:37 NullReferenceException 阅读(1065) 评论(0) 推荐(0)

Managing Transactions using TransactionScope

摘要: Published: 06 Oct 2006 By: Muhammad Mosa A transaction is a unit of work. You use transactions to ensure the consistency and integrity of a database. If a transaction is successful, all of the data m... 阅读全文
posted @ 2008-08-28 11:22 NullReferenceException 阅读(358) 评论(0) 推荐(0)

c#.net函数和方法集

摘要: 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 in... 阅读全文
posted @ 2008-08-19 15:26 NullReferenceException 阅读(215) 评论(0) 推荐(0)

使用 ASP.NET 加密口令

摘要: 当我们在网站上建立数据库时,保护用户的信息安全是非常必要的。多数用户不愿意让别人知道自己的信息,同时网管也不想因为安全问题而丢失网站的信誉。无论对于谁,安全问题都是非常重要的。 为了解决这个问题,我给大家提供一个简单实用,但是老套的方法,就是口令加密。在此我们使用ASP.NET技术对口令加密。简单的讲,就是将用户提供的口令加密之后,然后让它和存放于系统中的数据比较,如果相同,则通过验证。 ... 阅读全文
posted @ 2008-08-19 14:13 NullReferenceException 阅读(160) 评论(0) 推荐(0)

Spring.NET介绍

摘要: 第一章. 介绍 1.1. 概览 Spring.NET 是一个关注于.NET企业应用开发的应用程序框架。它能够提供宽广范围的功能,例如依赖注入、面向方面编程(AOP)、数据访问抽象, 以及ASP.NET集成等。基于java的spring框架的核心概念和价值已被应用到.NET。Spring.NET 1.0 包含一个完全功能的依赖注入容器和AOP库。后续的发布将包含对ASP... 阅读全文
posted @ 2008-07-24 15:39 NullReferenceException 阅读(351) 评论(0) 推荐(0)

산학협력조인식

摘要: 阅读全文
posted @ 2008-07-22 20:56 NullReferenceException 阅读(148) 评论(0) 推荐(0)

我眼中的C# 3.0

摘要: Written by Allen Lee 缘起 每次有新技术发布时,我们总能感受到两种截然不同的情绪:一种是恐惧和抵抗,伴随着这种情绪的还有诸如"C# 2.0用的挺好的,为什么要在C# 3.0搞到那么复杂?"或者"我还在使用C# 1.0呢?"等言辞;另一种则是兴奋和拥抱,伴随着这种情绪的还有诸如"原来这个问题在C# 3.0里可以这么简单!"等言辞。 最近我在公司内部做一个LINQ的系列讲... 阅读全文
posted @ 2008-07-18 17:18 NullReferenceException 阅读(193) 评论(0) 推荐(0)

Simple Ajax and ASP.NET Example

摘要: HtmlPage.html 无标题页 First Second Answer MultiplyAJAXServer.aspx 无标题页 ... 阅读全文
posted @ 2008-07-18 16:48 NullReferenceException 阅读(183) 评论(0) 推荐(0)

ASP.NET文件下载函数

摘要: 在你的Page_Load中添加这样的代码: Page.Response.Clear(); bool success = ResponseFile(Page.Request, Page.Response, "目的文件名称", @"源文件路径", 1024000); if (!success) Response.Write("下载文件出错!"); Page.Response.End(... 阅读全文
posted @ 2008-07-10 11:10 NullReferenceException 阅读(261) 评论(0) 推荐(0)