JasonBie

2012年4月11日

Page Tracing

摘要: Enabling Tracing<%@PageTrace="true"...%>orprotectedvoidPage_Load(Objectsender,EventArgse){Trace.IsEnabled=true;}By default, trace messages are listed in the order they were written by your code. Alternatively, youcan specify that messages should be sorted by category using the TraceM 阅读全文

posted @ 2012-04-11 16:24 JasonBie 阅读(237) 评论(0) 推荐(0) 编辑

Logging Exceptions

摘要: Writing to the Event LogYou can interact with event logs in an ASP.NET page by using the cl asses in the System.Diagnosticsnamespace. First, import the namespace at the beginning of your code-behind file:using System.Diagnostics;The following example rewrites the simple ErrorTest page to use event l 阅读全文

posted @ 2012-04-11 15:44 JasonBie 阅读(235) 评论(0) 推荐(0) 编辑

2012年3月15日

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

摘要: 64位系统上编译运行32位程序时如果要访问Access数据库会出现The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine错误, 解决方法是:打开项目配置管理器(Configuration Manager),将项目的运行平台(Platform)修改为x86,也就是使被编译的程序在32位模式下工作。 阅读全文

posted @ 2012-03-15 09:12 JasonBie 阅读(262) 评论(0) 推荐(0) 编辑

2012年3月12日

XPATH选取特征值的方法

摘要: XPath is one of the flexible standard for querying an xml document.Let us consider the following CD xml as example:-<?xml version="1.0" encoding="ISO-8859-1"?><catalog><cd country="USA"><title>Empire Burlesque</title><artist>Bob Dylan 阅读全文

posted @ 2012-03-12 15:23 JasonBie 阅读(224) 评论(0) 推荐(0) 编辑

2012年3月9日

分享 MSN 2011 去广告+最小托盘 方法

摘要: 去广告1.用记事本打开 C:\WINDOWS\system32\drivers\etc 目录中的 hosts 文件2.将以下代码添加到 hosts 文件末尾0.0.0.0 rad.msn.com0.0.0.0 rad.live.com登录 MSN Messenger 看看,广告是不是不见了打开MSN,点击“工具”->“选项”->“消息”在“对话”一组去掉“在对话窗口中显示扩展的页脚”的勾,确定。最小化托盘右键点击 MSN 快捷方式->属性->兼容性->“以兼容模式运行这个程序”打勾->下拉列表选Windows Vista->确定->重启MSN 阅读全文

posted @ 2012-03-09 22:30 JasonBie 阅读(194) 评论(0) 推荐(0) 编辑

2012年1月27日

通过Google CDN加载jQuery库

摘要: 通过Google CDN加载jQuery库1. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>2. <script type="text/javascript" src="http://www.google.com/jsapi">google.load("jquery","1.4 阅读全文

posted @ 2012-01-27 23:09 JasonBie 阅读(302) 评论(0) 推荐(0) 编辑

2012年1月18日

jQuery选择器

摘要: 根据所获取页面中元素的不同,可以将jQuery选择器分为: -基本选择器 -层次选择器 -过滤选择器 -表单选择器其中,过滤选择器中又可分为: -简单过滤选择器 -内容过滤选择器 -可见性过滤选择器 -属性过滤选择器 -子元素过滤选择器 -表单对象过滤选择器1. 基本选择器#id: 根据给定的ID一个元素,返回单个元素例子:$(function(){ $("#divOne").css("display","block");})element: 根据给定的元素名匹配所有元素,返回元素集合例子:$(function()){ $(" 阅读全文

posted @ 2012-01-18 18:09 JasonBie 阅读(380) 评论(0) 推荐(0) 编辑

jQuery概述

摘要: jQuery是集JavaScript, CSS, DOM, Ajax于一体的强大框架体系。主旨:Write less, do more。1. jQuery基本功能 1)访问和操作DOM元素 2)控制页面样式(可以兼容各种浏览器) 3)对页面事件的处理 4)大量插件在页面中的运用 5)与Ajax技术的完美结合 2. 搭建jQuery开发环境 1)在http://jquery.com下载。 2)在script标签中引用: <script language="javascript" type="text/javascript" src="Jsc 阅读全文

posted @ 2012-01-18 17:10 JasonBie 阅读(179) 评论(0) 推荐(0) 编辑

Ajax常见问题及解决

摘要: 1. 缓存的问题下面的代码会产生缓存,使得每次请求返回的结果都一样。<script type="text/javascript">document.onclick=function(){ var xhr=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLDOM"); xhr.open("get","demo.php",true); xhr.onreadystatechange=function(){ if 阅读全文

posted @ 2012-01-18 14:42 JasonBie 阅读(401) 评论(0) 推荐(0) 编辑

2012年1月17日

Ajax简介

摘要: 一、什么是AjaxAjax是Asynchronous JavaScript and XML(异步JavaScript和XML)的简称,是指一种创建交互式网页应用的网页开发技术,实际它是多种技术的融合:1. ECMAScript2. DOM以及CSS,XHTML3. XML及XML的一些扩展语言4. XMLHttpRequest对象,这个是浏览器提供的可以用于异步通信的JavaScript对象,几乎所有的浏览器都支持5. 服务器脚本的支持,服务器脚本可以是其他任何一步脚本语言二、网页发展历史:1. 文本2. CGI3. Sun的Java Applet4. Netscape的JavaScript( 阅读全文

posted @ 2012-01-17 18:15 JasonBie 阅读(286) 评论(0) 推荐(0) 编辑

导航