- 博客(27)
- 资源 (5)
- 收藏
- 关注
原创 C# in depth 阅读笔记-- 委托
委托(delegate) 1. 相当于C语言的函数指针,执行委托,就是执行相应代理的方法.2. 使用委托的步骤 a. 声明委托类型(delegate) 委托的签名决定了委托可以代理的方法的类型,方法的签名要去委托的签名一致 例:delegate void StringProcessor (string input); b. 定义要执行的方法 以下5个方法中,只有
2008-07-11 00:10:00
532
原创 http://www.microsoft.com/china/MSDN/library/archives/MSDNonline/features/articles/dhtmlperf.asp
http://www.microsoft.com/china/MSDN/library/archives/MSDNonline/features/articles/dhtmlperf.asp
2006-12-20 18:46:00
1056
原创 为爱离开
为爱离开 能如此靠近你 我已感到幸福 不敢再多奢求 因为你我都已经踏上了一条长路 忍住那一滴的泪 别让它在我的面前落下 因为我无法承重 它的晶莹与涕透 一闭上双眼 就能碰到了你如水的脸庞 如此的亲近 如此的清晰 想举起手 触及你的清新和美丽
2006-11-02 16:03:00
744
转载 冷漠到寂寞
“你听寂寞在唱歌,轻轻的狠狠的,歌声是那么残忍,让人忍不住泪流成河,你听寂寞在唱歌,温柔的疯狂的,悲伤越来越深刻,怎样才能让它停……”歌声在空气里回荡着,仿佛要把寂寞揉进世间的每一个角落。唱歌人的寂寞,听歌的人懂吗,听歌人的寂寞,唱歌的人懂吗,寂寞或许是一种能深入骨髓的东西......寂寞久了,是不是就成了孤独,寂寞的滋味,只有自己知道……寂寞的时候,我喜欢燃点一支香烟,看它升腾起袅袅的青烟
2006-10-17 17:24:00
744
1
转载 把datagrid生成了word文档,并在ie显示
下面代码把datagrid生成了word文档,并在ie显示 //生成 HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=RoadRepair.doc"); Response.ContentType = "application/vnd.ms-
2006-09-14 09:22:00
1054
转载 EXCEL导出乱码终极解决之道
EXCEL导出乱码终极解决之道:记得加分//从web.config里读取的// responseEncoding="gb2312" culture="zh-CN" />编码-fromWebConfig_encodingNamestring encodingName = fromWebConfig_encodingName;context.Response.Write("context.Re
2006-09-13 10:09:00
4473
转载 Introduction: Creating a Data Access Layer
http://www.asp.net/learn/dataaccess/tutorial01vb.aspx?tabid=63
2006-06-30 16:46:00
748
原创 GridView根据值的变化改变行列样式
http://nina-piaoye.cnblogs.com/archive/2006/06/16/427330.aspx
2006-06-28 14:49:00
697
原创 Nested Repeaters to Display Nested Data
http://gridviewguy.com/ArticleDetails.aspx?articleID=185
2006-06-26 10:23:00
749
转载 asp.net中'COO/ASPNET' 登录失败。
因为你的程序连接SQLServer的连接字符串是用了windows集成登陆,你可以改成用数据库帐号密码登陆。连接字符串的写法是: server=localhost;uid=sa;pwd=xxxx;database=master; server是数据库服务器的机器名或者IP,如果是同一台机可以用localhost uid是数据库登陆帐号 pwd是数据库密码 database是数据库初始owner名称
2006-05-24 08:53:00
3289
1
转载 Gridview中的内容导出到Excel
在日常工作中,经常要将gridview中的内容导出到excel报表中去,在asp.net 2.0中,同样可以很方便地实现将整个gridview中的内容导出到excel报表中去,下面介绍其具体做法: 首先,建立基本的页面default.aspx <form id="form1" runat="server"><div><asp:Gr
2006-04-29 10:38:00
1001
原创 正则表达式
以字母或汉字开头只能经字母汉字或数字组成长度为6-16个字符^[A-Za-z/u4e00-/u9fa5][A-Za-z0-9/u4e00-/u9fa5]{5,15}$ http://mscenter.edu.cn/blog/yongsheng/archive/2004/11/19/308.html
2006-04-02 21:26:00
1078
原创 Detect missing images with client-side script
Detect missing images with client-side scriptHow to detect missing images with client-side javascript
2006-04-02 00:49:00
675
原创 Field Content Validation
Field Content ValidationPerforms validation on a HTML field based on the criteria you specify.
2006-04-02 00:44:00
728
原创 Trimming form fields
Trimming form fieldsWeb forms often ask visitors for non-essential information, but long and complicated forms can seriously hinder the e-commerce sales process. Wouldnt it be cool to give users th
2006-04-02 00:23:00
744
原创 CodeSnip: How to Create a BoundField Dynamically Using GridView
CodeSnip: How to Create a BoundField Dynamically Using GridViewIn this code snippet, Sushila examines how to create and add a BoundField column to the GridView control dynamically, based on the user
2006-04-01 22:31:00
742
原创 Properties and Indexers in C#
Properties and Indexers in C#Properties are known as smart fields and enable access to the fields of a class. Indexers are also called smart arrays in C# and can be used to use an object as an array
2006-04-01 22:16:00
661
原创 Dynamic Generation of Word Document Report in ASP.NET with HTML
Dynamic Generation of Word Document Report in ASP.NET with HTMLIn this article, Vishal demonstrates how simple it is to use ASP.NET to generate MS Word reports as HTML dynamically in a visually rich
2006-04-01 21:59:00
620
转载 ADO.NET 查询一条记录时,如何并查出上一条记录的ID,和下一条记录的ID
CREATE PROCEDURE pTable2_getPN@titleid varchar(30) ASdeclare @kind varchar(30),@P varchar(100),@Pid varchar(30),@Ptitle varchar(50),@N varchar(100),@Nid varchar(30),@Ntit
2006-03-31 17:55:00
1504
原创 生成99个不同的随机数
生成99个不同的随机数 void Page_Load(Object sender , EventArgs e) { System.Random random = new Random(); for(int i= 1;i { int numb
2006-03-28 00:10:00
1221
转载 随机提取N条记录的SQL语句
Sql server: select top 10 * from 表 order by newid()Access: SELECT top 10 * FROM 表 ORDER BY Rnd(id) Rnd(id) 其中的id是自动编号字段,可以利用其他任何数值来完成比如用姓名字段(UserName) SELECT top 10 * FROM 表 ORDER BY Rnd(len(
2006-03-27 23:38:00
764
翻译 给按钮添加确认提示
给按钮添加确认提示 public void Page_Load(Object sender, EventArgs E) {btnSubmit.Attributes.Add("onclick","javascript:if(confirm(Are you sure everything is correct?)== false) re
2006-03-27 00:25:00
1296
转载 .asx 文件的内容
原文地址: http://support.microsoft.com/default.aspx?scid=kb;zh-cn;247355ASX/播放列表 http://server/song1.asf" /> http://server/song2.asf" /> http://server/song3.asf" /> http://server/song4.asf" /> 在上
2006-03-27 00:14:00
1453
翻译 生成RSS的类(RSS Feed Helper Class)
该RSS类的代码: using System;using System.Xml; /// /// Enables the generation of an RSS feed/// public class RSSFeedGenerator{ XmlTextWriter writer; public RSSFeedGenera
2006-03-27 00:00:00
1230
转载 RSS 2.0 标准
什么是 RSS?RSS 是一种站点内容聚合的格式。它的名字是Really Simple Syndication 的的简写。RSS是XML的一种。所有的RSS文档都遵循 XML 1.0规范, 该规范发布在W3C网站上。这里是RSS版本历史的一个概要。在一个RSS文档中,最外层是一个元素,这个元素必须规定version属性,该属性明确了本文档遵从何种RSS版本规范。如果一个RSS文档以这个
2006-03-26 23:43:00
1045
原创 文章收集
Add a JavaScript popup to an ASP.NET buttonHow to add a javascript popup (alert) question to an ASP.NET button control..Dynamic thumbnail images from ASP.NETThis sample code is an IHttpHandler imple
2006-03-25 23:16:00
796
转载 ASP.NET Popup Windows With Return Values
http://www.eggheadcafe.com/articles/20060117.asp
2006-03-25 20:39:00
845
ffmpeg.exe程序下载
2008-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人