跳到主要內容

發表文章

目前顯示的是 2011的文章

The ‘Microsoft.ACE.OLEDB.12.0′ provider is not registered on the local machine.

The ‘Microsoft.ACE.OLEDB.12.0′ provider is not registered on the local machine. When running 64-bit windows and there are no MS Access drivers that run 64 bit.So to resolve it you need to change the build configuration to x86 found in the programs properties. Then click on Build and change the Platform target from Any CPU to x86.Recompile your program , it works like charm. http://ybbest.wordpress.com/2009/07/22/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine/

[SQL server]手動將結構描述改成dbo

手動將結構描述改為dbo 開啟Microsoft SQL Server Management Studio==>選擇該資料庫==>選擇資料表,其結構 描述為使用者名稱的==>到資料表上按滑鼠右鍵,選擇設計==>在屬性中選結構描述==>變更擁有者 為dbo,存檔==>擁有者就改為dbo,就可刪除帳號即可

[asp]asp + JSON

送出Json的asp <!--#include virtual="_lib/JSON_2.0.4.asp"--> <% Dim member Set member = jsObject() member("name") = "MAX" member("surname") = "max" member("message") = "Hello World" member.Flush %> 接收json的asp <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div id="dname"></div> <script> $.getJSON("jsonTest.asp", function(data) { $("#dname").text(data.name); }); </script> </body> </html> aspjson

[ASP] Use HashTable In asp

用CreateObject("Scripting.Dictionary") 來產生 hashtable Set MyHash = CreateObject("Scripting.Dictionary") MyHash.Add "key", "Value" hashKeys = MyHash.keys for each k in MyHash.keys responsew.write( MyHash.Item(k)) next VBScript » Objects » Dictionary

[jQuery]JQuery Validation and Ajax

imports jquery.min.js imports jquery.validate.min.js [Ajax] function callAjax(){ $.ajax({type: "POST", url: "ajax.asp", data: {fun: "checkCardNO", CardNo: $("#CardNo").val()}, dataType:"html", success:function(msg){ $("#AjaxValue").val(msg); /* Use Hidden input or div to transfer Ajax Value */ } }) } [Form Validation] --Add Validation Function $.validator.addMethod("checkRegisterd", function(value, element) { callAjax(); if($("#AjaxValue").val()=="Unregisted") return true; } ); $.validator.addMethod("Useless", function(value, element) { callAjax(); if($("#AjaxValue").val()!="noData") return true; } ); --Validation $().ready(function() { $("#form1").validate({ rules: { CardNo: { required: true, Useless: true, checkRegisterd: true }, Name: "required", Tel: { require...

Autoruns for Windows v10.07

An useful software. Autoruns for windows Introduction This utility, which has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login, and shows you the entries in the order Windows processes them. These programs include ones in your startup folder, Run, RunOnce, and other Registry keys. You can configure Autoruns to show other locations, including Explorer shell extensions, toolbars, browser helper objects, Winlogon notifications, auto-start services, and much more. Autoruns goes way beyond the MSConfig utility bundled with Windows Me and XP.

JQuery Select Sample

JavaScript <script language="javascript" src="js/jquery-1.5.2.min.js"></script> <script language="javascript" > function ShowSelect() { $("select#Label option:selected'").each(function(){ $("#selectedItem").append(this); }); } </script> HTML: <select name="Label" size="15" multiple="multiple" id="Label"> <option value="1">1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> <option>10</option> </select> <input type="button" name="select" value="select" onClick="ShowSelect();" > <select name="selectedItem" id="selectedItem...

[C#]Determine Whether a String Represents a Numeric Value

TryParse for Int32, long, byte , and decimal return Boolean Int32.TryParse( s as String, ref i as int32) [VB] Int32.TryParse(String s, out int32 i) [C#] long.TryParse( s as String, ref i as int32) [VB] long.TryParse(String s, out int32 i) [C#] int32.TryParse(s, out i) http://msdn.microsoft.com/zh-tw/library/bb384043.aspx