随笔分类 -  asp.net

摘要:1. 在http://orangoo.com/labs/GreyBox/下载GreyBox2. 在<header></header>中加上 <script type="text/javascript" language="javascript"> var GB_ROOT_DIR = "./greybox/"; </script> <script... 阅读全文
posted @ 2009-12-24 14:23 novel 阅读(686) 评论(1) 推荐(0)
摘要:方法1:using System.IO;if (File.Exists("d:\a.exe")) { //do something }if (Directory.Exists("d:\abc\")) { //do something }方法2:DirectoryInfoaPath=newDirectoryInfo(PathName); if (aPath.Exists) { //do somet... 阅读全文
posted @ 2009-09-25 16:12 novel 阅读(366) 评论(0) 推荐(0)
摘要:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>Ajax提示框</title><style type="text/css">a{ color:#000; font-size:12px;text-de... 阅读全文
posted @ 2009-08-26 14:53 novel 阅读(348) 评论(0) 推荐(0)
摘要:1.读/写connectionStrings/appSettings Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public static string GetConnectionStringsConfig(string connect... 阅读全文
posted @ 2008-12-16 16:42 novel 阅读(864) 评论(0) 推荐(0)
摘要:ASP.NET服务端GZIP压缩模块的作用及工作原理,很多人编写网页的时候页面因为使用了大量的JS特效又或者放置很多大型动态广告导致了页面或脚本体积庞大,通常都会使用一些压缩工具本地对页面或脚本进行一定的压缩后再上传到服务器,但这样的压缩工具一般压缩率有限,优化自然也不明显,本文章介绍的压缩模块的作用就是对asp.net的页面或脚本等资... 阅读全文
posted @ 2008-11-26 10:58 novel 阅读(209) 评论(0) 推荐(0)
摘要:ASP.NET服务端GZIP压缩模块的作用及工作原理,很多人编写网页的时候页面因为使用了大量的JS特效又或者放置很多大型动态广告导致了页面或脚本体积庞大,通常都会使用一些压缩工具本地对页面或脚本进行一定的压缩后再上传到服务器,但这样的压缩工具一般压缩率有限,优化自然也不明显,本文章介绍的压缩模块的作用就是对asp.net的页面或脚本等资... 阅读全文
posted @ 2008-11-26 10:08 novel 阅读(311) 评论(0) 推荐(0)
摘要:原文地址:http://www.hanselman.com/blog/WhatGreatNETDevelopersOughtToKnowMoreNETInterviewQuestions.aspx 作者:Scott Hanselman 译者:Tony Qu 前些日子我发了一份ASP.NET面试题清单. 有一些访客比较保守,觉得我是没事找事,里面都是些很琐碎的问题。剩下的人则说“蛮不错的,我得去看... 阅读全文
posted @ 2008-11-25 08:40 novel 阅读(143) 评论(0) 推荐(0)
摘要:脚本说明: 第一步:把如下代码加入区域中 第二步:把区域中内容改为: 阅读全文
posted @ 2008-11-21 09:05 novel 阅读(430) 评论(0) 推荐(0)
摘要:今天由于IIS有点问题,没有办法以好把IIS重装了一下,结果再打开asp.net网站时,出现下面的问题, 无法显示 XML 页。 使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。 ... 阅读全文
posted @ 2008-11-13 14:02 novel 阅读(1516) 评论(1) 推荐(0)
摘要:在父窗口中用以下语句打开模式窗口 function OpenWin(frmWin,width,height) { var obj = new Object(); // 把父页面窗口对象当作参数传递到对话框中,以便对话框操纵父页自动刷新。 para1=document.getElementById(para1).value; para2=docume... 阅读全文
posted @ 2008-11-08 11:38 novel 阅读(524) 评论(1) 推荐(0)
摘要:public static void openChildrenWindow(System.Windows.Forms.Form parentWindow, System.Windows.Forms.Form childrenWindow) { foreach (System.Windows.Forms.Form ff in parentWindow.MdiC... 阅读全文
posted @ 2008-10-04 14:08 novel 阅读(687) 评论(0) 推荐(0)