在做OleDbParameter 作為參數時,沒有SqlParameter那樣靈活,用SqlParameter時,在定義和賦值時的順序可以隨便寫,而OledbParmeter 則要求嚴格的順序.如下面我語句,如果賦值時位置換一下的話,則語句將不會執行 private string SQL_Admin_Update = "UPDATE TADMIN SET uname=@NAME,upwd=@PWD,udatlogin=@DATLOGIN WHERE uid=@ID";public void
Code highlighting produced by Actipro CodeHighlighter
1.在對話方塊建構函式中聲名變數CodeCode highlighting produced by Actipro CodeHighlighter
1,申請一個google地圖的key值2.在頁面中加入下面代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><html xmlns="http://www.w3.org/1999/xhtml" ><head> <meta http-equiv="content-type" content="text/html;
我們知道appendChild和insertBefore都有插入節點的功能。但在應用上,這兩者之間還是有一些區別的。 比如我們要在下面這個div中插入一個子節點P時:<div id="test"><p id="x1">Node</p><p>Node</p></div>我們可以這樣寫(測試某種情況時請將另外一種注釋):<script type="text/javascript">var oTest =
1.在案頭上建立一個文字檔;把下面的代碼複製過去Code highlighting produced by Actipro CodeHighlighter
<!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" xml:lang="en" lang="en"><head><title></title>
<style type="text/css">body{background-color:#FF0000 !important;*background-color:#00FF00 !important;*background-color:#0000FF;background-color:#000000;}</style>IE6選擇最後一個,即:background-color:#000000;
DateDiff DateDiff函數 返回 返回 Variant (Long) 的值,表示兩個指定日期間的時間間隔數目。文法DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])DateDiff 函數文法中有下列具名引數:部分 描述 interval 必要。字串運算式,表示用來計算date1 和 date2 的時間差的時間間隔 Date1□date2 必要;Variant (Date)。計算中要用到的兩個日期。
Ext.Panel 動態添加組件後,沒有顯示組件 。需要調用Ext.Panel 的doLayout()函數 <script type="text/javascript"> Ext.onReady(function () { var panel = new Ext.Panel({ layout: 'table', //table 布局 layoutConfig: { columns:
公司剛用了辦系統.主要是考勤和發通知用的.很遺憾的是在ie7上面出現了好多的紅叉,查看代碼一看,原來是activex組件不能用.因為ie6中沒有對activex進行嚴格的設定,所以,好多的高手們就通過activex來攻擊.而在ie7裡,對activex組件進行了嚴格的設定.ie7裡出現不能使用activex組件的處理方法:開啟ie -->工具-->Internet
代碼 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->----簡單分頁預存程序----2009.12.9----liuwmcreate proc spPagedSelect@table varchar(1000),--表名,可以是一個sql語句@page int, --當前頁面@pageSize int, --分頁大小@key
Code highlighting produced by Actipro CodeHighlighter
document.write("<style type=\"text/css\">");document.write("#mydlgboxbg{width:100%;background:#000;filter:alpha(opacity=50);opacity:0.5;position:absolute;top:0;left:0; font-size:12px;z-index:10000}");document.write("#mydlgbox{border:solid 2px #
兩年前,我懷著夢想離開鄭州,去北京去曆練。兩年後,我帶著希望離開北京,回鄭州來探索。 在年輕的歲月裡,有多少個兩年呢。每次決定時,都無法描述內心五味的複雜。 雖然心裡早有準備,但面對現實的打擊,真的有點怯場了。 抑或這就是我應該經曆的東西吧,在現實的打擊中,慢慢的審視自我。找准自己的位置。 加油!不斷積累,必然飛躍,突破隨之。
--------------------------/*使用方法1.添加列 exec pro_AddColumn 表名,列名,'' 參數表 @tableName varchar(100), @Msg varchar(50) output 3.刪除 exec pro_AddColumn 表名,'' 參數表 @tableName varchar(100), @Msg varchar(50) output*/--1.添加新表if exists(select name from sysobjects
溫故而知新 一 js event對象Event屬性和方法:1. type:事件的類型,如onlick中的click; 2. srcElement/target:事件來源,就是發生事件的元素; 3. button:聲明被按下的滑鼠鍵,整數,1代表左鍵,2代表右鍵,4代表中鍵,如果按下多個鍵,酒把這些值加起來,所以3就代表左右鍵同步選取;(firefox中 0代表左鍵,1代表中間鍵,2代表右鍵) 4. clientX/clientY:事件發生的時候,滑鼠相對於瀏覽器視窗可視文檔地區的左上方的位置;(
--------------------------/*使用方法1.添加列 exec pro_AddColumn 表名,列名,類型/屬性,'' 參數表 @tableName varchar(100), @columNname varchar(100), @DbType varchar(32), @Msg varchar(50) output2.修改 exec pro_AddColumn 表名,列名,類型/屬性,'' 參數表 @tableName
點擊這是測試內容<head runat="server"> <title>無標題頁</title> </head><body style="text-align: center"> <table style="width:90%; border :solid 1px #CCCCCC; text-align :left "> <tr onclick ="menushow()">
set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo--drop procedure p_page --go ALTER procedure [dbo].[CutPage_PRO] ( @Tables varchar(1000), --表名如testtable (如果是聯集查詢不要用as ,只用表名果如 table1 left join table2)@PrimaryKey varchar(100),--表的主鍵,必須唯一性