11 2011 档案
利用Response的WriteFile方法输出一些文件
摘要:protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Response.WriteFile("TextFile.txt"); } protected void Button2_Click(object sender, EventArgs e) { string path = Server.MapPath("~/字符串专题.doc");//文件的路径 System.IO.FileI
阅读全文
js控制图片旋转角度
摘要:<html> <head> <title></title> <script type="text/javascript"> function rotateImage() { imageToRotate = document.getElementById('imgRotate'); imageToRotate.style.filter= "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand')&
阅读全文
首页JS图片切换特效
摘要:<!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 http-equiv="Content-Type" content="text/html; charset=gb23
阅读全文
四屏焦点图片轮换效果代码
摘要:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title></title></head><style type="text/css">*{margin:3;padding:0;font-size:13px;}body{font-size:12px;color:#333333;text-align:center;font-family:
阅读全文
一款手动幻灯图片效果
摘要:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>网页特效| www.qpsh.com</title><style>.spic a img{-moz-opacity:0.5; filter:alpha(opacity=50);border:0px;}.spic a:hover{font-size:9px;}.spic a:hover img{-moz-opaci
阅读全文
asp.net 利用Global.asax 捕获整个解决方案中的异常错误
摘要:之前做项目的时候都是在每个页面中处理这不同的异常信息,一个页面数下来,很多个try{}catch{}语句块,令整个代码结构有些不够美观。 今天看到一篇帖子,是关于利用全局应用程序类来帮忙获取异常信息,利用 server.Transfer('''')指定接受错误的页面;加上在接受错误页面中利用 server.GetLastError() 获取前一个异常源。 Global.asax 中的Application_Error 函数如下:view plaincopy to clipboardprint?protectedvoidApplication_Error(obje
阅读全文