锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲免费视频一区二区三区,色噜噜亚洲男人的天堂,亚洲小视频在线播放http://www.tkk7.com/kiant/category/36893.html鏈夋墠鑰屾х紦瀹氬睘澶ф墠錛屾湁鏅鴻屾皵鍜屾柉涓哄ぇ鏅恒備漢鍋忕嫮鎴戝彈涔嬩互瀹藉錛屼漢闄╀粍鎴戞寔涔嬩互鍧﹁崱銆傜紦浜嬪疁鎬ュ共錛屾晱鍒欐湁鍔燂紱鎬ヤ簨瀹滅紦鍔烇紝蹇欏垯澶氭帾銆? --鏉庡彅鍚?/description>zh-cnThu, 29 Apr 2010 20:18:52 GMTThu, 29 Apr 2010 20:18:52 GMT60[杞琞 DataBinder.Eval鐢ㄦ硶http://www.tkk7.com/kiant/articles/319195.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Tue, 27 Apr 2010 05:15:00 GMThttp://www.tkk7.com/kiant/articles/319195.htmlhttp://www.tkk7.com/kiant/comments/319195.htmlhttp://www.tkk7.com/kiant/articles/319195.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/319195.htmlhttp://www.tkk7.com/kiant/services/trackbacks/319195.html 杞嚜錛?br /> [ASP.NET]DataBinder.Eval鐢ㄦ硶
http://www.cnblogs.com/march3/archive/2007/05/22/755534.html

 

<%# Bind("Subject") %> //緇戝畾瀛楁
<%# Container.DataItemIndex + 1%> //瀹炵幇鑷姩緙栧彿
<%# DataBinder.Eval(Container.DataItem, "[n]") %>

閫氬父浣跨敤鐨勬柟娉?br /> <%# DataBinder.Eval(Container.DataItem, "ColumnName") %>
<%# DataBinder.Eval(Container.DataItem, "ColumnName", null) %>
<%# DataBinder.Eval(Container, "DataItem.ColumnName", null) %>

鍏朵粬鐢ㄦ硶
<%# ((DataRowView)Container.DataItem)["ColumnName"] %>
<%# ((DataRowView)Container.DataItem).Row["ColumnName"] %>
<%# ((DataRowView)Container.DataItem)["adtitle"] %>
<%# ((DataRowView)Container.DataItem)[n] %>
<%# ((DbDataRecord)Container.DataItem)[0] %>
<%# (((鑷畾涔夌被鍨?Container.DataItem)).灞炴?ToString() %>//濡傛灉灞炴т負瀛楃涓茬被鍨嬪氨涓嶇敤ToString()浜?/p>

DataBinder.Eval鐢ㄦ硶鑼冧緥
<%# DataBinder.Eval(Container.DataItem, "IntegerValue", "{0:c}") %>
鏍煎紡鍖栧瓧絎︿覆鍙傛暟鏄彲閫夌殑銆傚鏋滃拷鐣ュ弬鏁幫紝DataBinder.Eval 榪斿洖瀵硅薄綾誨瀷鐨勫鹼紝

//鏄劇ず浜屼綅灝忔暟
<%# DataBinder.Eval(Container.DataItem, "UnitPrice", "${0:F2}") %>
//{0:G}浠h〃鏄劇ずTrue鎴朏alse
<ItemTemplate>
 <asp:Image Width="12" Height="12" Border="0" runat="server"
 AlternateText='<%# DataBinder.Eval(Container.DataItem, "Discontinued", "{0:G}") %>'
 ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Discontinued", "~/images/{0:G}.gif") %>' />
</ItemTemplate>
//杞崲綾誨瀷
((string)DataBinder.Eval(Container, "DataItem.P_SHIP_TIME_SBM8")).Substring(4,4)
{0:d} 鏃ユ湡鍙樉紺哄勾鏈堟棩
{0:yyyy-mm-dd} 鎸夋牸寮忔樉紺哄勾鏈堟棩
{0:c} 璐у竵鏍峰紡
<%#Container.DataItem("price","{0:錕?,##0.00}")%>
<%# DataBinder.Eval(Container.DataItem,"Company_Ureg_Date","{0:yyyy-M-d}")%>


Specifier Type     Format   Output (Passed Double 1.42)  Output (Passed Int -12400)
c  Currency        {0:c}     $1.42     -$12,400
d  Decimal         {0:d}    System.FormatException  -12400
e  Scientific      {0:e}    1.420000e+000    -1.240000e+004
f  Fixed point     {0:f}  1.42    -12400.00
g  General         {0:g}  1.42     -12400
n  Number with commas for thousands  {0:n}  1.42     -12,400
r  Round trippable    {0:r}  1.42     System.FormatException
x  Hexadecimal    {0:x4}  System.FormatException   cf90


{0:d} 鏃ユ湡鍙樉紺哄勾鏈堟棩
{0:yyyy-mm-dd} 鎸夋牸寮忔樉紺哄勾鏈堟棩


鏍峰紡鍙栧喅浜?Web.config 涓殑璁劇疆

{0:c}  鎴?{0:錕?,000.00} 璐у竵鏍峰紡  鏍囧噯鑻卞浗璐у竵鏍峰紡
<system.web>
      <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-US" uiCulture="en-US" />
</system.web>
鏄劇ず涓?錕?,000.10

{0:c}  鎴?string.Format("{0:C}", price); 涓浗璐у竵鏍峰紡
<system.web>
      <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-cn" uiCulture="zh-cn" />
</system.web>
鏄劇ず涓?錕?,000.10

{0:c}  鎴?string.Format("{0:C}", price); 緹庡浗璐у竵鏍峰紡
<system.web>
      <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
鏄劇ず涓?$3,000.10

 

DataBinder.Eval(Container.DataItem,"Name")鍜孋ontainer.DataItem("Name")鏈変粈涔堝尯鍒紵
DataBinder鏄疭ystem.Web閲岄潰鐨勪竴涓潤鎬佺被錛屽畠鎻愪緵浜?span style="color: #0000ff">Eval鏂規硶鐢ㄤ簬綆鍖栨暟鎹粦瀹氳〃杈懼紡鐨勭紪鍐?/span>錛屼絾鏄畠浣跨敤鐨勬柟寮忔槸閫氳繃Reflection絳夊紑閿姣旇緝澶х殑鏂規硶鏉ヨ揪鍒版槗鐢ㄦэ紝鍥犳鍏舵ц兘騫朵笉鏄渶濂界殑銆傝孋ontainer鍒欐牴鏈笉鏄換浣曚竴涓潤鎬佺殑瀵硅薄鎴栨柟娉曪紝瀹冩槸ASP.NET欏甸潰緙栬瘧鍣ㄥ湪鏁版嵁緇戝畾浜嬩歡澶勭悊紼嬪簭鍐呴儴澹版槑鐨勫眬閮ㄥ彉閲忥紝鍏剁被鍨嬫槸鍙互榪涜鏁版嵁緇戝畾鐨勬帶浠剁殑鏁版嵁瀹瑰櫒綾誨瀷錛堝鍦≧epeater鍐呴儴鐨勬暟鎹粦瀹氬鍣ㄥ彨RepeaterItem錛夛紝鍦ㄨ繖浜涘鍣ㄧ被涓熀鏈兘鏈塂ataItem灞炴э紝鍥犳浣犲彲浠ュ啓Container.DataItem錛岃繖涓睘鎬ц繑鍥炵殑鏄綘姝e湪琚粦瀹氱殑鏁版嵁婧愪腑鐨勯偅涓暟鎹」銆傚鏋滀綘鐨勬暟鎹簮鏄疍ataTable錛屽垯榪欎釜鏁版嵁欏圭殑綾誨瀷瀹為檯鏄疍ataRowView銆?br />



鏁版嵁緇戝畾浠ュ強Container.DataItem鍑犵鏂瑰紡涓庣敤娉曞垎鏋?/strong>
http://blog.csdn.net/jelink/archive/2006/08/25/1118839.aspx

 

緇戝畾鍒伴泦鍚?<asp:ListBox id="ListBox1" datasource='<%# myArray%>' runat="server">

<%@ Import namespace="System.Data" %> 
<%# ((DataRowView)Container.DataItem)["xxxx"]%> 




What's the deal with Databinder.Eval and Container.DataItem?
http://weblogs.asp.net/rajbk/archive/2004/07/20/what-s-the-deal-with-databinder-eval-and-container-dataitem.aspx

 

<href='<%#  Databinder.Eval(Container.DataItem,"ID","default.aspx?CategoryId={0}" ) %>'>


re: What's the deal with Databinder.Eval and Container.DataItem? 

Answering the question.

