锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品区二区三区日本,久久久99久久精品欧美,中文字幕最新精品http://www.aygfsteel.com/mlh123caoer/category/12051.html鏃犱負鍒欏彲涓猴紝鏃犱負鍒欒嚦娣憋紒 zh-cnWed, 28 Feb 2007 03:40:27 GMTWed, 28 Feb 2007 03:40:27 GMT60AJAX .Net Wrapper usage guidehttp://www.aygfsteel.com/mlh123caoer/archive/2006/07/22/59519.html鑽夊効鑽夊効Sat, 22 Jul 2006 03:19:00 GMThttp://www.aygfsteel.com/mlh123caoer/archive/2006/07/22/59519.htmlhttp://www.aygfsteel.com/mlh123caoer/comments/59519.htmlhttp://www.aygfsteel.com/mlh123caoer/archive/2006/07/22/59519.html#Feedback0http://www.aygfsteel.com/mlh123caoer/comments/commentRss/59519.htmlhttp://www.aygfsteel.com/mlh123caoer/services/trackbacks/59519.html闃呰鍏ㄦ枃

鑽夊効 2006-07-22 11:19 鍙戣〃璇勮
]]>
Microsoft SQL Server 2005 鏌ヨ鍒嗛〉 http://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51819.html鑽夊効鑽夊効Sat, 10 Jun 2006 05:20:00 GMThttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51819.htmlhttp://www.aygfsteel.com/mlh123caoer/comments/51819.htmlhttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51819.html#Feedback0http://www.aygfsteel.com/mlh123caoer/comments/commentRss/51819.htmlhttp://www.aygfsteel.com/mlh123caoer/services/trackbacks/51819.html寰蔣鏂扮殑SQL Server 2005鏂板浜嗘暟鎹簱鍒嗛〉鍔熻兘錛屼互鍚庡啀涔熺敤鍐欏鏉備笉鐏墊椿鑰屼綆鏁堢巼鐨勫垎欏靛瓨鍌ㄨ繃紼嬨?br />鏂扮殑鏁版嵁搴撳垎欏靛姛鑳界殑鏍稿績鏄竴涓彨row_number鐨勫嚱鏁?br />鍏蜂綋濡備笅錛?/p>

榪斿洖緇撴灉闆嗗垎鍖哄唴琛岀殑搴忓垪鍙鳳紝姣忎釜鍒嗗尯鐨勭涓琛屼粠 1 寮濮嬨?/p>

璇硶

ROW_NUMBER ( )聽聽聽聽 OVER ( [ <partition_by_clause> ] <order_by_clause> )

澶囨敞
ORDER BY 瀛愬彞鍙‘瀹氬湪鐗瑰畾鍒嗗尯涓負琛屽垎閰嶅敮涓 ROW_NUMBER 鐨勯『搴忋?/p>

鍙傛暟
<partition_by_clause>

灝?FROM 瀛愬彞鐢熸垚鐨勭粨鏋滈泦鍒掑叆搴旂敤浜?ROW_NUMBER 鍑芥暟鐨勫垎鍖恒?

<order_by_clause>

紜畾灝?ROW_NUMBER 鍊煎垎閰嶇粰鍒嗗尯涓殑琛岀殑欏哄簭銆傛湁鍏寵緇嗕俊鎭紝璇峰弬闃?ORDER BY 瀛愬彞 (Transact-SQL)銆?/p>

鏈夊叧璇︾粏淇℃伅錛岃鍙傞槄 OVER 瀛愬彞 (Transact-SQL)銆?/p>

榪斿洖綾誨瀷
bigint

紺轟緥
浠ヤ笅紺轟緥灝嗘牴鎹勾鍒濊嚦浠婄殑閿鍞錛岃繑鍥?AdventureWorks 涓攢鍞漢鍛樼殑 ROW_NUMBER銆?/p>

