Asp.net
文章平均质量分 66
shixinbao
这个作者很懒,什么都没留下…
展开
-
做个DataList 可分页的数据源
这个数据源,分两部分,一是从数据类中调出数据,然后在本数据源中对分页参数以及页面分页辅助控件进行操作!在前面有三个控件控制翻页,一个下拉列表,两个LinkButton!关于更多类中数据操作的方法见 http://thcjp.cnblogs.com/archive/2006/06/18/428775.html 这篇下面 fill() 方法调用很简单,在页面中要重新绑定的地方 写上 fi转载 2007-04-30 11:13:00 · 516 阅读 · 0 评论 -
c#.net常用函数和方法集
c#.net常用函数和方法集1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.转载 2007-05-15 15:37:00 · 896 阅读 · 0 评论 -
asp.net千奇百怪的日历
asp.net千奇百怪的日历【月儿原创】 asp.net千奇百怪的日历作者:清清月儿 主页:http://blog.csdn.net/21aspnet/ 时间:2007.5.14日历控件是我们经常使用的,本文把常用的几款日历总结如下。 1.下拉日历梅花雨版第1款点评:最经典的几乎完美了。代码:...@ Page Language="C#转载 2007-05-15 14:51:00 · 615 阅读 · 0 评论 -
c#中分割字符串的几种方法
c#中分割字符串的几种方法最近经常看到论坛中许多帖子询问如何使用split来分割字符串,我这里对split做一些简单的总结,希望能够对大家有所帮助。下面介绍几种方法: 第一种方法:打开vs.net新建一个控制台项目。然后在Main()方法下输入下面的程序。 string s="abcdeabcdeabcde"; string[] sArray=s.Split(c); foreach(str转载 2007-05-15 15:16:00 · 581 阅读 · 0 评论 -
常用函数集
常用函数集 /// /// 检验日期格式是否正确 /// #region public string IsDateFormat(string strDate) public string IsDateFormat(string strDate) { strDate = strDate.Tr转载 2007-05-15 15:39:00 · 651 阅读 · 0 评论 -
刷新指定页面(框架 )
Response.Write(" parent.frames[/"子模块名称/"].location.reload();");原创 2007-05-16 14:14:00 · 1101 阅读 · 0 评论 -
C#简介- 类和对象
C#简介- 类和对象 类(class)是C#类型中最基础的类型。类是一个数据结构,将状态(字段)和行为(方法和其他函数成员)组合在一个单元中。类提供了用于动态创建类实例的定义,也就是对象(object)。类支持继承(inheritance)和多态(polymorphism),即派生类能够扩展和特殊化基类的机制。 使用类声明可以创建新的类。类声明以一个声明头开始,其组成方式如下:先是指定类的特转载 2007-05-15 14:55:00 · 844 阅读 · 0 评论 -
C#中string与byte[]的转换帮助类
C#中string与byte[]的转换帮助类 在写C#程序时,string和byte[]之间的转换比较烦,在移植一些老程序时感觉很不好。我在C#中使用DES和TripleDES时移植一块老代码时也遇到了同样的情况。为了下次不为同样的事情烦恼,就写了下面的帮助类。 主要实现了以下的函数 代码中出现的Sidle是我的网名。 /* * @Author WuErPing * @Version转载 2007-05-15 15:15:00 · 553 阅读 · 0 评论 -
一个比较齐全的汉字字库对应拼音 操作实现
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.转载 2007-05-15 15:21:00 · 148897 阅读 · 0 评论 -
几个漂亮的Button的CSS
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.转载 2007-05-15 15:47:00 · 722 阅读 · 0 评论 -
C#字符串处理类
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.转载 2007-05-15 15:18:00 · 1321 阅读 · 0 评论 -
C# 中时间的计算
DateTime d1 = new DateTime(2004, 1, 1, 15, 36, 05); DateTime d2 = new DateTime(2004, 1, 1, 20, 16, 35); DateTime now = new DateTime(); now = System.DateTime.Now; Ti转载 2007-05-06 19:15:00 · 724 阅读 · 0 评论 -
使用 ASP.NET 语法创建 Web 服务器控件模板
使用 ASP.NET 语法创建 Web 服务器控件模板 在 .aspx 文件中,将元素插入到控件中标识正在创建的模板: 在模板元素中,添加 HTML 文本和其他控件作为模板的内容。包括使用常规语法的嵌入式控件的属性和数据绑定值: Name: <asp:Label runat="server"转载 2007-04-29 18:13:00 · 603 阅读 · 0 评论 -
Gridview中的内容导出到Excel
一、Gridview中的内容导出到Excel 在日常工作中,经常要将gridview中的内容导出到excel报表中去,在asp.net 2.0中,同样可以很方便地实现将整个gridview中的内容导出到excel报表中去,下面介绍其具体做法: 首先,建立基本的页面default.aspx<form id="form1" runat="server"><div><asp:GridVi转载 2007-04-30 11:04:00 · 831 阅读 · 0 评论 -
将以前写的SQL 2分查找法 通用分页存储过程算法 改成.net类实现
using System;namespace CountryPark.DAL{ /**//// /// PageList 的摘要说明。 /// public sealed class PageList { static PageList() { } /**//// /// 分页转载 2007-04-30 07:16:00 · 809 阅读 · 0 评论 -
2分法-通用存储过程分页(top max模式)版本(性能相对之前的not in版本极大提高)
--/*-----存储过程 分页处理 SW 2005-03-28创建 -------*/--/*----- 对数据进行了2分处理使查询前半部分数据与查询后半部分数据性能相同 -------*/--/*-----存储过程 分页处理 2005-04-21修改 添加Distinct查询功能-------*/--/*-----存储过程 分页处理 2005-05-18修改 多字段排序规则问题-------*原创 2007-04-30 07:28:00 · 884 阅读 · 1 评论 -
2分法-通用存储过程分页(not in版本)
--/*-----存储过程 分页处理 SW 2005-03-28创建 -------*/--/*----- 对数据进行了2分处理使查询前半部分数据与查询后半部分数据性能相同 -------*/--/*-----存储过程 分页处理 2005-04-21修改 添加Distinct查询功能-------*/--/*-----存储过程 分页处理 2005-05-18修改 多字段排序规则问题------转载 2007-04-30 07:33:00 · 629 阅读 · 0 评论 -
sql语句查询指定日期数据字段
select * from attend where Att_Cometime between 2007-05-06 00:00:00 And 2007-05-06 23:59:59原创 2007-05-06 22:28:00 · 2658 阅读 · 0 评论 -
C#.net常用函数和办法集
C#.net常用函数和办法集 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year;原创 2007-08-04 09:38:00 · 569 阅读 · 0 评论 -
ASP.NET2.0下含有DropDownList的GridView编辑、删除的完整例
Width="542px" AllowPaging="True" AllowSorting="True" DataKeyNames="DB31_1,DB31_2" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="Grid转载 2007-04-30 11:10:00 · 691 阅读 · 0 评论 -
得到中文星期 (方法)
/// /// 得到中文星期 /// /// 日期 /// 星期几 public static string GetCnWeek(DateTime dt) { string cnweek=""; switch(dt.DayOfWeek.ToString()) { case转载 2007-05-07 00:48:00 · 590 阅读 · 0 评论 -
支付宝Payto接口的c#.net实现
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.转载 2007-10-15 09:00:00 · 775 阅读 · 0 评论