<%If DataBinder.Eval(Container.DataItem, "DATAFIELD"<> "" Then

   Response.Write(
"something")

End If %>

Try this.

<%# DataBinder.Eval(Container.DataItem, "DataField").Equals("")?"":"Something"%>


Thursday, August 02, 2007 11:23 PM by someone 




]]>
[杞琞Response.Redirect(),Server.Transfer(),Server.Execute()鐨勫尯鍒?/title><link>http://www.tkk7.com/kiant/articles/319194.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Fri, 23 Apr 2010 05:56:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/319194.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/319194.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/319194.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/319194.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/319194.html</trackback:ping><description><![CDATA[<br /> 鍐呭杞嚜錛?br /> Response.Redirect(),Server.Transfer(),Server.Execute()鐨勫尯鍒?br /> http://www.cnblogs.com/3stones/archive/2008/03/20/1114645.html<br /> <br /> <br /> <p><strong>1銆丷esponse.Redirect():</strong><br />       Response.Redirect鏂規硶瀵艱嚧嫻忚鍣ㄩ摼鎺ュ埌涓涓寚瀹氱殑URL銆傚綋Response.Redirect()鏂規硶琚皟鐢ㄦ椂錛屽畠浼氬垱寤轟竴涓簲絳旓紝搴旂瓟澶翠腑鎸囧嚭浜嗙姸鎬佷唬鐮?02錛堣〃紺虹洰鏍囧凡緇忔敼鍙橈級浠ュ強鏂扮殑鐩爣URL銆傛祻瑙堝櫒浠庢湇鍔″櫒鏀跺埌璇ュ簲絳旓紝鍒╃敤搴旂瓟澶翠腑鐨勪俊鎭彂鍑轟竴涓鏂癠RL鐨勮姹傘?br />   <br />       榪欏氨鏄錛屼嬌鐢≧esponse.Redirect鏂規硶鏃墮噸瀹氬悜鎿嶄綔鍙戠敓鍦ㄥ鎴風錛?span style="color: #0000ff">鎬誨叡娑夊強鍒頒袱嬈′笌鏈嶅姟鍣ㄧ殑閫氫俊錛堜袱涓潵鍥烇級錛?/span>絎竴嬈℃槸瀵瑰師濮嬮〉闈㈢殑璇鋒眰錛屽緱鍒頒竴涓?02搴旂瓟錛岀浜屾鏄姹?02搴旂瓟涓0鏄庣殑鏂伴〉闈紝寰楀埌閲嶅畾鍚戜箣鍚庣殑欏甸潰銆?br /> </p> <p><strong>2銆丼erver.Transfer</strong>    <br />       Server.transfer鏄疘IS 5.0鏂板鍔犵殑涓涓姛鑳姐傚畠瑙e喅浜哛esponse.Redirect鐨勪袱涓噸瑕佺殑緙洪櫡錛?br />       1錛夊湪Response.Redirect涓紝鎴戜滑寰椾笉鍒頒換浣曠涓欏電殑杈撳嚭<br />       2錛塕esponse.Redirect浼氫涪澶眗equest涓殑鎵鏈夊睘鎬э紝褰撶劧鎴戜滑鍙互閫氳繃涓浜涘叾浠栫殑鍔炴硶錛屾瘮濡俿ession鏉ユ悶瀹氾紝鍙槸錛屾湁浜涢〉鐨勫弬鏁版槸鍦╮equest涓紶榪囨潵鐨勶紝榪欐牱鐨勮瘽錛屽氨涓嶈浜?br />      3)  Response.Redirect闇瑕乧lient绔啀鍙戣搗涓涓姹傘?br /> <br />       Server.transfer灝卞緢濂藉湴瑙e喅浜嗚繖浜涢棶棰樸傚畠鏄粠server绔洿鎺ュ悜涓嬩竴欏靛彂璧瘋姹傦紝涓嶉渶瑕乧lient鍐嶆鍙戦佽姹傘傚鏋滀綘鐨勭綉欏甸潪甯鎬緷璧杛esponse.redirect錛岃繖涓皬灝忕殑鏀瑰彉鍙互鎻愰珮灝嗚繎25%鐨勬晥鐜囷紙鏍規嵁寰蔣鏂囨。錛夈?/p> <p>      Server.Transfer鏂規硶<span style="color: #0000ff">鎶婃墽琛屾祦紼嬩粠褰撳墠鐨凙SPX鏂囦歡杞埌鍚屼竴鏈嶅姟鍣ㄤ笂鐨勫彟涓涓狝SPX欏甸潰</span>銆傝皟鐢⊿erver.Transfer鏃訛紝褰撳墠鐨凙SPX欏甸潰緇堟鎵ц錛屾墽琛屾祦紼嬭漿鍏ュ彟涓涓狝SPX欏甸潰錛屼絾鏂扮殑ASPX欏甸潰浠嶄嬌鐢ㄥ墠涓ASPX欏甸潰鍒涘緩鐨勫簲絳旀祦銆?br />   <br />       濡傛灉鐢⊿erver.Transfer鏂規硶瀹炵幇欏甸潰涔嬮棿鐨勫鑸紝<span style="color: #0000ff">嫻忚鍣ㄤ腑鐨刄RL涓嶄細鏀瑰彉</span>錛屽洜涓洪噸瀹氬悜瀹屽叏鍦ㄦ湇鍔″櫒绔繘琛岋紝嫻忚鍣ㄦ牴鏈笉鐭ラ亾鏈嶅姟鍣ㄥ凡緇忔墽琛屼簡涓嬈¢〉闈㈠彉鎹€?br />   <br />       榛樿鎯呭喌涓嬶紝Server.Transfer鏂規硶涓嶄細鎶婅〃鍗曟暟鎹垨鏌ヨ瀛楃涓蹭粠涓涓〉闈紶閫掑埌鍙︿竴涓〉闈紝浣嗗彧瑕佹妸璇ユ柟娉曠殑絎簩涓弬鏁拌緗垚True錛屽氨<span style="color: #0000ff">鍙互淇濈暀絎竴涓〉闈㈢殑琛ㄥ崟鏁版嵁鍜屾煡璇㈠瓧絎︿覆</span>銆?br />   <br />       鍚屾椂錛屼嬌鐢⊿erver.Transfer鏃跺簲<span style="color: #ff0000">娉ㄦ剰涓鐐?/span>錛氱洰鏍囬〉闈㈠皢浣跨敤鍘熷欏甸潰鍒涘緩鐨勫簲絳旀祦錛岃繖瀵艱嚧ASP.NET鐨勬満鍣ㄩ獙璇佹鏌ワ紙Machine Authentication Check錛孧AC錛夎涓烘柊欏甸潰鐨刅iewState宸茶綃℃敼銆傚洜姝わ紝濡傛灉瑕佷繚鐣欏師濮嬮〉闈㈢殑琛ㄥ崟鏁版嵁鍜屾煡璇㈠瓧絎︿覆闆嗗悎錛屽繀欏繪妸鐩爣欏甸潰Page鎸囦護鐨?EnableViewStateMac灞炴ц緗垚False銆?/p> <p>      Server.Transfer()鏈変竴涓?span style="color: #ff0000">涓嶈凍灝辨槸錛?/span>褰撶敤鎴峰湪a.aspx涓彁浜や簡涓涓〃鍗?鐒跺悗鐢⊿erver.Transfer()榪涘叆 b.aspx錛岃繖鏃跺鏋滅敤鎴峰埛鏂頒竴涓嬮〉闈紝嫻忚鍣ㄤ究浼氶棶鐢ㄦ埛鏄惁“閲嶈瘯”鍙戦佽〃鍗曪紝濡傛灉鐢ㄦ埛鐐瑰嚮“鏄?#8221;錛岄偅涔堬紝琛ㄥ崟涓殑鏁版嵁琚噸鏂板彂閫佸埌鏈嶅姟鍣ㄣ傚鍙戦佽〃鍗曠殑浣滅敤灝辨槸涓轟簡鍚戞暟鎹簱涓彃鍏ヤ竴鏉¤褰曪紝緇撴灉瀵間笉甯屾湜鍙戠敓鐨勪簨鈥斺斿悓涓琛ㄥ崟琚嬈″姞鍏ュ埌鏁版嵁搴撲腑銆?/p> <p><br /> <br /> <strong>3銆丼erver.Execute</strong>  <br />       Server.Execute鏂規硶鍏佽<span style="color: #0000ff">褰撳墠鐨凙SPX欏甸潰鎵ц涓涓悓涓Web鏈嶅姟鍣ㄤ笂鐨勬寚瀹欰SPX欏甸潰</span>錛屽綋鎸囧畾鐨凙SPX欏甸潰鎵ц瀹屾瘯錛屾帶鍒舵祦紼嬮噸鏂拌繑鍥炲師欏甸潰鍙戝嚭Server.Execute璋冪敤鐨勪綅緗傝繖縐嶉〉闈㈠鑸柟寮忕被浼間簬閽堝ASPX欏甸潰鐨勪竴嬈″嚱鏁拌皟鐢紝<span style="color: #ff0000">琚皟鐢ㄧ殑欏甸潰鑳藉璁塊棶鍙戝嚭璋冪敤欏甸潰鐨勮〃鍗曟暟鎹拰鏌ヨ瀛楃涓查泦鍚?/span>錛屾墍浠ヨ鎶婅璋冪敤欏甸潰Page鎸囦護鐨凟nableViewStateMac灞炴ц緗垚False銆?br /> <br /> </p> <p><strong>4.</strong><br /> Server.Execute("another.aspx")鍜孲erver.Transfer("another.aspx")鍖哄埆:  <br /> Execute鏄粠褰撳墠欏甸潰杞Щ鍒版寚瀹氶〉闈?騫跺皢鎵ц榪斿洖鍒板綋鍓嶉〉闈?nbsp; <br /> Transfer鏄皢鎵ц瀹屽叏杞Щ鍒版寚瀹氶〉闈?</p> <p><br /> <strong>鎬葷粨錛?br /> </strong>鍦ㄧ綉緇滅姸鎬佽緝濂界殑鎯呭喌涓?Redirect(url)鏂規硶鏁堢巼鏈楂?! 鍙噸瀹氬悜鍒板悓涓鍙版垨闈炲悓涓鍙版湇鍔″櫒涓婄殑aspx鎴栭潪aspx錛坔tml錛夎祫婧?nbsp;  <span style="color: #0000ff"> *閲嶅畾鍚?br /> </span>Server.Transfer鏂規硶鍜孲erver.Execute鏂規硶鏈鐏墊椿!! 浣嗗彧鑳借漿鍒板悓涓Application鐩綍涓嬶紝涔熸湁鍙兘瀵艱嚧涓嶆湡鏈涚殑緇撴灉鍙戠敓    <span style="color: #0000ff">*杞彂<br /> </span>Server.Execute鏂規硶鍗犵敤璧勬簮鏈澶?     <span style="color: #0000ff">*鍖呭惈<br /> </span><br /> <font color="#0000ff">ps. *欏逛負絎旇</font></p> <img src ="http://www.tkk7.com/kiant/aggbug/319194.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2010-04-23 13:56 <a href="http://www.tkk7.com/kiant/articles/319194.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>DataTable銆丏ataView銆丩istBox 鏁版嵁緇戝畾涓庢煡璇?/title><link>http://www.tkk7.com/kiant/articles/280746.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Thu, 22 Apr 2010 04:35:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/280746.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/280746.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/280746.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/280746.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/280746.html</trackback:ping><description><![CDATA[<br /> <a target="_blank">DataTable鐨勪竴浜涚壒孌婄敤娉曪細Select</a> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Codehighlighter1_0_36_Open_Image" onclick="this.style.display='none'; Codehighlighter1_0_36_Open_Text.style.display='none'; Codehighlighter1_0_36_Closed_Image.style.display='inline'; Codehighlighter1_0_36_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_0_36_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_0_36_Closed_Text.style.display='none'; Codehighlighter1_0_36_Open_Image.style.display='inline'; Codehighlighter1_0_36_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span id="Codehighlighter1_0_36_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/**/</span><span id="Codehighlighter1_0_36_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"> <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />* 琛ュ厖涓涓嬶紝榪樺彲浠ュ埄鐢―ataView鏉ヨ揪鍒版绱㈢殑鐩殑銆?nbsp;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span><span style="color: #008000">*/</span></span><span style="color: #000000"> <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />DataTable dataSource </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> DataTable(); <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />DataView dv </span><span style="color: #000000">=</span><span style="color: #000000"> dataSource.DefaultView; <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />dv.RowFilter </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">columnA = 'abc'</span><span style="color: #000000">"</span><span style="color: #000000">; <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">1.榪囨護鍚庣洿鎺ヨ幏鍙朌ataTable </span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">DataTable newTable1 </span><span style="color: #000000">=</span><span style="color: #000000"> dv.ToTable(); <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">2.璁劇疆鏂癉ataTable鐨凾ableName </span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">DataTable newTable2 </span><span style="color: #000000">=</span><span style="color: #000000"> dv.ToTable(</span><span style="color: #000000">"</span><span style="color: #000000">NewTableName</span><span style="color: #000000">"</span><span style="color: #000000">); <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">3.璁劇疆鏂拌〃鏄惁榪囨護閲嶅欏?鎷ユ湁鐨勫垪鐨勫垪鍚嶄互鍙婂嚭鐜扮殑欏哄簭 <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">鍗沖彲浠ヨ緗柊琛ㄧ殑瀛楁銆備絾鏄瓧孌靛悕鑲畾鏄佽〃dataSource涓嫢鏈夌殑銆?nbsp;</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">DataTable newTable3 </span><span style="color: #000000">=</span><span style="color: #000000"> <br /> <img id="Codehighlighter1_417_445_Open_Image" onclick="this.style.display='none'; Codehighlighter1_417_445_Open_Text.style.display='none'; Codehighlighter1_417_445_Closed_Image.style.display='inline'; Codehighlighter1_417_445_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_417_445_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_417_445_Closed_Text.style.display='none'; Codehighlighter1_417_445_Open_Image.style.display='inline'; Codehighlighter1_417_445_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />dv.ToTable(</span><span style="color: #0000ff">true</span><span style="color: #000000">, </span><span style="color: #0000ff">new</span><span style="color: #000000"> </span><span style="color: #0000ff">string</span><span style="color: #000000">[] </span><span id="Codehighlighter1_417_445_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_417_445_Open_Text"><span style="color: #000000">{ </span><span style="color: #000000">"</span><span style="color: #000000">columnA,columnF,columnC</span><span style="color: #000000">"</span><span style="color: #000000"> }</span></span><span style="color: #000000">); <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">//</span><span style="color: #008000">4.緇煎悎浜?.3涓ょ偣銆?nbsp;</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">DataTable newTable4 </span><span style="color: #000000">=</span><span style="color: #000000"> <br /> <img id="Codehighlighter1_534_562_Open_Image" onclick="this.style.display='none'; Codehighlighter1_534_562_Open_Text.style.display='none'; Codehighlighter1_534_562_Closed_Image.style.display='inline'; Codehighlighter1_534_562_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_534_562_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_534_562_Closed_Text.style.display='none'; Codehighlighter1_534_562_Open_Image.style.display='inline'; Codehighlighter1_534_562_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />dv.ToTable(</span><span style="color: #000000">"</span><span style="color: #000000">NewTableName</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #0000ff">true</span><span style="color: #000000">, </span><span style="color: #0000ff">new</span><span style="color: #000000"> </span><span style="color: #0000ff">string</span><span style="color: #000000">[] </span><span id="Codehighlighter1_534_562_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_534_562_Open_Text"><span style="color: #000000">{ </span><span style="color: #000000">"</span><span style="color: #000000">columnA,columnF,columnC</span><span style="color: #000000">"</span><span style="color: #000000"> }</span></span><span style="color: #000000">);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div> 綆鍖栵紝鍒╃敤 DataView榪囨護 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />                <span style="color: #000000">DataView dv </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.dtPerson.DefaultView;            </span><span style="color: #008000">//</span><span style="color: #008000">璁劇疆涓涓鍥捐繃婊?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">                dv.RowFilter </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">employee_dept_id = </span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> departId;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />                </span><span style="color: #0000ff">this</span><span style="color: #000000">.lstSource.DataSource </span><span style="color: #000000">=</span><span style="color: #000000"> dv;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />                </span><span style="color: #0000ff">this</span><span style="color: #000000">.lstSource.DisplayMember </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">employee_name</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />                </span><span style="color: #0000ff">this</span><span style="color: #000000">.lstSource.ValueMember </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">id</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <br />                     <span style="color: #0000ff">this</span>.dvPendingNode.RowFilter = "(node_end_time is null or node_end_time > '2009-6-10 17:55:13')";<br />                     <span style="color: #0000ff">this</span>.dvPendingNode.RowFilter += "and  degree_name in ('', '榪涜', '鏆傚仠', '鎼佺疆') ";</span></div> <br /> <br /> <br /> <hr color="#999999" size="4" /> <strong>1. 鎴戝湪涓涓獁inform紼嬪簭閲岀敤DataView鐨凴owFilter絳涢夋椂鐢ㄤ袱涓笅鍒掔嚎浠h〃涓や釜瀛楃錛屼絾鏄庝箞絳涢変笉鍑烘潵鐨?</strong><br /> http://topic.csdn.net/t/20040814/04/3273316.html<br /> <br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #000000">Q:<br /> 鎴戝湪涓涓獁inform紼嬪簭閲岀敤DataView鐨凴owFilter絳涢夋椂鐢ㄤ袱涓笅鍒掔嚎浠h〃涓や釜涓瓧絎︼紝濡傦細   <br />   dv.RowFilter="PID   LIKE   '"+str+"-__"錛岃繖鏍風殑絳涢夎鍙ュ湪SQL浼佷笟綆$悊鍣ㄩ噷鎵ц鏄兘姝g‘絳涢夊埌璁板綍鐨勶紝浣嗘槸涓轟粈涔堝湪榪欓噷灝變竴涓兘絳涢変笉鍑烘潵錛熸槸涓嶆槸榪欓噷瑕佺敤鍒殑絎﹀彿鏉ヤ唬琛ㄤ竴涓瓧絎﹀晩銆?nbsp;<br /> <br /> A:<br /> "_"   is   probably   very   sql   server   specific,   classes   in   System.Data   is   supposed   to   be   DBMS   independent,   you   can   try   to   use   <br />     <br />   ABC   LIKE   'abc*'   AND   LEN(ABC)=5<br /> <br /> </span></div> <br /> <br /> <br /> <br /> <br /> <hr color="#999999" size="4" /> <strong>2. ListBox 澶氶」閫夋嫨錛圖ataRowView錛?/strong> <br /> <br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">; i </span><span style="color: #000000"><</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.lstSource.SelectedItems.Count; i</span><span style="color: #000000">++</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_73_515_Open_Image" onclick="this.style.display='none'; Codehighlighter1_73_515_Open_Text.style.display='none'; Codehighlighter1_73_515_Closed_Image.style.display='inline'; Codehighlighter1_73_515_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_73_515_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_73_515_Closed_Text.style.display='none'; Codehighlighter1_73_515_Open_Image.style.display='inline'; Codehighlighter1_73_515_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />            </span><span id="Codehighlighter1_73_515_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_73_515_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                DataRowView row </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.lstSource.SelectedItems[i] </span><span style="color: #0000ff">as</span><span style="color: #000000"> DataRowView;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">int</span><span style="color: #000000"> id </span><span style="color: #000000">=</span><span style="color: #000000"> Int32.Parse(row[</span><span style="color: #000000">"</span><span style="color: #000000">id</span><span style="color: #000000">"</span><span style="color: #000000">].ToString());<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">string</span><span style="color: #000000"> employee </span><span style="color: #000000">=</span><span style="color: #000000"> String.Format(</span><span style="color: #000000">"</span><span style="color: #000000">{0}<{1}></span><span style="color: #000000">"</span><span style="color: #000000">, row[</span><span style="color: #000000">"</span><span style="color: #000000">employee_name</span><span style="color: #000000">"</span><span style="color: #000000">], row[</span><span style="color: #000000">"</span><span style="color: #000000">dept_name</span><span style="color: #000000">"</span><span style="color: #000000">]);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #008000">//</span><span style="color: #008000">鏁版嵁濉厖</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">                </span><span style="color: #0000ff">if</span><span style="color: #000000"> (</span><span style="color: #000000">!</span><span style="color: #0000ff">this</span><span style="color: #000000">.idList.Contains(id))<br /> <img id="Codehighlighter1_405_514_Open_Image" onclick="this.style.display='none'; Codehighlighter1_405_514_Open_Text.style.display='none'; Codehighlighter1_405_514_Closed_Image.style.display='inline'; Codehighlighter1_405_514_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_405_514_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_405_514_Closed_Text.style.display='none'; Codehighlighter1_405_514_Open_Image.style.display='inline'; Codehighlighter1_405_514_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span><span id="Codehighlighter1_405_514_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_405_514_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                    </span><span style="color: #0000ff">this</span><span style="color: #000000">.idList.Add(id);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                    </span><span style="color: #0000ff">this</span><span style="color: #000000">.valueList.Add(employee);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                }</span></span></div> </span> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />             <span style="color: #000000">System.Windows.Forms.ListBox.SelectedIndexCollection indexes </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.lstTarget.SelectedIndices;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> indexes.Count </span><span style="color: #000000">-</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">; i </span><span style="color: #000000">>=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">; i</span><span style="color: #000000">--</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_181_298_Open_Image" onclick="this.style.display='none'; Codehighlighter1_181_298_Open_Text.style.display='none'; Codehighlighter1_181_298_Closed_Image.style.display='inline'; Codehighlighter1_181_298_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_181_298_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_181_298_Closed_Text.style.display='none'; Codehighlighter1_181_298_Open_Image.style.display='inline'; Codehighlighter1_181_298_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />            </span><span id="Codehighlighter1_181_298_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_181_298_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">this</span><span style="color: #000000">.idList.RemoveAt(indexes[i]);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">this</span><span style="color: #000000">.valueList.RemoveAt(indexes[i]);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />            }</span></span></div> <img src ="http://www.tkk7.com/kiant/aggbug/280746.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2010-04-22 12:35 <a href="http://www.tkk7.com/kiant/articles/280746.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Enterprise Library 4 涔?DAAB浣跨敤http://www.tkk7.com/kiant/articles/317510.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Mon, 05 Apr 2010 14:26:00 GMThttp://www.tkk7.com/kiant/articles/317510.htmlhttp://www.tkk7.com/kiant/comments/317510.htmlhttp://www.tkk7.com/kiant/articles/317510.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/317510.htmlhttp://www.tkk7.com/kiant/services/trackbacks/317510.html 寮曠敤鑷細
Enterprise Library 2.0 -- Data Access Application Block銆鍜屻鍔犲瘑鏁版嵁搴撹繛鎺ュ瓧絎︿覆
http://www.cnblogs.com/adamoooo/articles/892618.html



鍙栧緱瀛樺偍榪囩▼鐨勮繑鍥炲箋佽緭鍑哄弬鏁?br />
 甯﹁緭鍑哄弬鏁扮殑錛?/strong>
            try
            {
                Database db 
= DatabaseFactory.CreateDatabase();
                DbCommand cmd 
= db.GetStoredProcCommand("usp_xxx");

                db.AddParameter(cmd, 
"@UserID", DbType.Int32, ParameterDirection.InputOutput, "", DataRowVersion.Current, dict.Get("UserID"0));
                db.AddInParameter(cmd, 
"@LoginName", DbType.String, dict["LoginName"]);
                

                db.ExecuteNonQuery(cmd);
                
return DictionaryEx.Create("UserID", db.GetParameterValue(cmd, "@UserID"));
            }
            
catch (Exception)
            {
                
return null;
            }        



甯﹁繑鍥炲鹼細
try
            {
                Database db 
= DatabaseFactory.CreateDatabase();
                DbCommand cmd 
= db.GetStoredProcCommand("usp_xxx");
                db.AddInParameter(cmd, 
"@UserID", DbType.Int32, dict["UserID"]);
                
                db.AddParameter(cmd, 
"@ret", DbType.Int32, ParameterDirection.ReturnValue, "", DataRowVersion.Default, null);
                db.ExecuteNonQuery(cmd);

                
return cmd.Parameters["@ret"].Value;
            }
            
catch (Exception)
            {
                
return null;
            }



鏌ヨ榪斿洖緇撴灉闆嗭細
try
            {
                Database db 
= DatabaseFactory.CreateDatabase();
                DbCommand cmd 
= db.GetStoredProcCommand("usp_xxx");
                db.AddInParameter(cmd, 
"@rowStart", DbType.Int32, dict.Get("rowStart"null));
                db.AddInParameter(cmd, 
"@rowEnd", DbType.Int32, dict.Get("rowEnd"null));

                
return db.ExecuteDataSet(cmd);
            }
            
catch (Exception)
            {
                
return null;
            }



]]>
瀛樺偍榪囩▼榪斿洖鐨勫緇撴灉闆嗘暟鎹紝ado 璁塊棶璋冪敤http://www.tkk7.com/kiant/articles/294666.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Fri, 11 Sep 2009 00:17:00 GMThttp://www.tkk7.com/kiant/articles/294666.htmlhttp://www.tkk7.com/kiant/comments/294666.htmlhttp://www.tkk7.com/kiant/articles/294666.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/294666.htmlhttp://www.tkk7.com/kiant/services/trackbacks/294666.html 瀛樺偍榪囩▼榪斿洖鐨勫緇撴灉闆嗘暟鎹紝ado鎬庝箞鎵撳紑榪欎簺緇撴灉闆嗗茍鍙栧緱鏁版嵁錛?/a>


