- 博客(30)
- 资源 (6)
- 收藏
- 关注
转载 兼容FF 加入收藏夹和设为首页
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">兼容FF 加入收藏夹和设为首页function AddFavorite(sURL, sTitle){ try { window.external.addFavorite(sURL, sTitle);
2009-11-03 09:08:00
149
原创 AspNetPager 分页
public class PageListDAO{ static PageListDAO() { } public static DataSet GetPageListData(string _tbName, string _fldName, int _pageSize, int _page, out int pageCounts, out int counts, string
2008-11-29 13:44:00
760
2
原创 读取带有汉字的格式化的字符串
string str_num = sLine; string[] array_num = str_num.Split(,); 做这个程序的起因是每个月另一个单位的会计总会拿着一张软盘来找我,然后让我帮她计算一个文本文件中的一个合计金额。 文本文件中的内容如下:格式化的字符串如下所示 000001王淑梅 210101100098195
2008-04-25 18:15:00
412
原创 Windows窗体间的数据交互
Windows 窗体是用于 Microsoft Windows 应用程序开发的、基于 .NET Framework 的新平台。此框架提供一个有条理的、面向对象的、可扩展的类集,它使您得以开发丰富的 Windows 应用程序。一个Windows窗体就代表了.NET架构里的System.Windows.Forms.Form类的一个实例。 作者在CSDN技术论坛.NET板块下的C#分类经常看到有人
2007-12-07 12:26:00
277
原创 .NET DataList 分页源码
private const int PAGECOUNT = 9; private static int nPhotoCount = 0; private int nPhotoAllPageCount = 0; private int nPhotoCurrentPage = 0; protected void Page_Load(object sender, E
2007-08-30 11:10:00
425
原创 C++ 实现关机,重起,注消等功能
static HANDLE hToken; static TOKEN_PRIVILEGES tp;static LUID luid; OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY,&hToken);LookupPrivilegeValue(NULL,SE_SHUTDO
2007-08-17 14:58:00
297
原创 .NET 输入汉字转化为首字母的拼音
public class HZ { public static string GetChineseSpell(string strText) { int len = strText.Length; string myStr = ""; for (int i = 0; i
2007-08-14 09:39:00
586
原创 C++读取硬盘的序列号
#include #include #include #define DFP_GET_VERSION 0x00074080#define DFP_SEND_DRIVE_COMMAND 0x0007c084#define DFP_RECEIVE_DRIVE_DATA 0x0007c088#pragma pack(1) void ChangeByteOrder(PCHAR szString,
2007-07-31 15:25:00
1161
原创 C++获取当前路径
{ CString strPath; GetCurrentDirectory(MAX_PATH,strPath.GetBuffer(MAX_PATH)); strPath.ReleaseBuffer(); return strPath; } CString CPropertyGridSampleApp:
2007-07-31 15:23:00
530
原创 C++文本框控件的消息及应用
C++文本框控件的消息及应用文本框控件的消息及应用 ccrun整理,如转载请注明出处。 下表列出了文本控件的常用通知消息: 消息名称 消息说明 EN_CHANGE 编辑控件的内容一旦发生改变,就发送这条消息。 EN_ERRSPACE 任何时候只要由于内存不足以完成一项编辑操作,就发送这条消息。 EN_HSCROLL 只要用户单击了从属于一个编辑控件的水平滚动条的任何地方, 就会发送这条消息。注意这
2007-07-28 13:26:00
2530
原创 ASP。NET发电子邮件源码
using System.Collections.Generic;using System.Text;using System.Net;using System.Net.Mail; try { //编码暂硬性规定为GB2312 Encoding encoding = Encoding.GetEncoding(936);
2007-07-20 16:16:00
607
原创 几种常用Ajax实现局部刷新
----------------------------------------------------------------------------Ajax实现局部刷新 var xmlhttp; function getData() { //获取用户填写的名称 var city=document.getElementById("txt").val
2007-07-20 11:52:00
3492
3
原创 多文件上传源码
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
2007-07-20 11:01:00
415
原创 实现的彩色下拉框
Width="218px"> ////////////////////////////////////////////////////////////////////////////////////////////using System.Drawing;using System.Re
2007-07-19 16:53:00
361
原创 上传图片并生成缩略图
protected void Button1_Click(object sender, EventArgs e) { if (this.pic.PostedFile.ContentType.ToLower().IndexOf("image") { Response.Write("上传图片格式无效!"); return;
2007-07-19 15:54:00
355
原创 论坛数据库表通用结构
create table User_Tables--用户表(Users) (User_Id int identity primary key, --主键、自动编号 User_Name varchar, --用户名User_Pwd varchar, --密码User_Ask varchar(100),
2007-07-19 14:47:00
2725
2
原创 INI 操作
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.IO;using System.Runtime.InteropServices;using System.Te
2007-07-19 14:27:00
406
原创 asp.net最常用的三十三源码
1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id"); stri
2007-07-19 14:25:00
446
1
原创 拷幕代码
using System.Drawing.Imaging;saveFileDialog1控件的Filter=jpg Files(*.jpg)|*.jpg|jpeg Files(*.*)|*.jpeg|bmp Files(*.bmp)|*.bmp //调用动态链接库gdi32.dll [ System.Runtime.InteropServices.DllImportAttribute
2007-07-19 14:21:00
260
原创 文件的操作
using System;using System.IO;namespace ConsoleApplication2{ /// /// Class1 的摘要说明。 /// class Class1 { /// /// 应用程序的主入口点。 /// [STAThread] public static void Main() { // 在当前目录创建一个文件myfile
2007-07-19 14:20:00
215
原创 SQL备份
public string time = System.DateTime.Now.ToShortDateString(); string s = ".bak"; string lu = @Application.StartupPath+@"/"+this.time+""+this.comboBox1.SelectedItem.ToStri
2007-07-19 14:16:00
295
原创 利用SQL的存储过程来实现流水号
--新建一个表,保存最后一次使用的流水号,表中永远都只有一行一列记录,当生成新的流水号时记录就被更新,流水号的格式是PC+4位标准日期加4位流水号create table AutoOrdID(OrdID char(10) not null)go--随便添加一条日期早于今天的记录insert AutoOrdID values(PC05080001)go----创建自动生成定单流水号的存储
2007-07-19 13:52:00
684
原创 如何让数据进行回滚
public static int ExecuteNoQueryWithTrans(string strSQL){SqlConnection conn =null;SqlCommand cmd = null;SqlTransaction tran = null;int i = 0;try{conn = GetConnection();conn.Open();tran = conn.BeginTra
2007-07-19 13:49:00
308
原创 存储过程 ,求所有父ID
drop table testgocreate table test(ID int,parentID int)insert into testselect 1,0union all select 2,0union all select 3,0union all select 4,1union all select 5,3union all select 6,4union all select 7,
2007-07-19 13:46:00
217
原创 DataGrid导出Excel产生乱码的一个很好的解决方案
private void Export(System.Web.UI.WebControls.DataGrid dg,string fileName,string typeName) ...{ System.Web.HttpResponse httpResponse = Page.Response; httpResponse.
2007-07-19 13:42:00
319
原创 Asp.net中使用以下代码导出Excel表格的问题
private void ExportExcelFromDataGrid ( string filename , System.Web.UI.WebControls.DataGrid ToExcelGrid ) ...{ Response.Clear(); Response.B
2007-07-19 13:40:00
281
原创 如何定义一个OR070717001这样的自增编号
-- 创建表CREATE TABLE HEAD_NUMINFO(HEAD_CATEGORY CHAR(3), -- 单据类型前缀HEAD_DATECHAR(6), -- 生成的6位单据日期号HEAD_SEQINT-- 单据序列号PRIMARY KEY(HEAD_CATEGORY,HEAD_DATE))-- 从创建生成单据号存储过程create procedure makeHeadNumb
2007-07-19 13:38:00
251
原创 将IDataReader转换为DataTable
贴一段将IDataReader转换为DataTable的代码 private DataTable GetDataTableFromIDataReader (IDataReader reader) { DataTable dt = new DataTable(); bool init = false; dt.Beg
2007-07-18 14:52:00
493
原创 分页存储过程
CREATE PROCEDURE sp_AllTable_GetDataByPage/************************************************* 千万数量级分页存储过程 ************************************************参数说明:1.Tables :表
2007-06-07 13:15:00
202
原创 共享生成静态页面并分页源码
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We
2007-06-07 08:47:00
436
多文上传带缩略图和水印效果的上传控件
2010-05-25
多文上传带缩略图和水印效果的上传控件
2010-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人