开源
文章平均质量分 81
pupstar
做。net项目
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
WebBrowser通用打印类
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原创 2008-07-12 11:21:00 · 1515 阅读 · 1 评论 -
转换人民币大小金额
using System;using System.Collections.Generic;using System.Text;namespace Common{ /// /// 转换人民币大小金额。 /// public class Rmb { /// ///原创 2009-09-18 10:35:00 · 956 阅读 · 0 评论 -
一个不错的媒体网页播放器(国外的)
<!--google_ad_client = "pub-2953450431029830";/* 468x60, 创建于 09-9-16 */google_ad_slot = "4941245531";google_ad_width = 468;google_ad_height = 60;// --><!-- body { background-col原创 2009-09-17 13:16:00 · 2831 阅读 · 0 评论 -
检测SQL注入式攻击代码
两个类:(页面数据校验类)PageValidate.cs 基本通用。代码如下:using System;using System.Text;using System.Web;using System.Web.UI.WebControls;using System.Text.RegularExpressions;namespace Common{ ///原创 2009-09-18 10:43:00 · 804 阅读 · 0 评论 -
INI文件读写类
using System;using System.Runtime.InteropServices;using System.Text;using System.IO;namespace Common{ /// /// INI文件读写类。 /// public class INIFile { public string pat原创 2009-09-18 10:52:00 · 984 阅读 · 0 评论 -
System.Management.ManagementException: 访问遭到拒绝的解决方案
前几天在开发中弄了一个产品注册机制,然后要获取硬件的相关参数,比如:网卡MAC地址,CPUID等,当程序写完了,在本地调式一点问题也没有,但是传到服务器上问题就来了,程序错误:System.Management.ManagementException: 访问遭到拒绝 在 System.Management.ManagementException.ThrowWithExtendedInfo(Mana原创 2009-09-21 08:22:00 · 17584 阅读 · 1 评论 -
跨页选择项
原理: 1、设置GridView的DataKeyNames。 2、把选择的项的值放到ViewState中。 下面是部分代码:aspx页:<!-- function SelectAll(tempControl) { var theBox=tempControl; xState=theBox.checked;原创 2009-12-07 12:59:00 · 738 阅读 · 0 评论 -
SQL实现工作日处理函数(标准节假日)
if exists (select * from dbo.sysobjects where id = object_id(N[dbo].[f_WorkDay]) and xtype in (NFN, NIF, NTF))drop function [dbo].[f_WorkDay]GO--计算两个日期相差的工作天数CREATE FUNCTION f_WorkDay(@dt_be原创 2010-05-07 22:53:00 · 2581 阅读 · 0 评论
分享