章术

导航

2013年1月4日

.net js调用后台ajax方法

摘要: 我添加的dll为:Ajax.dll可下载数:20共享链接:http://163.fm/S4dWNIS 提取码:j1Aaf7qM1:web.config里面添加: <httpHandlers> <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/> </httpHandlers>2:在page_load里面添加语句 protected void Page_Load(object sender, Eve 阅读全文

posted @ 2013-01-04 10:21 章术 阅读(222) 评论(0) 推荐(0) 编辑

2012年12月13日

盐城房子

摘要: http://www.goufw.com/newhouse/maps.php 阅读全文

posted @ 2012-12-13 12:52 章术 阅读(121) 评论(0) 推荐(0) 编辑

2012年12月12日

EventLog 源source System.UnauthorizedAccess

摘要: 还是这样写eventlog吧(不然会报错:System.UnauthorizedAccess 1001)publicstaticvoidWriteEntry(stringsource,stringmessage, EventLogEntryType type,inteventID,shortcategory,byte[] rawData) {EventLog log =newEventLog();try{log.Source = source;log.WriteEntry(message, type, eventID, category, rawData);}finally{log.Dispo 阅读全文

posted @ 2012-12-12 10:15 章术 阅读(426) 评论(1) 推荐(0) 编辑

2012年12月11日

HashTable 有序遍历

摘要: 没有直接的方法,只有思维转换的方法,如下。System.Collections.Hashtable hashtable = new Hashtable(); hashtable.Add("Force Kill", "True"); hashtable.Add("UnnecessaryUsedcarImageAllCount", RemoverBase._UnnecessaryUsedcarAllCount); hashtable.Add("Unnecessa... 阅读全文

posted @ 2012-12-11 17:31 章术 阅读(503) 评论(0) 推荐(0) 编辑

xsd 进行判断config是否符合规则

摘要: //----------------------------------------------------------------// <copyright file="ConfigFileLoader.cs" company="Microsoft">// Copyright (c) Microsoft Corporation. All rights reserved.// </copyright>// <summary>Check and load configuration file.</summary&g 阅读全文

posted @ 2012-12-11 15:03 章术 阅读(267) 评论(0) 推荐(0) 编辑

2012年12月10日

如何进行多线程传值

摘要: http://tech.ddvip.com/2011-12/1322790207170141.html 阅读全文

posted @ 2012-12-10 16:10 章术 阅读(177) 评论(0) 推荐(0) 编辑

如何批量进行copy 图片

摘要: cmd->C:\Users\v-zhany>FOR /L %F IN (1,1,100) DO COPY D:\Workspace\v-zhany\images\qq.jpg D:\Workspace\v-zhany\images\%F.JPG 阅读全文

posted @ 2012-12-10 16:09 章术 阅读(387) 评论(0) 推荐(0) 编辑

2012年11月27日

Android clipboard setPrimaryClip

摘要: (I)这个要注意你使用的是哪一版的SDK ,以11为界,是不同的。 〉=11 android.content public class ClipboardManager extendsClipboardManager(abstruct content.text)(II)首先看看你的AndroidManifest.xml <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="16" /> 大于等于11和小于11是有很大区别的。 A: 大于等于11 1.写入剪贴板: ... 阅读全文

posted @ 2012-11-27 14:28 章术 阅读(1061) 评论(0) 推荐(0) 编辑

2012年11月16日

SqlController

摘要: //----------------------------------------------------------------// <copyright file="SqlController.cs" company="Microsoft">// Copyright (c) Microsoft Corporation. All rights reserved.// </copyright>//----------------------------------------------------------------nam 阅读全文

posted @ 2012-11-16 13:44 章术 阅读(241) 评论(0) 推荐(0) 编辑

Asp.net 读取config文件

摘要: config:<?xml version="1.0"?><appSettings> <!-- The path about dbConnectionString --> <add key="DBConnectionStringFile" value="D:\C3\config\Microsoft.Msn.Tokyo.DbConnectionString.xml"></add> <!-- The key to get c3ArticleDBConnectionString 阅读全文

posted @ 2012-11-16 13:38 章术 阅读(299) 评论(0) 推荐(0) 编辑