2005年8月16日

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 取当前日 int 日=cu... 阅读全文

posted @ 2005-08-16 19:48 笑天 阅读(241) 评论(0) 推荐(0) 编辑

初学ASP.Net时在论坛收藏收集的一些资料备忘

摘要: 1. 打开新的窗口并传送参数: 传送参数:response.write("") 接收参数:string a = Request.QueryString("id");string b = Request.QueryString("id1"); 2.为按钮添加对话框 Button1.Attributes.Add("onclick","return confirm('确认?')"); button... 阅读全文

posted @ 2005-08-16 17:51 笑天 阅读(317) 评论(0) 推荐(0) 编辑

Win Form登录机制的实现

摘要: 一:Win Form登录机制的实现 Main窗体为应用程式主窗体,Login为登录窗体。均为SDI窗体。 两种实现方式如下: 1、应用程式入口放在Login窗体,在Login窗体实现登录机制,验证通过则创建Main窗体的实例,并将自身隐藏。 具体实现: ///Step1:验证登录 ///Step2:通过 th... 阅读全文

posted @ 2005-08-16 17:21 笑天 阅读(1490) 评论(3) 推荐(0) 编辑

在C#.net中如何操作XML

摘要: 在C#.net中如何操作XML需要添加的命名空间:using System.Xml; 定义几个公共对象:XmlDocument xmldoc ;XmlNode xmlnode ;XmlElement xmlelem ; 1,创建到服务器同名目录下的xml文件: 方法一:xmldoc = new XmlDocument ( ) ;//加入XML的声明段落xmlnode = xmldoc.Cre... 阅读全文

posted @ 2005-08-16 17:16 笑天 阅读(258) 评论(0) 推荐(0) 编辑

导航