SqlDataAdapter   myDataAdapter   =   new   SqlDataAdapter("GetRecordFromPage2",myConnection);  
  myDataAdapter.SelectCommand.CommandType   =   CommandType.StoredProcedure;  
   
  myDataAdapter.SelectCommand.Parameters.Add("@sqlstr",sqlstr);  
  myDataAdapter.SelectCommand.Parameters.Add("@pagecount",pagecount);  
  myDataAdapter.SelectCommand.Parameters.Add("@pagesize",pagesize);  
   
  DataSet   ds   =   new   DataSet();  
  myDataAdapter.Fill(ds);  
  return   ds;  
   
  ds.Tables[0],ds.Tables[1],ds.Tables[2],鍒嗗埆瀵瑰簲涓変釜緇撴灉闆?br />


asp 涓嬶細

<%   set   cmm=server.createobject("adodb.command")  
  set   rs=server.createobject("adodb.recordset")  
   
  cmm.commandtype=4  
  cmm.activeconnection=conn  
  cmm.commandtext="proc_name"  
  set   rs=cmm.execute  
  cmm.execute   %>  
   
      <%   while   not   rs.eof    
  response.write   rs(0)  
   
    rs.movenext  
      wend  
      %>  
      <%    
      set   rs2=rs.NextRecordset()  
      while   not   rs2.eof    
  response.write   rs2(0)  
              rs2.movenext  
      wend  
  ...........  
      rs2.close  
      set   rs2=nothing   %>


]]>
iis tomcat 鏈嶅姟闆嗘垚http://www.tkk7.com/kiant/articles/291472.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Mon, 17 Aug 2009 05:59:00 GMThttp://www.tkk7.com/kiant/articles/291472.htmlhttp://www.tkk7.com/kiant/comments/291472.htmlhttp://www.tkk7.com/kiant/articles/291472.html#Feedback3http://www.tkk7.com/kiant/comments/commentRss/291472.htmlhttp://www.tkk7.com/kiant/services/trackbacks/291472.html 鎰熻阿 鏁村悎iis鍜宼omcat 涓鏂囦綔鑰咃紝渚濈収浠栫殑璇存槑鎴戣皟璇曟垚鍔熶簡
鍚屾椂涔熸劅璋㈠叾浠栦綔鑰咃紝浣犱滑鐨勬枃绔犵粰浜嗘垜涓嶅皯鍚彂