聽澶嶅埗浠g爜
USE AdventureWorks
GO
SELECT c.FirstName, c.LastName, ROW_NUMBER() OVER(ORDER BY SalesYTD DESC) AS 'Row Number', s.SalesYTD, a.PostalCode
FROM Sales.SalesPerson s JOIN Person.Contact c on s.SalesPersonID = c.ContactID
JOIN Person.Address a ON a.AddressID = c.ContactID
WHERE TerritoryID IS NOT NULL AND SalesYTD <> 0

浠ヤ笅紺轟緥灝嗚繑鍥炶鍙蜂負 50 鍒?60錛堝惈錛夌殑琛岋紝騫朵互 OrderDate 鎺掑簭銆?/p>

聽澶嶅埗浠g爜
USE AdventureWorks;
GO
WITH OrderedOrders AS
(SELECT SalesOrderID, OrderDate,
ROW_NUMBER() OVER (order by OrderDate)as RowNumber
FROM Sales.SalesOrderHeader )
SELECT *
FROM OrderedOrders
WHERE RowNumber between 50 and 60;聽

==============================
榪涜繃鎴戝鐧句竾琛屾暟鎹褰曠殑鍒嗛〉嫻嬭瘯錛屾晥鐜囨瘮浠ュ墠緗戜笂鑳藉鎵懼埌鐨勬渶濂界殑瀛樺偍榪囩▼錛堜釜浜烘剰瑙侊級紼嶉珮銆?br />浣嗘槸榪樻槸姣斿悓鏍風殑Oralce鐨勫垎欏墊晥鐜囦綆銆?/p>

鑽夊効 2006-06-10 13:20 鍙戣〃璇勮
]]>
C#搴旂敤璁塊棶Microsoft SQL Server 2005鍒嗘瀽鏈嶅姟 http://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51818.html鑽夊効鑽夊効Sat, 10 Jun 2006 05:19:00 GMThttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51818.htmlhttp://www.aygfsteel.com/mlh123caoer/comments/51818.htmlhttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51818.html#Feedback0http://www.aygfsteel.com/mlh123caoer/comments/commentRss/51818.htmlhttp://www.aygfsteel.com/mlh123caoer/services/trackbacks/51818.html闃呰鍏ㄦ枃

鑽夊効 2006-06-10 13:19 鍙戣〃璇勮
]]>
LINQ 鍒濇帰 http://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51813.html鑽夊効鑽夊効Sat, 10 Jun 2006 04:56:00 GMThttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51813.htmlhttp://www.aygfsteel.com/mlh123caoer/comments/51813.htmlhttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51813.html#Feedback0http://www.aygfsteel.com/mlh123caoer/comments/commentRss/51813.htmlhttp://www.aygfsteel.com/mlh123caoer/services/trackbacks/51813.html褰撴垜浠瀵規暟鎹簱琛ㄨ繘琛屾煡璇㈢殑鏃跺欙紝鎴戜滑涓瀹氫細緙栧啓"select * from sometable where ID = .."鐨勮鍙ャ傚ソ錛岄偅鎴戜滑鐜板湪鏍規嵁LINQ鐨勮娉曪紝瀹屽叏鍙互灝嗘垜浠啛鎮夌殑SQL涓儚"select","from","where"絳夎鍙ュ湪.NET Framework鐜涓『鍒╀嬌鐢ㄥ茍涓斿ぇ澶ф彁楂樺紑鍙戠殑鏁堢巼銆?

涓嬮潰鎴戝氨鐗涘垁灝忚瘯錛屽仛涓猟emo鐪嬬湅銆?/p>

1. 鍏堜笅杞絃inQ妗嗘灦聽
聽聽聽聽鐜板湪鏈鏂扮増鏈槸2006騫?鏈堝彂甯?Orcas CTP", 涓嬭澆鍦板潃(榪欓噷 )

2. 涓嬭澆瀹夎寰呭畬姣曘?/p>

3. 鏂板緩涓涓?LINQ Console Application"欏圭洰銆?/p>

4. 杈撳叆浠g爜濡備笅錛毬犅犅?

