2005年8月26日

ASP.NET与JavaScript联合操作之一 选择DataGrid中的CheckBox控件后该行背景变色

摘要: 在网络开发中,经常遇到需要使用ASP.NET与JavaScript联合进行控制的情况。在本篇中,将使用DataGrid进行数据绑定,使用Javascript控制当选中其中的checkbox时,该行颜色改变。首先,在页面中创建一个DataGrid控件,并设置其模板。<asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="... 阅读全文

posted @ 2005-08-26 10:40 笑天 阅读(290) 评论(0) 推荐(0) 编辑

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 笑天 阅读(1489) 评论(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) 编辑

2005年8月9日

提供数据绑定和排序功能的ListView完全解决方案

摘要: 在论坛上经常看到有初学者问,ListView列排序的时候列上面怎么样出现一个小三角的图标,今天花了一个上午封装了ListView控件,并提供数据绑定的功能。源代码如下:using System;using System.Windows.Forms;using System.Diagnostics;using System.Drawing;using System.Runtime.InteropSe... 阅读全文

posted @ 2005-08-09 15:59 笑天 阅读(1648) 评论(0) 推荐(0) 编辑

2004年10月10日

同事结婚喽!发喜糖喽!心里酸溜溜的,哈哈....

摘要: 哎同事一个个的都结婚了,偶什么时候才能结婚哦 阅读全文

posted @ 2004-10-10 14:34 笑天 阅读(341) 评论(1) 推荐(0) 编辑

导航