/Files/kiant/iis_tomcat.rar

]]>
C# 紼嬪簭鍙戝竷/閮ㄧ講鐩稿叧http://www.tkk7.com/kiant/articles/290093.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Thu, 06 Aug 2009 06:26:00 GMThttp://www.tkk7.com/kiant/articles/290093.htmlhttp://www.tkk7.com/kiant/comments/290093.htmlhttp://www.tkk7.com/kiant/articles/290093.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/290093.htmlhttp://www.tkk7.com/kiant/services/trackbacks/290093.html 鎵嬫妸鎵嬫暀浣犵敤C#鎵撳寘搴旂敤紼嬪簭(瀹夎紼嬪簭)

web.config 閰嶇疆鑺傜偣鍔犲瘑


閰嶇疆鐜:

Tomcat 铏氭嫙璺緞錛?/strong>

3 鍦╰omcat涓?server.xml閰嶇疆鏂囦歡涓姞鍏?br /> <Host>
 .........
 <Context path="/upload" docBase="D:\upload" reloadable="false" />
</Host>

4 鍦╠:鐩樻牴鐩綍涓嬫柊寤簎pload鏂囦歡澶?


IIS 閰嶇疆

7 鍦ㄥ畨瑁呭畬iis鍚?鍦ㄧ鐞嗗伐鍏?>Internet淇℃伅鏈嶅姟鍣?IIS)->Internet 淇℃伅鏈嶅姟-->鏈湴璁$畻鏈?>
  緗戠珯-->榛樿緗戠珯-->鍙抽敭灞炴?->鏂囨。->娣誨姞->杈撳叆:index.jsp

8 瀹夎.Net framework3.5

9 瀹夎mysql-connector-net-6.0.3.zip鐢ㄤ簬.net閾炬帴mysql.

10 媯鏌ヨ緗畐ebservice鐨刬p