聽1
聽2using聽System;
聽3using聽System.Collections.Generic;
聽4using聽System.Text;
聽5using聽System.Query;
聽6using聽System.Xml.XLinq;
聽7using聽System.Data.DLinq;
聽8
聽9namespace聽LINQConsoleApplication1
10{
11聽聽聽聽class聽Program
12聽聽聽聽{
13聽聽聽聽聽聽聽聽staticvoid聽Main(string[]聽args)
14聽聽聽聽聽聽聽聽{
15聽聽聽聽聽聽聽聽聽聽聽聽string[]聽aBunchOfWords聽={"One","Two",聽"Hello",聽"World",聽
16
17"Four",聽"Five"}
;
18聽聽聽聽聽聽聽聽聽聽聽聽var聽result聽=
19聽聽聽聽聽聽聽聽聽聽聽聽from聽s聽in聽aBunchOfWords聽//聽query聽the聽string聽array聽
20聽聽聽聽聽聽聽聽聽聽聽聽where聽s.Length聽==5聽聽聽聽聽//聽for聽all聽words聽with聽length聽=聽5
21聽聽聽聽聽聽聽聽聽聽聽聽select聽s;聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽//聽and聽return聽the聽string
22聽聽聽聽聽聽聽聽聽聽聽聽foreach聽(var聽s聽in聽result)聽{
23聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Console.WriteLine(s);聽//print
24聽聽聽聽聽聽聽聽聽聽聽聽}

25聽聽聽聽聽聽聽聽}

26聽聽聽聽}

27}

28
29


榪愯緇撴灉濡備笅錛?br />Hello
World
print any key to continue ...



鑽夊効 2006-06-10 12:56 鍙戣〃璇勮
]]>
鍏浣跨敤ICallbackEventHandler瀹炵幇鏃犲埛鏂板洖璋?http://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51810.html鑽夊効鑽夊効Sat, 10 Jun 2006 04:49:00 GMThttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51810.htmlhttp://www.aygfsteel.com/mlh123caoer/comments/51810.htmlhttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51810.html#Feedback0http://www.aygfsteel.com/mlh123caoer/comments/commentRss/51810.htmlhttp://www.aygfsteel.com/mlh123caoer/services/trackbacks/51810.html聽聽聽 鍏充簬ICallbackEventHandler緗戜笂宸茬粡鏈夊緢澶氭枃绔犱粙緇嶄簡錛岃繖綃囧疄涓虹敾铔囨坊瓚熾?

ICallbackEventHandler瀛樺湪浜嶴ystem.Web.UI涓紝鎴戜滑鍏堝仛涓涓潪甯哥畝鍗曠殑渚嬪瓙鏉ヨ瘯鐢ㄤ竴涓嬨?/p>

聽聽 絎竴姝ワ紝鍦╒S2005涓緩绔嬩竴涓柊鐨刉EB紿椾歡銆?br />聽聽 絎簩姝ワ紝鍦ˋSPX涓紝鏀句笂涓孌礖TML浠g爜(濡備笅)錛?br />

1<body>
2聽聽聽聽<form聽id="form1"聽runat="server">
3聽聽聽聽<div>
4聽聽聽聽聽聽聽聽<button聽onclick="CallServer()">CallServer</button>
5聽聽聽聽</div>
6聽聽聽聽</form>
7</body>


聽聽 絎笁姝ワ紝鐒跺悗鍦?lt;HEAD></HEAD>涓斁鍏ヤ竴孌礘avaScript鑴氭湰錛?br />

聽1<script聽type="text/javascript">
聽2聽聽聽聽聽function聽CallServer()
聽3聽聽聽聽聽{
聽4聽聽聽聽聽聽聽聽聽var聽product聽="嫻嬭瘯";
聽5聽聽聽聽聽聽聽聽聽<%=聽ClientScript.GetCallbackEventReference(this,聽"product",聽"ReceiveServerData",null)%>;
聽6聽聽聽聽聽}

聽7聽聽聽聽聽
聽8聽聽聽聽聽function聽ReceiveServerData(rValue)
聽9聽聽聽聽聽{
10聽聽聽聽聽聽聽聽聽alert(rValue);
11聽聽聽聽聽}

