进度条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> <meta ...
阅读全文
linq操作datatable
摘要:DataTabledt=newDataTable();dt.Columns.Add("colname1");dt.Columns.Add("http://www.dc9.cn/");dt.Columns.Add("colname3");varselectedRows=fromrindt.AsEnumerable()orderbyr.Field<string>("colname3")de...
阅读全文
ASP.NET中漂亮的弹出对话框
摘要:Tomas Petricek著Highly customizable JavaScript popup control for web page wrapped in ASP.NET custom control.ASP.NET弹出窗口一个使用javascript编写的,用于在ASP.NET中弹出对话框的用户控件,有渐进颜色,还有能设定弹出时的移动的时间,支持Mozilla, Internet E...
阅读全文
C# 操作数据库,数据库表
摘要:下面是Sql Server 和 Access 操作数据库结构的常用Sql,希望对你有所帮助。 内容由海娃整理,不正确与不完整之处还请提出,谢谢。 新建表: create table [表名] ( [自动编号字段] int IDENTITY (1,1) PRIMARY KEY , [字段1] nVarChar(50) default '默认值' null , [字段2] ntext null , [...
阅读全文
实现MSN弹出窗口特效示例代码
摘要:<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>IT知道网</title> <SCRIPT language=JavaScript>... <!-- function CLASS_MSN_MESSAGE(id,width,height,...
阅读全文
加密和解密运算代码
摘要:using System;using System.Security.Cryptography;using System.Text;namespace AttendService{ public static class DESEncrypt { #region ========加密===== private static string txtKey = "PatrickpanP="; priva...
阅读全文
保留一下遍历页面所有控件的方法
摘要:public vod fu(System.Web.UI.Control page) { int nPageControls = page.Controls.Count; for (int i = 0; i < nPageControls; i++) { foreach (System.Web.UI.Control control in page.Controls[i].Controls) {...
阅读全文
获取图片地址代码(严格按HTML编写的图片地址)
摘要:protected string GetPic(string tempstr) { string str = tempstr.ToLower();int stop; int start = str.IndexOf("src=\""); if (start > 0) { stop = str.IndexOf("\...
阅读全文
正则表达式获取内容中的数字
摘要:private int GetNumber(string par) { string strTempContent =par; strTempContent = System.Text.RegularExpressions.Regex.Replace(strTempContent, @"[^\d]*", ""); return Convert.ToInt32(strTempConte...
阅读全文