11 閰嶇疆IIS
 a.灝咺IS鐨刉eb鏈嶅姟鎵╁睍涓瑼ctive Server Pages 鐘跺喌璁句負鍏佽,
    ASP.Net v2.0.5.0727   鐘跺喌璁句負鍏佽,
  濡傛灉緋葷粺鏃犻粯璁ゆ壘鍒? 鎵嬪姩閰嶇疆, cmd 鎵ц : c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i -enable
   Internet 鏁版嵁榪炴帴鍣?nbsp;  鐘跺喌璁劇疆涓哄厑璁?
   鍦ㄦ湇鍔″櫒绔殑鍖呭惈鏂囦歡  鐘跺喌璁句負鍏佽.
 b.閰嶇疆緗戠珯灞炴?br />    緗戠珯閫夐」鍗?榛樿
   鎬ц兘閫夐」鍗?榛樿
   ISAPI絳涢夊櫒閫夐」鍗?榛樿
   涓葷洰褰曢夐」鍗?姝よ綆楁満涓婄殑鐩綍,c:\inetpub\wwwroot,鑴氭湰璧勬簮璁塊棶,璇誨彇,璁板綍璁塊棶,绱㈠紩璧勬簮,榛樿搴旂敤紼嬪簭,鑴氭湰鍜屽彲鎵ц鏂囦歡,DefaultAppPool
   鏂囨。閫夐」鍗?娣誨姞index.asp
   鐩綍瀹夊叏鎬ч夐」鍗?韜喚楠岃瘉鍜岃闂帶鍒?->緙栬緫-->媯鏌ョ敤鎴峰悕鍜屽瘑鐮?鍦╳indows鐢ㄦ埛涓殑璁塊棶鏉冮檺:鏉ュ甯愭埛.)
   http澶撮夐」鍗?榛樿
   鑷畾涔夐敊璇夐」鍗?榛樿
   鏈嶅姟閫夐」鍗?榛樿
   ASP.NET閫夐」鍗?媯鏌sp.net鐗堟湰 v2.0 ,铏氭嫙璺緞,鏂囦歡浣嶇疆
 c.閰嶇疆緗戠珯鏉冮檺
   鎵懼埌搴旂敤紼嬪簭鎵浣跨敤鐨刉indows鐢ㄦ埛 (Internet 鏉ュ甯愭埛:寮閫氬厑璁稿尶鍚嶈闂?,騫朵負璇ョ敤鎴瘋緗闂潈闄?
 d.閰嶇疆搴旂敤鐨勫睘鎬?br />    鐩綍閫夐」鍗?鎸囧畾鐨勭洰褰?鑴氭湰璧勬簮璁塊棶,璇誨彇,璁板綍璁塊棶,绱㈠紩璧勬簮,搴旂敤紼嬪簭鍚?鑴氭湰鍙墽琛屾枃浠?DefaultAppPool

/*** 
  鍙戝竷鏃朵笉瑕佸皢璧勬簮鏀懼湪榛樿鐨刢:\inetpub\wwwroot鐩綍涓?浣跨敤铏氭嫙璺緞
 騫朵笖淇敼鏁版嵁搴撻摼鎺ヤ覆.


 

 



]]>
Enterprise Library 浼佷笟搴撶瑪璁?/title><link>http://www.tkk7.com/kiant/articles/289017.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Thu, 30 Jul 2009 02:25:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/289017.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/289017.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/289017.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/289017.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/289017.html</trackback:ping><description><![CDATA[<p>寤鴻涓繪満瀹夎 浼佷笟搴撳拰 MySQL榪炴帴</p> <p> </p> <p><strong>1.</strong><br /> Enterprise Library鍚敤絳懼悕鍚庡彂鐢?PublicKeyToken閿欒錛孒RESULT:0x80131040瑙e喅<br /> http://blog.csdn.net/cnming/archive/2007/07/15/1691714.aspx</p> <p>ps:鎴戠殑瑙e喅鏂規硶 PublicKeyToken=null, 涓嶈緗閽?/p> <p> </p> <p><strong>2.瀵規暟鎹簱鎿嶄綔</strong></p> <p>http://pw.cnblogs.com/archive/2006/06/02/415431.html </p> <p> </p> <p><strong>3.</strong><br /> Microsoft.Practices.ObjectBuilder2.BuildFailedException: The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, HRPConnection]) failed: 鎵句笉鍒拌姹傜殑 .Net Framework 鏁版嵁鎻愪緵紼嬪簭銆傚彲鑳芥病鏈夊畨瑁呫?(Strategy type ConfiguredObjectStrategy, index 2) ---> System.ArgumentException: 鎵句笉鍒拌姹傜殑 .Net Framework 鏁版嵁鎻愪緵紼嬪簭銆傚彲鑳芥病鏈夊畨瑁呫?/p> <p><br /> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=null" /><br /> 鏀逛負(鍙傝: x:\EntLib41Src\Quick Starts\Data\CS\DataAccessQuickStart\app.config 紺轟緥)<br /> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data" /><br /> =======================================================<br /> 鎴栬呰鏈澶х殑鍙兘鏄病鏈夌浉搴旂殑鏁版嵁搴撻摼鎺ラ┍鍔?br /> 姣斿: 鎴戠殑欏圭洰涓嬌鐢ㄧ殑鏄?mysql 閰嶇疆鏂囦歡閲?providerName="System.Data.SqlClient"<br /> 濡傛灉娌℃湁瑁呯浉搴旂殑椹卞姩 mysql-connector-net-6.0.3.zip灝辨湁鍙兘鎶ヨ繖涓敊璇?</p> <p> </p> <p><strong>4. 鏁版嵁搴撹繛鎺?"鏈皢瀵硅薄寮曠敤鍒板疄渚? 閿?/strong><br /> 鍦ㄥ閲屾満鍣ㄤ笂 "鏁版嵁榪炴帴--MySQL Database--Server Name" 涓鏍忓~涓婃湰鏈?IP鍦板潃 "10.0.0.99" 浼氭彁紺洪敊璇俊鎭?"鏈皢瀵硅薄寮曠敤鍒板疄渚?, 鏀逛負 "localhost" 灝卞彲浠? 浣嗘槸鍦ㄥ叕鍙告満鍣ㄤ笂鍗存病榪欎釜闂. <br /> (闅鵑亾鏄洜涓哄叕鍙鎬富鏈烘湁鎻愪緵 mysql鏈嶅姟, 鎵浠ョ洿鎺ヨ繛鎺ヤ富鏈鴻兘鎴愬姛.<br /> 鑰屼釜浜哄閲岄潰鐢ㄧ殑鏄簿綆鐗? 娌″畨瑁呮湇鍔? 鎵浠ョ洿鎺ユ墦 IP鍦板潃鏄繛鎺ヤ笉涓? 闇鏀逛負 localhost)</p> <p><br /> <strong>5. 姝ラ</strong><br /> 浣跨敤microsoft EnterpriseLibrary榪炴帴涓嶅悓鏁版嵁搴撶畝鍗曞簲鐢?<br /> 鏂囩珷鍑哄錛歨ttp://www.diybl.com/course/4_webprogram/asp.net/netjs/20081216/154074.html</p> <p> </p> <p> </p> <img src ="http://www.tkk7.com/kiant/aggbug/289017.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-07-30 10:25 <a href="http://www.tkk7.com/kiant/articles/289017.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C# XML鐨勪竴鐐硅褰?/title><link>http://www.tkk7.com/kiant/articles/289010.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Thu, 30 Jul 2009 02:11:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/289010.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/289010.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/289010.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/289010.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/289010.html</trackback:ping><description><![CDATA[<br /> C#璇誨彇XML鐐規淮<br /> http://www.cnblogs.com/sopper/archive/2006/11/03/549435.html <br /> <br /> <br /> <hr /> <p><br />         XmlDocument doc = new XmlDocument();<br />         XmlElement root = doc.CreateElement("root");</p> <p>        XmlElement companyId = doc.CreateElement("companyId");<br />         companyId.InnerText = "1";<br />         root.AppendChild(companyId);</p> <p>        doc.AppendChild(root);<br />         string kk = doc.OuterXml;<br /> <br /> <br /> </p> <p>///////////////////////////<br /> <p>try<br />             {<br />                 XmlDocument doc = new XmlDocument();<br />                 XmlElement root = doc.CreateElement("root");<br />                 foreach (var item in dict)<br />                 {<br />                     XmlElement e = doc.CreateElement(item.Key);<br />                     e.InnerText = item.Value;<br />                     root.AppendChild(e);<br />                 }</p> <p>                doc.AppendChild(root);<br />                 return doc.OuterXml;<br />             }<br />             catch (Exception)<br />             {<br />                 return "";<br />             }</p> <p><br /> <br /> <br /> <hr /> <strong>鍐?/strong><br /> <br />         XDocument doc = new XDocument(<br />             new XDeclaration("1.0", "utf-8", "yes"),<br />             new XElement("root",<br />                 new XElement("companyId", "1")<br />             )<br />         ); <p> </p> <p>        string kk = doc.ToString();<br /> <br /> ---------<br />         XDocument doc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));<br />         XElement root = new XElement("root");</p> <p>        XElement element = new XElement("companyId");<br />         element.Value = 1 + "";<br />         root.Add(element);</p> <p>        doc.Add(root);</p> <p><br /> <hr /> <strong>鍏冪礌璇誨彇</strong><br /> <br />         XElement els = XElement.Parse(msg);<br />         var companyId = from e in els.Elements("companyId")<br />                         select e;<br />         string kk = companyId.First().Value;<br /> <br /> <p> </p> <img src ="http://www.tkk7.com/kiant/aggbug/289010.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-07-30 10:11 <a href="http://www.tkk7.com/kiant/articles/289010.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Xml 澶勭悊綾?鏇存柊涓?..)http://www.tkk7.com/kiant/articles/286878.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Wed, 15 Jul 2009 07:09:00 GMThttp://www.tkk7.com/kiant/articles/286878.htmlhttp://www.tkk7.com/kiant/comments/286878.htmlhttp://www.tkk7.com/kiant/articles/286878.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/286878.htmlhttp://www.tkk7.com/kiant/services/trackbacks/286878.html闃呰鍏ㄦ枃

]]>
winForm 鎺т歡涓彸閿偣鍑諱簨浠舵敹闆?/title><link>http://www.tkk7.com/kiant/articles/284310.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Fri, 10 Jul 2009 04:21:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/284310.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/284310.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/284310.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/284310.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/284310.html</trackback:ping><description><![CDATA[<br /> <strong>DataGridView</strong> <br /> <a target="_blank">DataGridView涓婃寜鍙抽敭寮瑰嚭鍙抽敭鑿滃崟鍓嶉変腑褰撳墠琛?/a> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">        </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> DataGridView1_CellMouseDown(</span><span style="color: #0000ff">object</span><span style="color: #000000"> sender, DataGridViewCellMouseEventArgs e)<br /> <img id="Codehighlighter1_106_313_Open_Image" onclick="this.style.display='none'; Codehighlighter1_106_313_Open_Text.style.display='none'; Codehighlighter1_106_313_Closed_Image.style.display='inline'; Codehighlighter1_106_313_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_106_313_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_106_313_Closed_Text.style.display='none'; Codehighlighter1_106_313_Open_Image.style.display='inline'; Codehighlighter1_106_313_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />        </span><span id="Codehighlighter1_106_313_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_106_313_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            DataGridView1.ClearSelection();<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            DataGridView1.Rows[e.RowIndex].Selected </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">true</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            DataGridView1.CurrentCell </span><span style="color: #000000">=</span><span style="color: #000000"> DataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img id="Codehighlighter1_316_517_Open_Image" onclick="this.style.display='none'; Codehighlighter1_316_517_Open_Text.style.display='none'; Codehighlighter1_316_517_Closed_Image.style.display='inline'; Codehighlighter1_316_517_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_316_517_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_316_517_Closed_Text.style.display='none'; Codehighlighter1_316_517_Open_Image.style.display='inline'; Codehighlighter1_316_517_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_316_517_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/**/</span><span id="Codehighlighter1_316_517_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />2007-05-16 17:31 by HELLO [鏈敞鍐岀敤鎴穄 <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />鐢?#8220;dataGridView1_CellMouseClick”榪欎釜浜嬩歡 <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />鏈変簺鏃跺欏彲浠ュ彧寮瑰嚭鑿滃崟錛屾病鏈夐夋嫨鍗曞厓鏍鹼紱鏈夋椂鍊欏彧閫夋嫨鍗曞厓鏍鹼紝娌℃湁寮瑰嚭鑿滃崟 <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />濡傛灉鑿滃崟鎺т歡鍦ㄧ粦鍦―ATAGRIDVIEW涓婏紙dataGridView1.ContextMenuStrip = this.ContextSrtip1錛夛紝鍙堜笉鑳介夋嫨鍗曞厓鏍?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span><span style="color: #008000">*/</span></span></div> <br /> DataGridView 瓚呴摼鎺ョ偣鍑諱簨浠? <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">        </span><span style="color: #008000">//</span><span style="color: #008000">鍐呭鐐瑰嚮, 騫跺垽鏂墍鐐瑰嚮鐨勫垪鍚?/span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> dgvData_CellContentClick(</span><span style="color: #0000ff">object</span><span style="color: #000000"> sender, DataGridViewCellEventArgs e)<br /> <img id="Codehighlighter1_124_404_Open_Image" onclick="this.style.display='none'; Codehighlighter1_124_404_Open_Text.style.display='none'; Codehighlighter1_124_404_Closed_Image.style.display='inline'; Codehighlighter1_124_404_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_124_404_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_124_404_Closed_Text.style.display='none'; Codehighlighter1_124_404_Open_Image.style.display='inline'; Codehighlighter1_124_404_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" />        </span><span id="Codehighlighter1_124_404_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_124_404_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            DataGridView dgv </span><span style="color: #000000">=</span><span style="color: #000000"> sender </span><span style="color: #0000ff">as</span><span style="color: #000000"> DataGridView;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">string</span><span style="color: #000000"> columnName </span><span style="color: #000000">=</span><span style="color: #000000"> dgv.Columns[e.ColumnIndex].Name;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (</span><span style="color: #000000">"</span><span style="color: #000000">operation</span><span style="color: #000000">"</span><span style="color: #000000">.Equals(columnName))<br /> <img id="Codehighlighter1_306_394_Open_Image" onclick="this.style.display='none'; Codehighlighter1_306_394_Open_Text.style.display='none'; Codehighlighter1_306_394_Closed_Image.style.display='inline'; Codehighlighter1_306_394_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_306_394_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_306_394_Closed_Text.style.display='none'; Codehighlighter1_306_394_Open_Image.style.display='inline'; Codehighlighter1_306_394_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />            </span><span id="Codehighlighter1_306_394_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_306_394_Open_Text"><span style="color: #000000">{</span><span style="color: #008000">//</span><span style="color: #008000">濡傛灉鐐瑰嚮鐨勫垪鍚嶇鍚?nbsp;               </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">                dgv.Rows.RemoveAt(e.RowIndex);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />            }</span></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />        }</span></span></div> <br /> <br /> <br /> <strong>TreeView<br /> </strong><a target="_blank">c# winform TreeView鎺т歡涓疄鐜版嫋鎷界殑鍔熻兘</a><br /> <br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Codehighlighter1_0_3052_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_0_3052_Closed_Text.style.display='none'; Codehighlighter1_0_3052_Open_Image.style.display='inline'; Codehighlighter1_0_3052_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><img id="Codehighlighter1_0_3052_Open_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_0_3052_Open_Text.style.display='none'; Codehighlighter1_0_3052_Closed_Image.style.display='inline'; Codehighlighter1_0_3052_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><span id="Codehighlighter1_0_3052_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">鑺傜偣鎷栨嫿浜嬩歡</span><span id="Codehighlighter1_0_3052_Open_Text" style="display: none"><span style="color: #0000ff">#region</span><span style="color: #000000"> 鑺傜偣鎷栨嫿浜嬩歡</span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000">褰撶敤鎴峰紑濮嬫嫋鍔ㄨ妭鐐規椂</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">        </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> tvModel_ItemDrag(</span><span style="color: #0000ff">object</span><span style="color: #000000"> sender, ItemDragEventArgs e)<br /> <img id="Codehighlighter1_118_299_Open_Image" onclick="this.style.display='none'; Codehighlighter1_118_299_Open_Text.style.display='none'; Codehighlighter1_118_299_Closed_Image.style.display='inline'; Codehighlighter1_118_299_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_118_299_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_118_299_Closed_Text.style.display='none'; Codehighlighter1_118_299_Open_Image.style.display='inline'; Codehighlighter1_118_299_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_118_299_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_118_299_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            TreeNode selectNode </span><span style="color: #000000">=</span><span style="color: #000000"> e.Item </span><span style="color: #0000ff">as</span><span style="color: #000000"> TreeNode;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.SelectedNode </span><span style="color: #000000">=</span><span style="color: #000000"> selectNode;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">this</span><span style="color: #000000">.form.DoDragDrop(e.Item, DragDropEffects.Move);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000">灝嗗璞℃嫋鍏ユ帶浠剁殑杈圭晫鏃?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">        </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> tvModel_DragEnter(</span><span style="color: #0000ff">object</span><span style="color: #000000"> sender, DragEventArgs e)<br /> <img id="Codehighlighter1_403_642_Open_Image" onclick="this.style.display='none'; Codehighlighter1_403_642_Open_Text.style.display='none'; Codehighlighter1_403_642_Closed_Image.style.display='inline'; Codehighlighter1_403_642_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_403_642_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_403_642_Closed_Text.style.display='none'; Codehighlighter1_403_642_Open_Image.style.display='inline'; Codehighlighter1_403_642_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_403_642_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_403_642_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            TreeNode enterNode </span><span style="color: #000000">=</span><span style="color: #000000"> (TreeNode)(e.Data.GetData(</span><span style="color: #0000ff">typeof</span><span style="color: #000000">(TreeNode)));<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (enterNode </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                e.Effect </span><span style="color: #000000">=</span><span style="color: #000000"> DragDropEffects.Move;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">else</span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                e.Effect </span><span style="color: #000000">=</span><span style="color: #000000"> DragDropEffects.None;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000">鍦ㄥ畬鎴愭嫋鏀炬搷浣滄椂</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">        </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> tvModel_DragDrop(</span><span style="color: #0000ff">object</span><span style="color: #000000"> sender, DragEventArgs e)<br /> <img id="Codehighlighter1_742_2238_Open_Image" onclick="this.style.display='none'; Codehighlighter1_742_2238_Open_Text.style.display='none'; Codehighlighter1_742_2238_Closed_Image.style.display='inline'; Codehighlighter1_742_2238_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_742_2238_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_742_2238_Closed_Text.style.display='none'; Codehighlighter1_742_2238_Open_Image.style.display='inline'; Codehighlighter1_742_2238_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_742_2238_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_742_2238_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            TreeNode selectNode </span><span style="color: #000000">=</span><span style="color: #000000"> (TreeNode)(e.Data.GetData(</span><span style="color: #0000ff">typeof</span><span style="color: #000000">(TreeNode)));<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">0.濡傛灉閫夋嫨婧愪負絀?nbsp;鎴栬呬笉鏄簩綰ц妭鐐瑰垯閫鍑?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (selectNode </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000"> </span><span style="color: #000000">||</span><span style="color: #000000"> selectNode.Level </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">return</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">1.鏍規嵁榧犳爣鍧愭爣鑾峰緱鐩爣鑺傜偣</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            Position.X </span><span style="color: #000000">=</span><span style="color: #000000"> e.X;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            Position.Y </span><span style="color: #000000">=</span><span style="color: #000000"> e.Y;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            Position </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.PointToClient(Position);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            TreeNode targetNode </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.GetNodeAt(Position);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">foreach</span><span style="color: #000000"> (TreeNode node </span><span style="color: #0000ff">in</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.Nodes[</span><span style="color: #000000">0</span><span style="color: #000000">].Nodes)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                node.NodeFont </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Font(</span><span style="color: #0000ff">this</span><span style="color: #000000">.form.Font, FontStyle.Regular);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">2.鑾峰緱瑕佹彃鍏ョ殑鐩爣鑺傜偣绱㈠紩</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">int</span><span style="color: #000000"> index </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (targetNode </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                index </span><span style="color: #000000">=</span><span style="color: #000000"> selectNode.Parent.Nodes.Count </span><span style="color: #000000">-</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">;      </span><span style="color: #008000">//</span><span style="color: #008000">鐩爣鑺傜偣涓簄ull, 鐩存帴鎻掑叆鍒版渶鍚?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> (targetNode.Level </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                index </span><span style="color: #000000">=</span><span style="color: #000000"> targetNode.Index </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">;                   </span><span style="color: #008000">//</span><span style="color: #008000">鐩爣鑺傜偣涓哄悓綰? 鐩存帴鍦ㄤ箣鍚庢彃鍏?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> (targetNode.Level </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                index </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;                                      </span><span style="color: #008000">//</span><span style="color: #008000">鐩爣涓烘牴鑺傜偣, 鐩存帴鎻掑叆鍒版渶鍓?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000"> (targetNode.Level </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_1795_2034_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1795_2034_Open_Text.style.display='none'; Codehighlighter1_1795_2034_Closed_Image.style.display='inline'; Codehighlighter1_1795_2034_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1795_2034_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1795_2034_Closed_Text.style.display='none'; Codehighlighter1_1795_2034_Open_Image.style.display='inline'; Codehighlighter1_1795_2034_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span><span id="Codehighlighter1_1795_2034_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_1795_2034_Open_Text"><span style="color: #000000">{                                                   </span><span style="color: #008000">//</span><span style="color: #008000">鐩爣鑺傜偣涓轟簩綰ц妭鐐逛互鍚? 閬嶅巻鍒板叾浜岀駭鑺傜偣</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">                </span><span style="color: #0000ff">while</span><span style="color: #000000"> (targetNode.Level </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                    targetNode </span><span style="color: #000000">=</span><span style="color: #000000"> targetNode.Parent;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                index </span><span style="color: #000000">=</span><span style="color: #000000"> index </span><span style="color: #000000">=</span><span style="color: #000000"> targetNode.Index </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">3.婧愯妭鐐瑰垹闄? 鐩爣鑺傜偣鍦ㄧ儲寮曞嚭鎻掑叆, 騫墮珮浜変腑</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            selectNode.Remove();<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.Nodes[</span><span style="color: #000000">0</span><span style="color: #000000">].Nodes.Insert(index, selectNode);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.SelectedNode </span><span style="color: #000000">=</span><span style="color: #000000"> selectNode;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000">灝嗗璞℃嫋榪囨帶浠惰竟緙樻椂</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">        </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> tvModel_DragOver(</span><span style="color: #0000ff">object</span><span style="color: #000000"> sender, DragEventArgs e)<br /> <img id="Codehighlighter1_2340_3033_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2340_3033_Open_Text.style.display='none'; Codehighlighter1_2340_3033_Closed_Image.style.display='inline'; Codehighlighter1_2340_3033_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2340_3033_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2340_3033_Closed_Text.style.display='none'; Codehighlighter1_2340_3033_Open_Image.style.display='inline'; Codehighlighter1_2340_3033_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_2340_3033_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_2340_3033_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            Position.X </span><span style="color: #000000">=</span><span style="color: #000000"> e.X;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            Position.Y </span><span style="color: #000000">=</span><span style="color: #000000"> e.Y;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            Position </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.PointToClient(Position);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">鍦ㄦ嫋榪囩殑鎺т歡鍓嶅悗鏄劇ず鍒掔嚎鏁堟灉</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            TreeNode targetNode </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.tvModel.GetNodeAt(Position);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">if</span><span style="color: #000000"> (targetNode </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000"> </span><span style="color: #000000">&&</span><span style="color: #000000"> targetNode.Level </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_2634_3023_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2634_3023_Open_Text.style.display='none'; Codehighlighter1_2634_3023_Closed_Image.style.display='inline'; Codehighlighter1_2634_3023_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_2634_3023_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2634_3023_Closed_Text.style.display='none'; Codehighlighter1_2634_3023_Open_Image.style.display='inline'; Codehighlighter1_2634_3023_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span><span id="Codehighlighter1_2634_3023_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_2634_3023_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">if</span><span style="color: #000000"> (targetNode.PrevNode </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                    targetNode.PrevNode.NodeFont </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Font(</span><span style="color: #0000ff">this</span><span style="color: #000000">.form.Font, FontStyle.Regular);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">if</span><span style="color: #000000"> (targetNode.NextNode </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                    targetNode.NextNode.NodeFont </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Font(</span><span style="color: #0000ff">this</span><span style="color: #000000">.form.Font, FontStyle.Regular);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                targetNode.NodeFont </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Font(</span><span style="color: #0000ff">this</span><span style="color: #000000">.form.Font, FontStyle.Underline);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />        </span><span style="color: #0000ff">#endregion</span></span></div> <br /> <img src ="http://www.tkk7.com/kiant/aggbug/284310.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-07-10 12:21 <a href="http://www.tkk7.com/kiant/articles/284310.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>mysql鏃墮棿瀛楁鐨勬牸寮忎笌緙栫爜杞崲, C#涓?xml 瀛樺偍鏃墮棿鏁版嵁鐨勪復鏃惰В鍐蟲柟妗?/title><link>http://www.tkk7.com/kiant/articles/286217.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Fri, 10 Jul 2009 04:08:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/286217.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/286217.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/286217.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/286217.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/286217.html</trackback:ping><description><![CDATA[<p>鍥犱負 C#閲岃皟鐢?Dataset鍐呯疆鏂規硶 GetXml()鐢熸垚鐨?xml瀛楃涓叉槸鏃?XMLSchema鏋舵瀯鐨?br /> 鍏剁敓鎴愮殑 xml瀛楃涓查噷鏃墮棿鏍煎紡鏄互 "<span id="ewc4g8o" class="tx">2009-07-07T14:58:27+08:00" 瀛樻斁鐨?br /> <br /> <br /> 鍦ㄦ帴鏀剁瑙f瀽鐨勬椂鍊?濡傛灉娌℃湁 XMLSchema鏋舵瀯鐨勬敞閲?nbsp; <br /> <span id="m8uo4si" class="m"><</span><span id="q844yk4" class="t">xs:element</span> <span id="mc84owq" class="t">name</span><span id="u86uika" class="m">="</span><strong>dept_createtime</strong><span id="8e4mw48" class="m">"</span><span id="awc8gou" class="t"> type</span><span id="444e4sk" class="m">="</span><strong>xs:dateTime</strong><span id="4g8i4us" class="m">"</span><span id="84u4sc4" class="t"> minOccurs</span><span id="akuug48" class="m">="</span><strong>0</strong><span id="gkwyc84" class="m">"</span><span id="8s84qow" class="m"> /></span> <br /> xml 鏁版嵁 "<span id="cmgkm48" class="tx">2009-07-07T14:58:27+08:00" 浼氫互榛樿鐨勫瓧絎︽柟寮忚繘琛岃В鏋?br /> <br /> <br /> 鎵浠ュ湪欏圭洰閲屾垜鐨勮В鍐蟲柟娉曟槸鍦ㄥ埄鐢?sql璇彞鏌ヨ鏃跺氨鐢熸垚鐗瑰畾鐨勫瓧絎︿覆鏍煎紡</span></span></p> Convert( DATE_FORMAT(n.node_begin_time, '%Y.%c.%e') using utf8) as begin_time <br /> //鍏堝埄鐢?DATE_FORMAT()鍑芥暟榪涜鏍峰紡鏍煎紡鍖?br /> //鍦ㄥ埄鐢?Convert() 鍑芥暟榪涜緙栫爜杞崲, 浠ョ敓鎴?C#瀛楃涓茬紪鐮佹柟寮? 鍚﹀垯浼氬嚭鐜板湪鏁版嵁搴撹兘姝e父鏄劇ず, 鍦?C#鏌ヨ鍑烘潵鍗存垚涓?System.Byte[]<br /> <br /> <br /> 鍙傝冩枃绔?<br /> <a target="_blank">MySQL鍒╃敤DATE_FORMAT()鍑芥暟瀹屾垚瀛楃涓插埌鏃墮棿綾誨瀷鐨勮漿鎹紝鏃墮棿鐨勬牸寮忓寲</a><br /><img src ="http://www.tkk7.com/kiant/aggbug/286217.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-07-10 12:08 <a href="http://www.tkk7.com/kiant/articles/286217.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C# 瀹氭椂鍣ㄤ嬌鐢ㄤ竴渚?/title><link>http://www.tkk7.com/kiant/articles/282489.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Mon, 15 Jun 2009 16:11:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/282489.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/282489.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/282489.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/282489.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/282489.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff">using</span><span style="color: #000000"> System;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">using</span><span style="color: #000000"> System.Collections.Generic;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">using</span><span style="color: #000000"> System.Linq;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">using</span><span style="color: #000000"> System.Text;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">namespace</span><span style="color: #000000"> ConsoleApplication1<br /> <img id="Codehighlighter1_117_1225_Open_Image" onclick="this.style.display='none'; Codehighlighter1_117_1225_Open_Text.style.display='none'; Codehighlighter1_117_1225_Closed_Image.style.display='inline'; Codehighlighter1_117_1225_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_117_1225_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_117_1225_Closed_Text.style.display='none'; Codehighlighter1_117_1225_Open_Image.style.display='inline'; Codehighlighter1_117_1225_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_117_1225_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_117_1225_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">class</span><span style="color: #000000"> Program<br /> <img id="Codehighlighter1_141_688_Open_Image" onclick="this.style.display='none'; Codehighlighter1_141_688_Open_Text.style.display='none'; Codehighlighter1_141_688_Closed_Image.style.display='inline'; Codehighlighter1_141_688_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_141_688_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_141_688_Closed_Text.style.display='none'; Codehighlighter1_141_688_Open_Image.style.display='inline'; Codehighlighter1_141_688_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="Codehighlighter1_141_688_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_141_688_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> Main(</span><span style="color: #0000ff">string</span><span style="color: #000000">[] args)<br /> <img id="Codehighlighter1_191_682_Open_Image" onclick="this.style.display='none'; Codehighlighter1_191_682_Open_Text.style.display='none'; Codehighlighter1_191_682_Closed_Image.style.display='inline'; Codehighlighter1_191_682_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_191_682_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_191_682_Closed_Text.style.display='none'; Codehighlighter1_191_682_Open_Image.style.display='inline'; Codehighlighter1_191_682_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_191_682_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_191_682_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            AddRoomTimer timer </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> AddRoomTimer();<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #0000ff">while</span><span style="color: #000000"> (</span><span style="color: #0000ff">true</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_283_510_Open_Image" onclick="this.style.display='none'; Codehighlighter1_283_510_Open_Text.style.display='none'; Codehighlighter1_283_510_Closed_Image.style.display='inline'; Codehighlighter1_283_510_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_283_510_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_283_510_Closed_Text.style.display='none'; Codehighlighter1_283_510_Open_Image.style.display='inline'; Codehighlighter1_283_510_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span><span id="Codehighlighter1_283_510_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_283_510_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #0000ff">if</span><span style="color: #000000"> (AddRoomTimer.COUNT </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_345_496_Open_Image" onclick="this.style.display='none'; Codehighlighter1_345_496_Open_Text.style.display='none'; Codehighlighter1_345_496_Closed_Image.style.display='inline'; Codehighlighter1_345_496_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_345_496_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_345_496_Closed_Text.style.display='none'; Codehighlighter1_345_496_Open_Image.style.display='inline'; Codehighlighter1_345_496_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span><span id="Codehighlighter1_345_496_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_345_496_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                    Console.WriteLine(</span><span style="color: #0000ff">string</span><span style="color: #000000">.Format(</span><span style="color: #000000">"</span><span style="color: #000000">絎瑊0}嬈¤皟鐢?/span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">101</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000"> AddRoomTimer.COUNT));<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />                    AddRoomTimer.COUNT</span><span style="color: #000000">--</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /></span><span style="color: #000000">        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> AddRoomTimer<br /> <img id="Codehighlighter1_725_1223_Open_Image" onclick="this.style.display='none'; Codehighlighter1_725_1223_Open_Text.style.display='none'; Codehighlighter1_725_1223_Closed_Image.style.display='inline'; Codehighlighter1_725_1223_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_725_1223_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_725_1223_Closed_Text.style.display='none'; Codehighlighter1_725_1223_Open_Image.style.display='inline'; Codehighlighter1_725_1223_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="Codehighlighter1_725_1223_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_725_1223_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000">闈欐佽鏁板櫒鍙橀噺</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">        </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000"> COUNT </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        public static System.Threading.Timer timer;<br /> <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #008000">//</span><span style="color: #008000">闈欐佹瀯閫? 鏈澶氳繍琛屼竴嬈?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">        </span><span style="color: #0000ff">static</span><span style="color: #000000"> AddRoomTimer()<br /> <img id="Codehighlighter1_844_1013_Open_Image" onclick="this.style.display='none'; Codehighlighter1_844_1013_Open_Text.style.display='none'; Codehighlighter1_844_1013_Closed_Image.style.display='inline'; Codehighlighter1_844_1013_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_844_1013_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_844_1013_Closed_Text.style.display='none'; Codehighlighter1_844_1013_Open_Image.style.display='inline'; Codehighlighter1_844_1013_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_844_1013_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_844_1013_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">澶氱嚎紼嬪畾鏃跺櫒, 姣忛殧 10000姣璋冪敤涓嬈¤濮旀墭鐨勬柟娉?nbsp;TimerCallBack</span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            timer </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> System.Threading.Timer(TimerCallBack, </span><span style="color: #0000ff">null</span><span style="color: #000000">, </span><span style="color: #000000">0</span><span style="color: #000000">, </span><span style="color: #000000">10000</span><span style="color: #000000">);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> TimerCallBack(</span><span style="color: #0000ff">object</span><span style="color: #000000"> obj)<br /> <img id="Codehighlighter1_1078_1217_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1078_1217_Open_Text.style.display='none'; Codehighlighter1_1078_1217_Closed_Image.style.display='inline'; Codehighlighter1_1078_1217_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1078_1217_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1078_1217_Closed_Text.style.display='none'; Codehighlighter1_1078_1217_Open_Image.style.display='inline'; Codehighlighter1_1078_1217_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_1078_1217_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_1078_1217_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">鎵撳嵃涓嬈℃椂闂? 嫻嬭瘯鐢?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            Console.WriteLine(DateTime.Now.ToString());<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: #008000">//</span><span style="color: #008000">璁℃暟鍣ㄥ彉閲忛噸緗?/span><span style="color: #008000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">            COUNT </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">100</span><span style="color: #000000">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div> <img src ="http://www.tkk7.com/kiant/aggbug/282489.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-06-16 00:11 <a href="http://www.tkk7.com/kiant/articles/282489.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Winform 紿椾綋鐩稿叧http://www.tkk7.com/kiant/articles/280775.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Mon, 08 Jun 2009 16:05:00 GMThttp://www.tkk7.com/kiant/articles/280775.htmlhttp://www.tkk7.com/kiant/comments/280775.htmlhttp://www.tkk7.com/kiant/articles/280775.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/280775.htmlhttp://www.tkk7.com/kiant/services/trackbacks/280775.htmlWinform搴旂敤紼嬪簭寮鍙戣鑼冦愯漿銆?rar
 

 
Form.ShowDialog(this);   涓嶈搗浣滅敤
媯鏌?this.ShowInTaskbar = false; 鏄惁瀛樺湪浜?Designer.cs 浠g爜涓?鏈夋椂鍊欏彲鑳芥槸鏍峰嚭閿欑殑
鎴栬呰鏄?鍦?nbsp;Designer.cs 浠g爜涓寚瀹氫簡涓嬈★紝鍒殑鍦版柟鍙堟寚瀹氫簡涓嬈″氨浼氬嚭闂
            form.ShowInTaskbar = false;                   
            form.StartPosition = FormStartPosition.CenterParent;

鍙?

褰撶獥浣撴樉紺轟負妯″紡瀵硅瘽妗嗘椂錛屽崟鍑?#8220;鍏抽棴”鎸夐挳錛堢獥浣撳彸涓婅甯?nbsp;X 鐨勬寜閽級浼氶殣钘忕獥浣撳茍灝?nbsp;DialogResult 灞炴ц緗負 DialogResult.Cancel銆備笌鏃犳ā寮忕獥浣撲笉鍚岋紝褰撶敤鎴峰崟鍑誨璇濇鐨勫叧闂獥浣撴寜閽垨璁劇疆 DialogResult 灞炴х殑鍊兼椂錛?NET Framework 涓嶈皟鐢?nbsp;Close 鏂規硶銆傜獥浣撹漿鑰屽彲浠ラ殣钘忓茍鍙噸鏂版樉紺猴紝鑰屼笉鐢ㄥ垱寤鴻瀵硅瘽妗嗙殑鏂板疄渚嬨傚洜涓烘湭鍏抽棴鏄劇ず涓哄璇濇鐨勭獥浣擄紝鎵浠ュ湪鎮ㄧ殑搴旂敤紼嬪簭涓嶅啀闇瑕佽紿椾綋鏃訛紝蹇呴』璋冪敤璇ョ獥浣撶殑 Dispose 鏂規硶銆?/span>



鍔犺澆灝忓浘鏍?/strong>

鎶婂搴旂殑鍥炬爣鏂囦歡鎷瘋礉鍒?瀵煎叆鍒拌祫婧愭枃浠朵笅:

Resources.resx:
<data name="hrp" type="System.Resources.ResXFileRef, System.Windows.Forms">
    <value>..\Resources\hrp.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
  </data>

鍦ㄧ▼搴忔枃浠?.cs涓?
form.Icon = (System.Drawing.Icon)global::XXXX.Properties.Resources.hrp;


璇︾粏鍙弬鑰?PictureBox 緇勪歡瑁呰澆鏂囦歡鏂瑰紡.


]]>
鍦?WinForm涓嬌鐢?WebClient涓婁紶鏂囦歡http://www.tkk7.com/kiant/articles/277929.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Tue, 26 May 2009 00:57:00 GMThttp://www.tkk7.com/kiant/articles/277929.htmlhttp://www.tkk7.com/kiant/comments/277929.htmlhttp://www.tkk7.com/kiant/articles/277929.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/277929.htmlhttp://www.tkk7.com/kiant/services/trackbacks/277929.html 浣跨敤鎸囧畾鐨勬柟娉曞皢鎸囧畾鐨勬湰鍦版枃浠朵笂杞藉埌鎸囧畾鐨勮祫婧?/a>