12</script>

聽聽 絎洓姝ワ紝鍦ㄦASPX鐨勫悗鍙癈S浠g爜涓紝緇ф壙ICallbackEventHandler鎺ュ彛錛屽茍瀹炵幇鎺ュ彛涓殑涓や釜鏂規硶錛?br />聽ICallbackEventHandler.GetCallbackResult()
聽聽聽 鍜?br />聽ICallbackEventHandler.RaiseCallbackEvent(string eventArgument)

聽聽 絎簲姝ワ紝澧炲姞涓涓彉閲廋allBackValue錛屽茍淇敼鎺ュ彛鐨勪袱涓柟娉曚負錛?br />

聽1privatestring聽CallBackValue聽=string.Empty;
聽2聽聽聽聽
聽3string聽ICallbackEventHandler.GetCallbackResult()
聽4{
聽5聽聽return聽CallBackValue聽+",ok";
聽6聽}

聽7
聽8void聽ICallbackEventHandler.RaiseCallbackEvent(string聽eventArgument)
聽9{
10聽聽this.CallBackValue聽=聽eventArgument;
11聽}

12

聽聽聽 絎叚姝ワ紝榪愯錛岀晫闈笂浼氬嚭鐜頒竴涓寜閽紝鐐瑰嚮鍚庯紝浼氬皢鈥滄祴璇曗濊繖涓瓧絎︿覆浼犺嚦鍚庡彴錛屽悗鍙癈#浠g爜灝嗗瓧絎︿覆鍔犱笂鈥滐紝OK鈥濆悗榪斿洖緇欏鎴風鐨凧avaScript浠g爜錛屽茍鏄劇ず銆?/p>

聽聽聽 浠ヤ笂鍏錛屽氨鍙互瀹炵幇鏃犲埛鏂板洖璋冧簡銆傜幇鍦紝鎴戜滑鏉ュ垎鏋愪竴涓嬪嚑孌典唬鐮併?br />聽聽聽 鍏堢湅絎笁姝ヤ腑鐨凧avaScript浠g爜錛屽叾涓殑CallServer()鏂規硶涓繘琛屼簡鍥炶皟錛屽洖璋冪殑璇彞涓猴細
<%= ClientScript.GetCallbackEventReference(this, "product", "ReceiveServerData",null)%>;
聽聽聽
聽聽聽 閲岄潰鍥涗釜鍙傛暟涓浜屼釜鍙傛暟鎸囧畾灝唒roduct榪欎釜JavaScript涓殑瀛楃涓插彉閲忎紶鍥炲悗鍙幫紝絎笁涓弬鏁版寚瀹氫簡浠庡悗鍙拌繑鍥炴椂鎺ユ敹榪斿洖淇℃伅鐨凧avaScript鏂規硶ReceiveServerData(string Value)銆?/p>

聽聽聽 絎簲姝ヤ腑鍚庡彴鐨勪袱涓柟娉曪紝涓涓狪CallbackEventHandler.RaiseCallbackEvent(string eventArgument)鐢ㄦ潵鎺ユ敹鍓嶅彴JavaScript涓紶鏉ョ殑瀛楃涓插彉閲忥紝騫惰祴鍊肩粰鍐呴儴鍙橀噺this.CallBackValue錛屽彟涓涓柟娉旾CallbackEventHandler.GetCallbackResult()灝嗗彉鏇村悗鐨勫唴閮ㄥ彉閲弔his.CallBackValue榪斿洖緇欏墠鍙癑avaScript鏂規硶ReceiveServerData(string Value)銆?/p>

聽聽聽 璋冪敤鐨勯『搴忔槸錛?(鍓嶅彴)CallServer() --> (鍚庡彴)ICallbackEventHandler.RaiseCallbackEvent(string eventArgument) --> (鍚庡彴)ICallbackEventHandler.GetCallbackResult() --> (鍓嶅彴)ReceiveServerData(string Value)銆?/p>

