导航

随笔分类 -  ASP.NET

摘要:using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Text.RegularExpressions;namespace AutoSync{ public class NewDirectory { public static Dictionary<string,string> GetDirectories(string dirname) { Dictionary<string, string> dirs... 阅读全文

posted @ 2012-12-12 14:21 xujh 阅读(414) 评论(0) 推荐(0)

摘要:需要在服务器上修改如下文件在目录C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG中找到web.config文件。这里的服务器是64位的,如果是32位则目录是C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG在web.config中找到如下内容<system.web> <... 阅读全文

posted @ 2010-08-16 18:29 xujh 阅读(515) 评论(0) 推荐(0)

摘要:ASPxGridView功能强大,在Demo大部分演示Master-Detail开发都是用直接关联SqlDataSource,用Sql语句直接从表里查询出数据来。但考虑到大型系统中经常要把业务逻辑独立处理形成一个业务逻辑层,大部分数据都是调用业务逻辑层中的接口函数取得的。所以Demo中的示例并不适用。 好在.Net中还提供ObjectDataSource,可以代替SqlDataSource里提供数... 阅读全文

posted @ 2010-05-07 18:07 xujh 阅读(2648) 评论(2) 推荐(0)

摘要:<inputonkeypress="return /[\w\u4e00-\u9fa5]/.test(String.fromCharCode(window.event.keyCode))" onpaste="return !/[^\w\u4e00-\u9fa5]/g.test(window.clipboardData.getData('Text'))" ondragenter="retur... 阅读全文

posted @ 2008-08-21 21:15 xujh 阅读(36154) 评论(1) 推荐(1)

摘要:Several members here at Webmaster World have asked if there was a method to assign 100% height to <div>'s used as left and/or right navigation menus. In some cases, members also wished to assign... 阅读全文

posted @ 2008-08-06 16:09 xujh 阅读(840) 评论(0) 推荐(0)

摘要:网上查了很多方法,都不太好使,不如自己写一个,思路就是把按钮按下时用Javascript在客户端把按钮下一次的onclick事件改为return false; 这样在服务器端页面重新送回客户端之前,再次点击按钮都不会Post到服务端。同时将按钮的style改为一行字的样子,光标也变成沙漏状。当服务端页面重新产生后Button又会回到初始状态。该方法对于F5刷新还不能防范,只是简单封闭了F5的按键,... 阅读全文

posted @ 2008-07-17 23:40 xujh 阅读(5973) 评论(26) 推荐(2)

摘要:FCKeditor相关资料简介:官方网站http://www.fckeditor.net/官方文档http://wiki.fckeditor.net/下载地址http://www.fckeditor.net/download/default.html官方演示http://www.fckeditor.net/demo/default.html如何在FCKeditor 2.6中添加插入视频和音频功能参... 阅读全文

posted @ 2007-11-19 15:39 xujh 阅读(2723) 评论(1) 推荐(1)

摘要:FreeTextBox 阅读全文

posted @ 2007-11-05 22:22 xujh 阅读(2856) 评论(1) 推荐(0)