鍦╓inForm涓氳繃HTTP鍗忚鍚戞湇鍔″櫒绔笂浼犳枃浠?/a>


1.鏈嶅姟鍣ㄧ澶勭悊紼嬪簭
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="Upload" %>
鍓嶅彴浠g爜  Upload.aspx


using System;
using System.Web;

public partial class Upload : System.Web.UI.Page
{
    
//鏈嶅姟鍣ㄩ粯璁や繚瀛樿礬寰?/span>
    private readonly string serverPath = @"C:\upload\";

    
private void Page_Load(object sender, System.EventArgs e)
    
{   // 鑾峰彇 http鎻愪氦涓婁紶鐨勬枃浠? 騫舵敼鍚嶄繚瀛?/span>
        foreach (string key in Request.Files.AllKeys)
        
{
            HttpPostedFile file 
= Request.Files[key];
            
string newFilename = DateTime.Now.ToString("yyMMddhhmmssffff")
                
+ file.FileName.Substring(file.FileName.LastIndexOf('.'));

            
try
            
{   //鏂囦歡淇濆瓨騫惰繑鍥炵浉瀵硅礬寰勫湴鍧
                file.SaveAs(this.serverPath + newFilename);
                Response.Write(
"upload/" + newFilename);
            }

            
catch (Exception)
            
{                
            }

        }

    }

}
鍚庡彴浠g爜 Upload.aspx.cs
 



