数据操作类 SQLHelper.cs
摘要:/// <summary>通用数据库接口 002003using System; 004using System.Collections; 005using System.Collections.Specialized; 006using System.Data; 007using System.Data.SqlClient; 008using System.Configuration...
阅读全文
AspNetPager 样式以及使用(漂亮)
摘要:分页是Web应用程序中最常用到的功能之一,AspNetPager 简单实用,应用到项目后台中,棒极了! 自定义样式:后台:
阅读全文
NPOI导出Excel表功能实现(多个工作簿)
摘要:NPOI简介:http://www.cnblogs.com/tonyqus/archive/2009/03/16/1409966.htmlNPOI官网:http://npoi.codeplex.com/ 实例下载:http://files.cnblogs.com/zhengjuzhuan/NPOIHelper.rar Excel生成操作类: 代码调用方法: 代码
阅读全文
简单加载TreeView1控件代码
摘要:http://www.cnblogs.com/xiachufeng/archive/2009/12/29/1635538.htmlTreeNode node = new TreeNode(); node.Text = "上海"; node.Value = "上海"; this.TreeView2.Nodes.Add(node); TreeNode node1 = new TreeNode(); n...
阅读全文
Asp.net常用的51个代码(非常实用)
摘要:1.//弹出对话框.点击转向指定页面Response.Write("<script>window.alert('该会员没有提交申请,请重新提交!')</script>");Response.Write("<script>window.location ='http://www.51aspx.com/bizpulic/upmeb.aspx'</script&...
阅读全文
服务器常用端口
摘要:web 的端口80 FTP的端口是 21 SSH (Secure Shell)服务使用tcp 22 端口TELNET 23 端口DHCP server的端口号是67 MAIL 的端口号是25\110 pop3\smtp 的端口号是 110/25 DNS 的端口号是 53HTTP通信用的端口号是80SMMP:性能测试标准方法mysql默认端口是3306 Sql服务的默认端口. 3389 SQL Se...
阅读全文
防止sql攻击
摘要:usingSystem.Web;2usingSystem.Configuration;34namespaceMoosoft.OA.HttpModule5{6///<summary>7///SQL注入攻击防御类8///</summary>9publicclassProcessRequest10{11///<summary>12///构造函数13///</su...
阅读全文
file文件操作
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Text;usingSystem.Web;namespaceMoosoft.OA.Public{///<summary>///文件系统的处理方法///</summary>///<remarks>文件系统的处理方法</...
阅读全文
身份验证类
摘要:usingSystem;namespaceMoosoft.OA.Public{///<summary>///身份证验证类///</summary>///<remarks>身份证验证类</remarks>internalclassIDCardValid{internalIDCardValid(){////TODO:Addconstructorlogic...
阅读全文
很完整的字符串处理
摘要:using System;using System.Collections;using System.IO;using System.Linq;using System.Security.Cryptography;using System.Text;using System.Text.RegularExpressions;using System.Web;using System.Web.Secu...
阅读全文
xml处理类
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Text;usingSystem.Web;usingSystem.Xml;usin...
阅读全文
文件上传类和图片处理类
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Web;usingSystem.Web.UI;usingS...
阅读全文
.net 完美cookies操作
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1usingSystem;2usingSystem.Web;34namespaceMoosoft.OA.Public5{6///<summary>7///Cookie帮助类8///<...
阅读全文
ASP.Net 中Alert、Confirm、Prompt的用法【转】
摘要:Asp.net中,有的时候在执行某个操作的时候希望能够弹出一些信息框:alert弹出的警告信息框,confirm弹出的包含确认和取消两个按钮的信息框,以及prompt弹出的输入数据的对话框。这里有两种方法来实现。 一种是采用javascript函数来实现,代码将应用与.aspx文件的源代码(html语言)中,在HTML控件中调用javascript函数来实现Alert、Confirm、Prompt...
阅读全文
ASP.NET中提交按钮弹出消息框,页面不空白
摘要:最普通的写法是 [代码]这种方法当弹出消息框时背景会变白 [代码]//.NET在后置代码中输入JS提示语句(背景不会变白) Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('加入暂存架成功!');</scrip...
阅读全文
水印的代码
摘要:加水印的功能代码如下所示代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///图片修改类,主要是用来保护图片版权的,版权归原作者所有///</summary>publicclasspicmark{#r...
阅读全文
GridView 72般绝技[转]
摘要:作者:清清月儿 快速预览:GridView无代码分页排序GridView选中,编辑,取消,删除GridView正反双向排序GridView和下拉菜单DropDownList结合GridView和CheckBox结合鼠标移到GridView某一行时改变该行的背景色方法一鼠标移到GridView某一行时改变该行的背景色方法二GridView实现删除时弹出确认对话框GridView实现自动编号GridV...
阅读全文
IIS7.0在Vista上的错误 - 0x80070021
摘要:IIS7.0在Vista上的错误 - 0x80070021 收藏 IIS7.0在Vista上的错误HTTP Error 500.19 - Internal Server Error ,错误代码为0x80070021 ,大概原因为IIS7.0的安全设定相比前版本有很大的变更。IIS7.0的安全设置文件在%windir%\system32\inetsrv\config\applicationHost....
阅读全文