随笔 - 149  文章 - 8  评论 - 248  阅读 - 21万
03 2009 档案
window.event.srcElement ---得到事件源对象
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->一个好处就是 我想让body(或其他元素内)的某些对象响应事件 就不用挨个儿去写只要在外层上写一个 然后检查event.srcElement.tagName或其他属性是不是你想要的来决定是否响应事... 阅读全文
posted @ 2009-03-31 11:29 几度夕阳红了 阅读(696) 评论(0) 推荐(0) 编辑
获得网站服务器信息
摘要:得到服务器信息: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 主机名&IP: - 端口: 操作系统: 服务器软件: .NET版本:... 阅读全文
posted @ 2009-03-24 15:18 几度夕阳红了 阅读(943) 评论(0) 推荐(0) 编辑
ASP.NET MVC Framework 正式发布
摘要:ASP.NET MVC Framework是微软官方提供的MVC模式编写ASP.NET Web应用程序的一个框架.已于2009年3月19日正式发布. MVC(Model-View-Controller)用于表示一种软件架构模式.它把软件系统分为三个基本部分:模型(Model),视图(View)和控制 阅读全文
posted @ 2009-03-24 09:01 几度夕阳红了 阅读(390) 评论(0) 推荐(0) 编辑
设计模式扫盲
摘要:设计模式(Design Pattern)使人们可以更加简单方便地复用成功的设计和体系结构。将已证实的技术表述成设计模式也会使新系统开发者更加容易理解其设计思路。 Gof中,把设计模式分为3大类共23种。 模式分类 作用 创建型(Creational) 负责对象创建 结构型(Structural) 处 阅读全文
posted @ 2009-03-23 08:40 几度夕阳红了 阅读(427) 评论(0) 推荐(0) 编辑
网页中嵌入flv播放器代码
摘要:效果图:代码: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 复制粘贴后就可以使用,实际上http://www.sopif.com/1.swf中的1.swf是1.flv,因为1.flv请求被拒绝,所以改了下扩展名... 阅读全文
posted @ 2009-03-20 17:13 几度夕阳红了 阅读(1705) 评论(0) 推荐(0) 编辑
多线程搜索磁盘上的文件
摘要:代码片段: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> private void Form1_Load(object sender, EventArgs e) { ThreadStart ts = ne... 阅读全文
posted @ 2009-03-17 09:20 几度夕阳红了 阅读(440) 评论(0) 推荐(0) 编辑
C# 设置全局热键
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using ... 阅读全文
posted @ 2009-03-16 14:55 几度夕阳红了 阅读(2384) 评论(1) 推荐(2) 编辑
多线程模拟取款
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Threading;using System.Collections;namespace MultiThreadLearn{ intern... 阅读全文
posted @ 2009-03-16 14:47 几度夕阳红了 阅读(467) 评论(0) 推荐(0) 编辑
线程间操作无效:从不是创建控件“XX”的线程访问它
摘要:线程间操作无效:从不是创建控件“XX”的线程访问它。 解决方法: 在构造函数中加入如下代码:CheckForIllegalCrossThreadCalls = false; 这个不提倡大家使用,可以使用 this.BeginInvoke(new Action(() => { this.button1 阅读全文
posted @ 2009-03-16 12:52 几度夕阳红了 阅读(467) 评论(2) 推荐(0) 编辑
页面分栏
摘要:效果图: 源代码 阅读全文
posted @ 2009-03-14 19:58 几度夕阳红了 阅读(447) 评论(0) 推荐(0) 编辑
c#算法-快速排序
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithm{ class ... 阅读全文
posted @ 2009-03-14 19:52 几度夕阳红了 阅读(400) 评论(0) 推荐(0) 编辑
c#算法-选择排序
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithm{ class ... 阅读全文
posted @ 2009-03-14 19:51 几度夕阳红了 阅读(345) 评论(0) 推荐(0) 编辑
c#算法-冒泡排序
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithm{ class ... 阅读全文
posted @ 2009-03-14 19:50 几度夕阳红了 阅读(388) 评论(0) 推荐(0) 编辑
163邮箱自动登录
摘要:在winform窗体上,放一个WebBrowser控件,就行了。[代码]用户名和密码要写成你自己的邮箱用户名和密码,这样才能登陆邮箱。完成程序下载webBrowser1执行js: HtmlDocument doc = webBrowser1.Document;doc.InvokeScript("submitForm", new object[] { });webBrowser1增加post数据:HtmlElement add = doc.CreateElement("<input name='bssCredentials.operatorId 阅读全文
posted @ 2009-03-11 12:52 几度夕阳红了 阅读(1137) 评论(0) 推荐(0) 编辑
ASP.NET技巧
摘要:数据控件里传递多个值:<a href='../BrowsePost.aspx?smallid=<%#Eval("PostType_Id") %>&postid=<%#Eval("Post_Id") %>'><%#Eval("Post_Title") %></a>DropDownList 默认显示项ddl.Items.FindByValue("value值").Selected=trueSQL varchar中设50个字节,可以保存最 阅读全文
posted @ 2009-03-09 11:54 几度夕阳红了 阅读(672) 评论(0) 推荐(0) 编辑
GridView 固定行高
摘要:protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e) { for (int i = 0; i < e.Row.Cells.Count; i++) { e.Row.Cells[i].Attributes.Add("style", "white-... 阅读全文
posted @ 2009-03-06 13:15 几度夕阳红了 阅读(3331) 评论(0) 推荐(1) 编辑
实用的js下拉菜单
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> JavaScript下拉菜单 栏目1 栏目1->菜单1 ... 阅读全文
posted @ 2009-03-05 11:01 几度夕阳红了 阅读(457) 评论(0) 推荐(0) 编辑
JS密码强度验证
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 无标题页 输入密码: 密码强度: ... 阅读全文
posted @ 2009-03-02 10:55 几度夕阳红了 阅读(697) 评论(0) 推荐(1) 编辑
JS图片自动切换
摘要:效果: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->JavaScript 图片切换展示效果 1 2 3 1 2 3 阅读全文
posted @ 2009-03-02 10:53 几度夕阳红了 阅读(927) 评论(0) 推荐(0) 编辑
JS日期处理
摘要:效果如图: Html代码: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 无标题页 日期1: 日期2: 阅读全文
posted @ 2009-03-02 10:44 几度夕阳红了 阅读(452) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示