2.瀹㈡埛绔▼搴?/strong>
       /// <summary>
        
/// 鍗曚釜鏂囦歡涓婁紶鑷蟲湇鍔″櫒
        
/// </summary>
        
/// <param name="uriAddress">鎺ユ敹鏂囦歡璧勬簮鐨刄RI, 渚嬪: http://xxxx/Upload.aspx</param>
        
/// <param name="filePath">瑕佸彂閫佺殑璧勬簮鏂囦歡, 渚嬪: @"D:\workspace\WebService 鐩稿叧.doc</param>
        
/// <returns>榪斿洖鏂囦歡淇濆瓨鐨勭浉瀵硅礬寰? 渚嬪: "upload/xxxxx.jpg" 鎴栬呭嚭閿欒繑鍥?nbsp;""</returns>

        private string UploadFile(string uriAddress, string filePath)
        
{
            
//鍒╃敤 WebClient
            System.Net.WebClient webClient = new System.Net.WebClient();
            webClient.Credentials 
= System.Net.CredentialCache.DefaultCredentials;
            
try
            
{
                
byte[] responseArray = webClient.UploadFile(uriAddress, "POST", filePath);
                
string savePath = System.Text.Encoding.ASCII.GetString(responseArray);
                
return savePath;
            }

            
catch (Exception)
            
{
                
return "";
            }

        }



ps.鍒ゆ柇榪滅▼鏂囦歡鏄惁瀛樺湪
        public bool UriExists(string url)
        
{
            
try
            
{
                
new System.Net.WebClient().OpenRead(url);
                
return true;
            }

            
catch (System.Net.WebException)
            
{
                
return false;
            }

        }
 



]]>
Connector/Net 榪炴帴 MySQL榪滅▼鏈嶅姟鍣ㄥ嚭鐜?"Unable to connect to any of the specified MySQL hosts" 瑙e喅鏂規硶http://www.tkk7.com/kiant/articles/270714.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Thu, 14 May 2009 13:32:00 GMThttp://www.tkk7.com/kiant/articles/270714.htmlhttp://www.tkk7.com/kiant/comments/270714.htmlhttp://www.tkk7.com/kiant/articles/270714.html#Feedback2http://www.tkk7.com/kiant/comments/commentRss/270714.htmlhttp://www.tkk7.com/kiant/services/trackbacks/270714.html
浠婂ぉ鍋氶」鐩椂鍊欏氨閬囧埌榪欓棶棰?br /> 涓枃鎻愮ず“鎵句笉鍒扮浉搴旂殑涓繪満銆?#8221;

榪欐椂鍊欒媯鏌ユ暟鎹簱鏈嶅姟鍣ㄤ笂 MySql.Data.dll 鏂囦歡鐗堟湰鍜岄」鐩?bin 鐩綍涓嬬殑鐗堟湰鏄惁涓鑷淬?/p>

濡傛灉榪滅▼涓繪満鐗堟湰鏄?6.0.3
鑰岄」鐩紩鐢ㄧ殑鏄?5.0.3
鍒欎細鍑虹幇浠ヤ笂鐨勯敊璇彁紺?/p>

