03 2010 档案

摘要:统计在线用户的作用不言而喻,就是为了网站管理者可以知道当前用户的多少,然后根据用户数量来观察服务器或者程序的性能,从而可以直观的了解到网站的吸引力或者网站程序的效率现在,我们就介绍一个简单明了的方法来统计在线用户的多少,该方法的特点就是充分的利用了ASP.NET的特点,结合global.asax文件,用Application和Session巧妙的实现在线用户的统计,由于程序中只用到一个Application,所以,程序占用系统资源几乎可以忽略不及,当然,这也是网站管理者最关心的问题之一一用户显示页面的使用首先,我们来看看怎样现实当前网站的访问用户数量,程序代码如下:<%@ Page Langu 阅读全文
posted @ 2010-03-30 22:06 Springside4 阅读(120) 评论(0) 推荐(0) 编辑
摘要:C#注册表的读,写,删除,查找using system;using system.collections;using system.configuration;using system.data;using system.web;using system.web.security;using system.web.ui;using system.web.ui.htmlcontrols;using system.web.ui.webcontrols;using system.web.ui.webcontrols.webparts;using microsoft.win32;public part 阅读全文
posted @ 2010-03-30 21:57 Springside4 阅读(125) 评论(0) 推荐(0) 编辑
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data.SqlClient;namespaceAllSaveGrid{publicpartialclassForm1:Form{DataSetds=newDataSet();publicForm1(){InitializeComponen 阅读全文
posted @ 2010-03-20 17:33 Springside4 阅读(92) 评论(0) 推荐(0) 编辑
摘要:DataGridView control is a Windows Forms control that gives you the ability to customize and edit tabular data. It gives you number of properties, methods and events to customize its appearance and behavior. In this article, we will discuss some frequently asked questions and their solutions. These q 阅读全文
posted @ 2010-03-12 22:34 Springside4 阅读(91) 评论(0) 推荐(0) 编辑
摘要:source:http://blogs.msdn.com/karenliu/archive/2006/06/12/628756.aspxVisual C# Development Settings Default KeyBindingsEditingEdit.CollapseToDefinitionsCTRL + M, OCollapses existing regions to provide a high-level view of the types and members in the source file.Edit.CommentSelectionCTRL + K, C or CT 阅读全文
posted @ 2010-03-12 12:21 Springside4 阅读(123) 评论(0) 推荐(0) 编辑
摘要:Installing VMware Tools in UbuntuI've noticed that people are installing Linux distributions in virtual machines. Especially the virtualization products of VMware are popular. The most installed distribution in VMware seems to be Ubuntu, as this one of the most user friendly Linux environments a 阅读全文
posted @ 2010-03-11 19:11 Springside4 阅读(214) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟网络相关知识 虚拟网桥通过虚拟网桥把虚拟机的虚拟网卡连接到宿主机的物理网卡上。通过它可以将虚拟机连接到宿主机所在的外部网络。如果宿主机上不止是一个物理网卡时,采用定制配置,创建另外的虚拟网桥用来连接宿主机上的其它物理上网卡。 宿主机虚拟网卡 安装完虚拟机后,我们右键“网上邻居” /属性 /在打开的“网络连接”窗口里看到两块网卡,默认情况下“VMware Network Adapter VMnet1”供仅宿主机网络使用;“VMware Network Adapter VMnet8”供NAT网络使用。右键这两个网卡的属性,我们可以在常标签下看到虚拟网卡的全称。当然我们也可以在... 阅读全文
posted @ 2010-03-07 20:59 Springside4 阅读(159) 评论(0) 推荐(0) 编辑
摘要:C#日期格式参考小结我们经常会遇到对时间进行转换,达到不同的显示效果,默认格式为:2006-6-6 14:33:34 如果要换成成200606,06-2006,2006-6-6或更多的格式该怎么办呢?这里将要用到:DateTime.ToString的方法(String, IFormatProvider)示例:using System;using System.Globalization;String format="D";DateTime date=DataTime.Now;Response.Write(date.ToString(format, DateTimeForma 阅读全文
posted @ 2010-03-05 14:01 Springside4 阅读(196) 评论(0) 推荐(0) 编辑
摘要:当今最热门的桌面Linux非Ubuntu莫属,它已经拥有数量众多的爱好者,已经成为PC用户的主流操作系统之一。Ubuntu定时发布管理战略的劣势之一是,有时候不能包含一些有用的升级软件包,而Debian不稳定版尽管不提供稳定当今最热门的桌面Linux非Ubuntu莫属,它已经拥有数量众多的爱好者,已经成为PC用户的主流操作系统之一。尽管Ubuntu相对还比较年轻,但是它的前身却是拥有多年历史和经验的Debian项目,或者说它继承了Debian这个最古老、最具影响力的Linux发行版的优点。这两个最受欢迎的Linux发行版之间存在着密不可分的“血缘”关系。尽管Debian对Ubuntu的过去和将 阅读全文
posted @ 2010-03-01 15:35 Springside4 阅读(103) 评论(0) 推荐(0) 编辑