聽聽聽 鏁翠釜璋冪敤榪囩▼闈炲父綆鍗曪紝鑰屽叾涓潪甯稿叧閿殑涓姝ユ槸絎笁姝ョ殑
<%= ClientScript.GetCallbackEventReference(this, "product", "ReceiveServerData",null)%>;
榪欎釜鏂規硶錛屼互涓嬫槸浠庣綉涓婃壘鏉ョ殑涓孌佃祫鏂欙紝澶у鍙互鐪嬬湅銆?/p>

GetCallbackEventReference浣垮緱瀹㈡埛绔柟娉曞湪瀹㈡埛绔姹傜粨鏉熸椂寰楀埌鍥炴敹銆?瀹冧篃璁〤allBackManager 紜畾浜х敓鍝鍥炲彨鏂規硶銆?鍦ㄨ繖涓緥瀛愬唴浣跨敤鐨勮閲嶈澆鐨勬柟娉曟槸錛?/p>

聽聽 public string GetCallbackEventReference(
聽聽聽聽聽 string target, string argument,
聽聽聽聽聽 string clientCallback, string聽 context,
string clientErrorCallback)
Table 1. GetCallBackEventReference 鏂規硶鐨勫弬鏁版弿榪般?br />Parameters Description target ID of the page where the callback invocation is handled. For more see the other overloaded options available in the next immediate section.In our sample "this" is the argument value, since the callback is handled in the same page.聽 argument This is the parameter defintion used to send value to the server. This value is received by parameter "eventArgument" at the server end using the RaiseCallbackEvent event."arg" becomes the first parameter name in our sample. The value is passed through this argument from the client. clientCallback Method name of the callback that is invoked after successful server call."CallBackHandler" is the method name that handles the callback.聽聽 context A parameter that is associated with the "argument" from the client. It usually should be used to identify the context of the call. You will understand this better from the sample implementation.In the sample "ctx" is just another parameter definition used. The value for this is passed from the client. clientErrorCallback Name of the method that is called from the CallBackManager in case of any errors.
浠庤繖涓柟娉曡繑鍥炵殑string鏄?

聽聽
聽聽 __doCallback('__Page',arg,CallBackHandler,ctx, ErrorCallBack)

鍙︿竴涓噸杞芥柟娉曟槸:

聽聽 public string GetCallbackEventReference(
聽聽聽聽聽 Control control, string argument,
聽聽聽聽聽 string clientCallback, string聽 context)
聽聽
聽聽 public string GetCallbackEventReference(
聽聽聽聽聽 Control control, string argument,
聽聽聽聽聽 string clientCallback,聽 string聽 context,
string clientErrorCallback)



鑽夊効 2006-06-10 12:49 鍙戣〃璇勮
]]>
C#2.0娉涘瀷瀛︿範錛嶏紞鍏ラ棬綃?http://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51809.html鑽夊効鑽夊効Sat, 10 Jun 2006 04:47:00 GMThttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51809.htmlhttp://www.aygfsteel.com/mlh123caoer/comments/51809.htmlhttp://www.aygfsteel.com/mlh123caoer/archive/2006/06/10/51809.html#Feedback0http://www.aygfsteel.com/mlh123caoer/comments/commentRss/51809.htmlhttp://www.aygfsteel.com/mlh123caoer/services/trackbacks/51809.html闃呰鍏ㄦ枃

鑽夊効 2006-06-10 12:47 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 武义县| 新民市| 铜川市| 沿河| 诸暨市| 凉山| 鸡东县| 腾冲县| 崇明县| 威远县| 元谋县| 张北县| 汪清县| 资溪县| 鸡西市| 阿拉善左旗| 阳高县| 白沙| 南岸区| 兴化市| 阳泉市| 彝良县| 郑州市| 咸丰县| 长治县| 萨嘎县| 罗定市| 长阳| 获嘉县| 类乌齐县| 潍坊市| 赫章县| 卢龙县| 桐乡市| 灵山县| 上思县| 曲靖市| 哈密市| 太仆寺旗| 利川市| 衡南县|