浣嗘槸濡傛灉鏈満涓繪満涓婄増鏈槸 6.0.3
鍗充嬌欏圭洰寮曠敤鐨勬槸 5.0.3
涔熻兘姝e父榪炴帴鏁版嵁搴擄紝涓嶆竻妤氭槸浠涔堝師鍥?/p>

]]>
鍏充簬 WinForm 閲?DataGridView , TreeView 鐨勪竴鐐硅褰?/title><link>http://www.tkk7.com/kiant/articles/270124.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Mon, 11 May 2009 14:38:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/270124.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/270124.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/270124.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/270124.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/270124.html</trackback:ping><description><![CDATA[     鎽樿: 涓銆佺紪紼嬫柟寮忎慨鏀硅緇戝畾鐨勬暟鎹璞?nbsp;        //鍒╃敤 DataBindingComplete 鍦ㄦ暟鎹粦瀹氭搷浣滃畬鎴愪箣鍚庡彂鐢?        private void dataGridView1...  <a href='http://www.tkk7.com/kiant/articles/270124.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/kiant/aggbug/270124.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-05-11 22:38 <a href="http://www.tkk7.com/kiant/articles/270124.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Linq 浣跨敤灝忓績寰?/title><link>http://www.tkk7.com/kiant/articles/247876.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Tue, 23 Dec 2008 02:28:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/247876.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/247876.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/247876.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/247876.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/247876.html</trackback:ping><description><![CDATA[Linq鏌ヨ鎿嶄綔鐨勪笁姝ラ:<br /> 1.鍑嗗鏁版嵁婧?br /> 2.鍒涘緩鏌ヨ<br /> 3.鎵ц鏌ヨ<br /> <br /> 涓鑸儏鍐典笅錛屾煡璇㈠彉閲忔湰韜笉浼氫繚瀛樻煡璇㈢粨鏋滐紝鑰屾槸瀛樺偍鏌ヨ鍛戒護銆傛墽琛孡inq鏌ヨ瀛樺湪涓ょ鏂瑰紡錛?br /> <strong>寤惰繜鎵ц錛?br /> </strong>    鏄寚鏌ヨ琛ㄨ揪寮忎笉鏄湪鍏惰鍒涘緩鏃舵墽琛岋紝鑰屾槸褰撻渶瑕佽闂紙濡備嬌鐢?foreach 璇彞錛夎鏌ヨ鐨勭粨鏋滄墠鎵ц鏌ヨ琛ㄨ揪寮忋?br /> <strong>绔嬪嵆鎵ц錛?br /> </strong>    鏄寚鏌ヨ琛ㄨ揪寮忓湪鍏跺垱寤烘椂灝辯珛鍗蟲墽琛屻傚鍖呭惈浜哠um()銆丆ount()絳夋煡璇㈡搷浣滅殑鏌ヨ琛ㄨ揪寮忋?br /> <br /> <br /> <br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Code_Closed_Image_103005" onclick="this.style.display='none'; Code_Closed_Text_103005.style.display='none'; Code_Open_Image_103005.style.display='inline'; Code_Open_Text_103005.style.display='inline';" height="16" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" width="11" align="top" alt="" /><img id="Code_Open_Image_103005" style="display: none" onclick="this.style.display='none'; Code_Open_Text_103005.style.display='none'; Code_Closed_Image_103005.style.display='inline'; Code_Closed_Text_103005.style.display='inline';" height="16" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" width="11" align="top" alt="" /><span id="Code_Closed_Text_103005" style="border-right: #808080 1px solid; border-top: #808080 1px solid; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">灝忔憳瑕?/span><span id="Code_Open_Text_103005" style="display: none"><br /> <!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">LINQ鐨勭‘緇欎漢鑰崇洰涓鏂扮殑鎰熻錛屽洜涓哄叾鏄疌#</span><span style="color: #000000">3</span><span style="color: #000000">.0鎵╁睍鐨勬柊璇硶錛岀洿鎺ュ皢鏌ヨ璇█涓庣紪紼嬭璦闆嗘垚鍦ㄤ竴璧蜂簡錛岀敤璧鋒潵紜疄鏂逛究銆?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />榪欏茍涓嶅獎鍝嶇郴緇熺殑鍒嗗眰璁捐錛屽垎灞傝璁′緷鐒舵槸杞歡璁捐鐨勫ソ鏂規硶錛屽彧鏄綘鍙堟湁浜嗘洿鍘夊鐨勬鍣↙INQ鑰屽凡銆?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />浣嗕綘涓嶈兘鍥犱負鏈変簡榪欎釜瀹濊礉灝卞澶勪嬌鐢ㄥ畠錛屽洜涓哄茍闈炴墍鏈夌殑鍦版柟閮介傚悎LINQ鐨勩?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />LINQ姣曠珶鏄氳繃紱繪暎鐨勫唴瀛樺璞℃潵璁塊棶鏁版嵁鐨勶紝鍦ㄦ搗閲忔暟鎹鐞嗙殑搴旂敤涓紝寤虹珛涓涓釜鐨勫唴瀛樺璞℃潵澶勭悊鏁版嵁鐨勫紑閿寰寰鏄ぉ鏂囨暟瀛椼傛墍浠ワ紝O</span><span style="color: #000000">/</span><span style="color: #000000">R Mapping涓鑸兘鏄敤鍦ㄥ鐞嗗皯閲忔暟鎹殑鎯呭喌錛屽璞″寲鐨勫鐞嗗彲浠ュ甫鏉ユ柟渚褲?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />榪樻湁灝辨槸鏌ヨ璇█涓庣紪紼嬭璦闆嗘垚涔熷甫鏉ュ彟涓涓棶棰橈紝灝辨槸鏌ヨ浠g爜鐨?#8220;紜寲”銆傛墍璋撲唬鐮佺‖鍖栵紝鎸囩殑鏄唬鐮佽浜轟負鎴栬嚜鍔ㄥ啓姝伙紝騫跺湪榪愯鏃朵笉鍙洿鏀廣備篃灝辨槸璇達紝“紜寲”鐨勪唬鐮侀亣鍒版暟鎹粨鏋勫彉鍖栨垨鏌ヨ闇姹傚彉鍖栨椂錛岄渶瑕侀噸鏂頒慨鏀規簮浠g爜錛屽啀鐢熸垚榪愯鐗堟湰錛岃繖鏄?#8220;紜寲”浠g爜鐨勯氱梾銆?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />鑰屼互鍓嶇殑SQL璇彞鏈韓鏄紪紼嬭璦鐨勫瓧絎︿覆鏁版嵁鑰屽凡錛屽洜姝ゅ彲浠ユ妸SQL閫昏緫鐙珛鍑烘潵褰㈡垚澶栭儴SQL鏂囦歡鎴栨暟鎹簱鍐呯殑瀛樺偍榪囩▼錛屽綋鏁版嵁搴撻渶姹傚彉鍖栨椂錛屽彲浠ュ湪涓嶅仠姝㈢郴緇熻繍琛岀殑鎯呭喌涓嬩慨鏀硅繖浜汼QL閫昏緫瀹屾垚闇姹傚彉鏇淬傜敋鑷蟲湁浜涘仛寰楀ソ鐨勬暟鎹簱緋葷粺鏄互“鏁版嵁瀛楀吀”椹卞姩鐨勶紝鏁版嵁緇撴瀯鐨勪換浣曞彉鍖栭兘涓嶅獎鍝嶇紪紼嬭璦鐨勬簮浠g爜銆?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />褰撶劧錛屼綘涔熷彲浠ラ氳繃鍔ㄦ佺敓鎴怢INQ騫跺嵆鏃剁紪璇戠殑鍔炴硶鏉ョ嫭绔嬫煡璇㈤昏緫絳夛紝鏈夊叴瓚e彲浠ヨ瘯璇曘?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />鎬諱箣錛屼換浣曚笢瑗塊兘鏈夊埄鏈夊紛錛岃鐪嬪叿浣撴儏鍐佃屽畾銆傝〃鐜板眰銆佷笟鍔″眰鍜屾暟鎹眰涔熷茍闈炰竴瀹氳浠庣墿鐞嗕笂鍒掑垎錛屽彧瑕侀昏緫涓婂瓨鍦ㄥ垎灞傚嵆鍙紝鍙綆鍖栬璁″府鍔╀漢浠悊瑙e嵆鍙?br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></span></div> <br /> <img src ="http://www.tkk7.com/kiant/aggbug/247876.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2008-12-23 10:28 <a href="http://www.tkk7.com/kiant/articles/247876.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://saob19.com" target="_blank">亚洲精品无码乱码成人</a>| <a href="http://dehaichem.com" target="_blank">国产一区二区三区亚洲综合</a>| <a href="http://bjfljg.com" target="_blank">亚洲国产精品自产在线播放 </a>| <a href="http://0359puju.com" target="_blank">国产男女猛烈无遮挡免费视频</a>| <a href="http://qihongxia.com" target="_blank">视频免费在线观看</a>| <a href="http://77663499.com" target="_blank">在线观看亚洲精品专区</a>| <a href="http://hbjpxnyqckj.com" target="_blank">亚洲激情黄色小说</a>| <a href="http://dxj588.com" target="_blank">亚洲AV综合色区无码一区爱AV</a>| <a href="http://qinglou31.com" target="_blank">亚洲成a人片在线观看久</a>| <a href="http://6711wan.com" target="_blank">大地资源二在线观看免费高清</a>| <a href="http://doubiseo.com" target="_blank">午夜网站在线观看免费完整高清观看</a>| <a href="http://c9133.com" target="_blank">一级做a爰片久久毛片免费陪 </a>| <a href="http://anyliz.com" target="_blank">中文字幕亚洲免费无线观看日本</a>| <a href="http://35419470.com" target="_blank">一级成人毛片免费观看</a>| <a href="http://128313.com" target="_blank">男男gvh肉在线观看免费</a>| <a href="http://hbtelong.com" target="_blank">日韩亚洲人成在线</a>| <a href="http://www-715111.com" target="_blank">亚洲人成日本在线观看</a>| <a href="http://ydysmedia.com" target="_blank">亚洲一区二区电影</a>| <a href="http://yy9977.com" target="_blank">亚洲成av人片天堂网</a>| <a href="http://semaopu.com" target="_blank">久久亚洲国产精品123区</a>| <a href="http://6123fa.com" target="_blank">亚洲人成无码网WWW</a>| <a href="http://lanchenews.com" target="_blank">免费在线观看日韩</a>| <a href="http://xwy2.com" target="_blank">国产精品国产自线拍免费软件</a>| <a href="http://clzqb2b.com" target="_blank">一二三四在线观看免费高清中文在线观看 </a>| <a href="http://cqtchtwq.com" target="_blank">狠狠色香婷婷久久亚洲精品</a>| <a href="http://bjjs365.com" target="_blank">亚洲图片一区二区</a>| <a href="http://zuahowan.com" target="_blank">亚洲av日韩综合一区在线观看</a>| <a href="http://kppp4.com" target="_blank">久久亚洲高清综合</a>| <a href="http://yuyang0752.com" target="_blank">国产亚洲成人在线播放va</a>| <a href="http://yuase.com" target="_blank">一本色道久久88综合亚洲精品高清</a>| <a href="http://qq367.com" target="_blank">四虎www免费人成</a>| <a href="http://sxjttxkywl.com" target="_blank">成年美女黄网站18禁免费</a>| <a href="http://roocos.com" target="_blank">国国内清清草原免费视频99</a>| <a href="http://963315.com" target="_blank">日本免费xxxx色视频</a>| <a href="http://xxnxgay.com" target="_blank">91精品免费久久久久久久久</a>| <a href="http://138site.com" target="_blank">99久久精品免费视频</a>| <a href="http://dunyny.com" target="_blank">99精品国产成人a∨免费看</a>| <a href="http://yuntuzy.com" target="_blank">久久久久久久99精品免费</a>| <a href="http://xsdjiagu.com" target="_blank">久久久久免费看黄a级试看</a>| <a href="http://33338x.com" target="_blank">免费国产黄网站在线观看可以下载</a>| <a href="http://av56cc.com" target="_blank">污视频在线免费观看</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>