ASP.NET
文章平均质量分 79
jbeauty
这个作者很懒,什么都没留下…
展开
-
实用的Web进度条
1.建立进度条html页面progressbar.htmscript language="javascript"> function setPgb(pgbID, pgbValue) { if ( pgbValue 100 ) { //debugger; if (lblObj = document.getElementById(pgbID+_la转载 2007-01-07 10:56:00 · 590 阅读 · 0 评论 -
如何将数据库二进制图片保存到硬盘上
1.建立一个aspx页面,copy html代码DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="http://www.w3.org/1999/xhtml" >head runat=转载 2007-01-07 11:05:00 · 740 阅读 · 0 评论 -
资源文件配置和使用
1.建立工程,比如Document,配置webconfig2.1 strings.en-us.resx2.2 strings.zh-cn.resxappSettings> add key="DefaultCulture" value="zh-cn" /> add key="CNCulture" value="zh-cn" />转载 2007-01-07 11:03:00 · 633 阅读 · 0 评论 -
如何固定table的表头
1.html代码HTML> HEAD> title>title> meta http-equiv="Content-Type" content="text/html; charset=gb2312"> style> .fixedHeaderTr {}{ position:relative; top:expression(this.offsetPa转载 2007-01-07 11:00:00 · 1134 阅读 · 0 评论 -
多行文本框限制输入字符长度(两种方法)
方法一:弹出对话框提示1.html代码HTML> HEAD> title>WebForm6title> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name转载 2007-01-07 10:58:00 · 2103 阅读 · 0 评论 -
取得控件绝对位置
HTML> HEAD> title>WebForm5title> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaultClientScr转载 2007-01-07 10:57:00 · 495 阅读 · 0 评论 -
TextBox上实现右键菜单
HTML> HEAD> title>TextBoxRightMenutitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaul转载 2007-01-07 10:57:00 · 531 阅读 · 0 评论 -
用SharpZipLib来压缩和解压文件
1.建立工程,添加引用,添加SharpZipLib.dll2.建立压缩和解压类CompressionFile.cs添加如下代码using System;using System.IO;using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.GZip;using ICSharpCode.SharpZipLib.BZip2;u转载 2007-01-07 10:51:00 · 472 阅读 · 0 评论 -
ASP.NET2.0 TreeView
1.html代码html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> title>Untitled Pagetitle> script language="javascript"> function chkAll() { //debugger;转载 2007-01-07 11:04:00 · 622 阅读 · 0 评论 -
图片渐变轮换效果
一.静态的HTML> HEAD> title>图片渐变轮换效果title> meta name="generator" content="editplus"> meta name="author" content="neng"> HEAD> body> p>图片渐变轮换效果(IE),请等几秒钟看效果p>转载 2007-01-07 11:02:00 · 885 阅读 · 0 评论 -
滚动条定位控制
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr转载 2007-01-07 11:01:00 · 1094 阅读 · 0 评论 -
Web的桌面提醒(Popup,类似msn,outlook等的信息提示)
1.PopupBox下载/Files/singlepine/PopupBox.rar--------------------------------------------------------2.EeekSoft.Popup示例代码下载/Files/singlepine/EeekSoft.PopupTest.rar 源代码下载/Files/singlepine/sourcePOP.rar转载 2007-01-07 10:59:00 · 910 阅读 · 0 评论 -
对web.config进行新增修改删除读取操作
1.建立一个class,ReadWriteConfig.csusing System;using System.Configuration;using System.Reflection;using System.Web;using System.Xml;public enum ConfigFileType{ WebConfig, AppConfig}namespace WebAp转载 2007-01-07 10:55:00 · 470 阅读 · 0 评论 -
使用XML读写删除功能来实现资源文件配置
资源文件的配置,暂不支持编辑,如果要编辑直接删除后新增就可以了。1.添加资源文件strings.zh-cn.resx和strings.en-us.resx也可以参考资源文件配置和使用xml version="1.0" encoding="utf-8"?>root> xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/转载 2007-01-07 10:52:00 · 451 阅读 · 0 评论 -
简单验证码的产生
1.建立ValidateCode.aspx页面cs代码public class ValidateCode : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { //如果要在页面a.aspx生成验证码,则在该页面添加一个图片控件,转载 2007-01-07 10:59:00 · 677 阅读 · 0 评论 -
WMI使用集锦
1.WMI简介WMI是英文Windows Management Instrumentation的简写,它的功能主要是:访问本地主机的一些信息和服务,可以管理远程计算机(当然你必须要拥有足够的权限),比如:重启,关机,关闭进程,创建进程等。2.使用时首先添加System.Management.dll,然后引用using System.Management;using System.Threa转载 2007-01-07 10:54:00 · 682 阅读 · 0 评论 -
DataHelper
1.建一个通用的处理数据的类using System;using System.Data;using System.Data.SqlClient;using System.Text;namespace Document{ /**//// /// Summary description for DataHelper. /// public class DataHel转载 2007-01-07 10:51:00 · 594 阅读 · 0 评论