摘要: <head><script src="jQuery/jquery-1.4.1.min.js" type="text/javascript"></script> <script> $(document).ready(function () { setInterval("startRequest()",1000); }); function st... 阅读全文
posted @ 2010-11-23 22:21 tianlong88 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--使用方式DbHelperdb;OpenFileDialogofd=newOpenFileDialog();ofd.Filter="SQLite数据文件(*.db3;*.db;*.sqlite)|*.db3... 阅读全文
posted @ 2010-09-22 07:21 tianlong88 阅读(602) 评论(1) 推荐(0) 编辑
摘要: 效果: 共1页 首页 上一页 1 2 3 4 5 6 7 8 9 10 ....下一页 末页 调用页面(Aspx):1.在要显示分页导航的地方加个DIV标签: [代码]2.调用页的代码(CS): [代码]3.PageNums实现分页类(PageNums.cs):(c#)代码 Code highlighting produced by Actipro CodeHighlighter (freewar... 阅读全文
posted @ 2010-09-09 07:00 tianlong88 阅读(396) 评论(1) 推荐(0) 编辑
摘要: js去除空格自定义函数<HTML><HEAD><TITLE>JavaScript Trim Function</TITLE><SCRIPT LANGUAGE=javascript><!--//****************************************************************// Desc... 阅读全文
posted @ 2010-09-08 09:50 tianlong88 阅读(702) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using ... 阅读全文
posted @ 2010-09-04 14:50 tianlong88 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 所谓排序,就是要整理文件中的记录,使之按关键字递增(或递减)次序排列起来。当待排序记录的关键字都不相同时,排序结果是惟一的,否则排序结果不惟一。在待排序的文件中,若存在多个关键字相同的记录,经过排序后这些具有相同关键字的记录之间的相对次序保持不变,该排序方法是稳定的;若具有相同关键字的记录之间的相对次序发生改变,则称这种排序方法是不稳定的。要注意的是,排序算法的稳定性是针对所有输入实例而言的。即在... 阅读全文
posted @ 2010-09-04 07:45 tianlong88 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 一直在想在asp.net中怎么才能向在java中那样用struts那样做页面请求。当然asp.net mvc就是类似struts的东西吧,不过还没来得及学习。今天就用ashx来接收页面请求,并调用后台,然后返回数据给前台,用jquer .ajax提交请求,接收ashx返回的数据。例子: 例子是要实现页面加载时从数据库读取数据,并把数据放到一个下拉列表中。(因为是用ajax,就建html页面就行了,... 阅读全文
posted @ 2010-08-08 18:48 tianlong88 阅读(7204) 评论(4) 推荐(8) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Security.Cryptography;usingSystem.IO;namespaceBaseFunction{///<summary>///常用函数。///作者:苏飞///时间:20090322///</summary>p... 阅读全文
posted @ 2010-07-24 09:56 tianlong88 阅读(255) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Collections;namespaceSystemDAO{///<summary>///数据库的通用访问代码苏飞修改//////此类为抽象类,///不... 阅读全文
posted @ 2010-07-24 09:55 tianlong88 阅读(257) 评论(1) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Text.RegularExpressions;///<summary>///开发人:苏飞///开发时间:2009-09-11///主要功能:判断页面各个控件的输入///</summary>namespaceB... 阅读全文
posted @ 2010-07-24 09:53 tianlong88 阅读(373) 评论(0) 推荐(0) 编辑