
其他
浪仙
了解就知道
展开
-
.net MD5加密
//计算文件的MD5码 public static string GetFileMD5(string path) { string ret = ""; FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);原创 2012-01-13 16:59:16 · 1443 阅读 · 0 评论 -
好看的表单样式
<style>body { scrollbar-face-color: #ededf3; scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #93949f; scrollbar-3dlight-color: #ededf3; scrollbar-arrow-col...原创 2012-05-21 14:48:38 · 1602 阅读 · 0 评论 -
文本框只允许输入数字
文本框只允许输入数字.net/javascript<input type="text" name="test" onKeyUp="test1.value=(this.value=this.value.replace(/\D/g,'').substring(0,6)).substring(0,3)" > <br /><input name="test1" type...原创 2012-06-08 16:29:18 · 25909 阅读 · 1 评论 -
跟随页面浮动的广告层
xScrollStick Demo/*说明: x系列是Hutia开发的系列JS代码,配合相应的css后可以实现快速的自定义标签 目前xScrollStick支持的浏览器类型为:IE5.5, FF1.5 xScrollStick的标签为 Content... 支持属性: 无 支持方法: 无*原创 2012-04-16 14:10:11 · 866 阅读 · 0 评论 -
页面变灰色居中的浮动层对话框特效
http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">http://www.w3.org/1999/xhtml">浮动层居中的对话框效果演示HTML { HEIGHT: 100%}BODY { HEIGHT: 100%}BODY { FONT-SIZE: 14px; FONT-FAM原创 2012-04-16 13:41:23 · 897 阅读 · 0 评论 -
用.Net做选项卡特效
EnableTheming="True" Height="30px" OnMenuItemClick="Menu1_MenuItemClick" Orientation="Horizontal" Width="131px"> ............................................原创 2012-04-01 14:48:29 · 1983 阅读 · 0 评论 -
下划线式的Textbox
.input4 { font-family: "宋体", "仿宋_GB2312", "黑体"; font-size: 12px; color: #000000; text-decoration: none; height: 18px; border-top-width: 0px; border-right-width: 0px; border-bottom-w原创 2012-03-13 09:51:11 · 678 阅读 · 0 评论 -
js调用.net后台事件,和后台调用前台等方法总结
1. javaScript函数中执行C#代码中的函数:方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为document.getElementByIdx("btn1").click(); 3、在前台或后台调用js函数,激发click事件,等于访问后台c#函数;方法二:1、函数声明为pu原创 2012-03-09 14:34:58 · 986 阅读 · 1 评论 -
Ajax中CalendarExtender样式设置
.myCalendar .ajax__calendar_container{ border:1px solid #646464; background-color:Lemonchiffon; width:200px; text-align:center; color:purple; } .myCalendar .aj原创 2012-03-07 11:10:18 · 4690 阅读 · 5 评论 -
.net 后台创建简单的表格
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //创建一个table Table table1 = new Table(); //背景色 table原创 2012-03-02 15:19:08 · 1601 阅读 · 1 评论 -
经典SQL语句大全
下列语句部分是Mssql语句,不可以在access中使用。 SQL分类: DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE) DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT) DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK) 首先,简要介绍基础语句: 1、说明:创建数据库转载 2012-02-13 15:40:58 · 365 阅读 · 0 评论 -
清空所有文本框的值
protected void ClearControl(ControlCollection ct) { foreach (Control ctl in ct) { if (ctl is TextBox) { TextBox t = (TextBox)ctl;原创 2012-05-09 10:36:08 · 914 阅读 · 0 评论