<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-258603842907336800</id><updated>2026-09-19T05:15:26.668-07:00</updated><category term="VBNET"/><category term="MSSQL"/><category term="ASPNET"/><category term="C#NET"/><category term="WIN-OS"/><category term="我的產品"/><category term="技術查詢連結區"/><category term="孔雀魚"/><category term="vb6"/><category term="JQuery"/><category term="理財區"/><category term="CRYSTAL"/><category term="Android"/><category term="POS"/><category term="WEB"/><category term="Xamarin"/><category term="SQLite"/><category term="access"/><category term="C# 學習"/><category term="苦茶樹"/><category term="社會生活雜記"/><category term="ASP"/><category term="B4-A-I-J"/><category term="Bootstrap"/><category term="假日農夫"/><category term="MVC"/><category term="Python"/><category term="software"/><category term="xcode"/><category term="平台語言"/><category term="java"/><category term="ASP.NET Core"/><category term="HTML5"/><category term="JSONNET"/><category term="ERP"/><category term="客戶區"/><category term="JavaScript"/><category term="PHP"/><category term="WordPress"/><category term="天堂M"/><category term="DELPHI相關"/><category term="DOCUMENT"/><category term="Flutter"/><category term="Linq"/><category term="RDLC"/><category term="VFP"/><category term="Microsoft Enterprise Library"/><category term="Unity"/><category term="socket"/><category term="其他類"/><category term="DB2"/><category term="MongoDB"/><category term="Ubuntu"/><category term="教學區"/><category term="防毒軟體"/><category term="Apache Cordova"/><category term="components"/><category term="mysql"/><category term=".NET"/><category term="ActiveReports"/><category term="C++ Builder"/><category term="Oracle"/><category term="React Native"/><category term="Swift"/><category term="WCF"/><category term="WPF"/><category term="Window Azurz"/><category term="我的雲端日記"/><category term="Angular"/><category term="EF"/><category term="Fedora"/><category term="Flash"/><category term="Kotlin"/><category term="MonoDevelop"/><category term="NET MAUI"/><category term="NET 外掛元件區"/><category term="NetBeans"/><category term="OpenCV"/><category term="PureBasic"/><category term="ReactOS"/><category term="SignalR"/><category term="Windows CE"/><category term="excel"/><category term="node.js"/><category term="open_xml_sdk"/><category term="silverlight"/><category term="攝影"/><category term="水族攝影"/><category term="簡訊中心"/><category term="設備類"/><category term="轉換工具區"/><category term="電腦廠商"/><category term=".NET Blazor"/><category term="3D"/><category term="Ajax"/><category term="AngularJS"/><category term="AppInventor"/><category term="Apple"/><category term="CorelDRAW"/><category term="Cygwin"/><category term="Db Data Store"/><category term="EPPlus"/><category term="ExcelReport"/><category term="Google map"/><category term="MAC"/><category term="MCP"/><category term="ML.NET"/><category term="Mootools"/><category term="NET Hibernate"/><category term="PhoneGap"/><category term="PostgreSQL"/><category term="R"/><category term="RWD"/><category term="React"/><category term="ReportAll"/><category term="TFS"/><category term="VisualFortran"/><category term="XAMPP"/><category term="XML"/><category term="entity framework"/><category term="firebird"/><category term="fireworks"/><category term="git"/><category term="mob"/><category term="padfone"/><category term="vs ionic"/><category term="wkhtmtopdf"/><category term="異型專賣區"/><title type='text'>邏輯生活</title><subtitle type='html'>邏輯等於0與1和ON與OFF,是程式創作的思維.&#xa;如何利用創作來支援生活面呢?&#xa;唯有..&#xa;一直努力在程式領域上突破及更新自我;更是要有失敗的心情準備!!&#xa;聯絡方式 LINE ID : wushig  (池龍工作室) 0931507058 巫先生</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3169</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-4233826975374456893</id><published>2026-03-25T04:17:00.000-07:00</published><updated>2026-03-25T04:17:35.564-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBNET"/><title type='text'>營利事業統一編號檢查碼邏輯修正</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://iamgirlengineer.blogspot.com/2024/12/vbnet.html&quot; target=&quot;_blank&quot;&gt;營利事業統一編號檢查碼邏輯修正&lt;/a&gt;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;舊版的統一編號邏輯檢查已經不適用囉!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;趕緊修正一下&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Public Shared Function NEW_ValidateTaxID(ByVal vstrTaxID As String) As Boolean&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;空值或非8碼或非純數字&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If String.IsNullOrEmpty(vstrTaxID) OrElse vstrTaxID.Trim().Length &amp;lt;&amp;gt; 8 OrElse Not Integer.TryParse(vstrTaxID, Nothing) Then&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return False&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim TaxID_7 As Boolean = (vstrTaxID.Substring(6, 1) = &quot;7&quot;)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim logics As Integer() = New Integer() {1, 2, 1, 2, 1, 2, 4, 1} &#39;邏輯乘數&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim Z As Integer = 0 &#39;垂直乘積之和 全部加總&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim Z1 As Integer = 0&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim Z2 As Integer = 0&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;邏輯乘數的數量與統編長度8碼一致&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For i As Integer = 0 To logics.Length - 1&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim num As Integer = Convert.ToInt32(vstrTaxID.Substring(i, 1)) &#39;統編單一數字拆解&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim j As Integer = num * logics(i) &#39;乘積直寫並上下相加&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim SumXX As Integer = (j \ 10) + (j Mod 10) &#39;垂直乘積之和(上下數字相加)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TaxID_7 AndAlso i = 6 Then &#39;統編第7位數字是&quot;7&quot; &amp;amp;&amp;amp; 走訪到統編第7位數字時&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&quot;乘積之和&quot;為&quot;10&quot;，但政府文件要我們取&quot;0或1&quot;兩種情況(不是10)來相加。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z1 += 0&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z2 += 1&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;Z 不理它&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z += SumXX&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z1 += SumXX&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Z2 += SumXX&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next &#39;end for&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;int old_checkNum = 10; &#39;2023年以前的舊版&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim checkNum As Integer = 5&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TaxID_7 Then&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If (Z1 Mod checkNum = 0) OrElse (Z2 Mod checkNum = 0) Then&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return True&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ElseIf Z Mod checkNum = 0 Then&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return True&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return False&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/4233826975374456893/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2026/03/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4233826975374456893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4233826975374456893'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2026/03/blog-post.html' title='營利事業統一編號檢查碼邏輯修正'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-2488935519835754963</id><published>2026-03-18T20:08:00.000-07:00</published><updated>2026-03-18T20:08:21.474-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><title type='text'>MS-SQL 分頁</title><content type='html'>&lt;p&gt;引用來源:&amp;nbsp;&lt;a href=&quot;https://chretbow.github.io/2018/12/04/MSSQL-%E5%88%86%E9%A0%81/&quot; target=&quot;_blank&quot;&gt;[MSSQL]分頁&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;方法一 : 使用ROW_NUMBER()搭配OVER(ORDER BY Field)(SQL Server 2008 開始)&lt;/p&gt;&lt;p&gt;ROW_NUMBER()&lt;/p&gt;&lt;p&gt;ROW_NUMBER ( )&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; OVER ( [ PARTITION BY value_expression , ... [ n ] ] order_by_clause )&lt;/p&gt;&lt;p&gt;先用ROW_NUMBER()替每筆資料設定編號，再根據條件取得分頁內容(ROW_NUMBER從1開始)&lt;/p&gt;&lt;p&gt;DECLARE @PageIndex INT = 1, @PageSize INT = 25&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT * FROM&lt;/p&gt;&lt;p&gt;(&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; SELECT&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *, ROW_NUMBER() OVER (ORDER BY FieldA DESC) as RowId&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; FROM&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TableA&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; WHERE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Conditions&lt;/p&gt;&lt;p&gt;) AS vw&lt;/p&gt;&lt;p&gt;WHERE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; RowId BETWEEN (@PageIndex - 1) * @PageSize + 1 AND @PageIndex * @PageSize&lt;/p&gt;&lt;p&gt;方法二 : 使用OFFSET搭配FETCH(SQL Server 2012 開始)&lt;/p&gt;&lt;p&gt;OFFSET FETCH&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;OFFSET - FETCH 是 ORDER BY 子句的延伸功能。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;FETCH&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ [ NEXT | PRIOR | FIRST | LAST&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | ABSOLUTE { n | @nvar }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | RELATIVE { n | @nvar }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;]&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/p&gt;&lt;p&gt;{ { [ GLOBAL ] cursor_name } | @cursor_variable_name }&lt;/p&gt;&lt;p&gt;[ INTO @variable_name [ ,...n ] ]&lt;/p&gt;&lt;p&gt;可以指定跳過的行數，指定要取回的資料列筆數(要從跳過 0 ROW開始)&lt;/p&gt;&lt;p&gt;DECLARE @PageIndex INT = 1, @PageSize INT = 25&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; *&lt;/p&gt;&lt;p&gt;FROM&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; TableA&lt;/p&gt;&lt;p&gt;ORDER BY&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; FieldA DESC&lt;/p&gt;&lt;p&gt;OFFSET (@PageIndex - 1)*@PageSize ROWS&lt;/p&gt;&lt;p&gt;FETCH NEXT @PageSize ROWS ONLY;&lt;/p&gt;&lt;p&gt;FETCH 寫法效能比 ROW_NUMBER() 快很多&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/2488935519835754963/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2026/03/ms-sql.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/2488935519835754963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/2488935519835754963'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2026/03/ms-sql.html' title='MS-SQL 分頁'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-4461351430564634863</id><published>2026-01-22T00:51:00.000-08:00</published><updated>2026-01-22T00:51:05.326-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><title type='text'>MS-SQL 找尋 約束</title><content type='html'>&lt;p&gt;&amp;nbsp;/*顯示資料內所有約束*/&lt;/p&gt;&lt;p&gt;SELECT * FROM sys.default_constraints WHERE parent_object_id = OBJECT_ID(&#39;A_TMP&#39;)&lt;/p&gt;&lt;p&gt;/*找詢約束*/&lt;/p&gt;&lt;p&gt;if (SELECT count(name) FROM sys.default_constraints WHERE parent_object_id = OBJECT_ID(&#39;A_TMP&#39;) and name=&#39;A_prod_name&#39;)&amp;gt;0&lt;/p&gt;&lt;p&gt;begin&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;print &#39;1&#39;&lt;/p&gt;&lt;p&gt;end&amp;nbsp;&lt;/p&gt;&lt;p&gt;else&lt;/p&gt;&lt;p&gt;begin&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;print &#39;0&#39;&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/4461351430564634863/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2026/01/ms-sql.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4461351430564634863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4461351430564634863'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2026/01/ms-sql.html' title='MS-SQL 找尋 約束'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-5731313280047930279</id><published>2025-12-30T22:05:00.000-08:00</published><updated>2025-12-30T22:05:44.661-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>Python 很多教學</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://quantpass.org/category/blogs/python/&quot; target=&quot;_blank&quot;&gt;Python專欄 入門必讀 爬蟲教學 選股模型 投資配置 金融套件 語法教學&lt;/a&gt;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.finlab.tw/%E7%94%A8%E7%88%AC%E8%9F%B2%E7%88%AC%E5%85%A8%E4%B8%96%E7%95%8C%E8%82%A1%E5%83%B9/&quot; target=&quot;_blank&quot;&gt;爬蟲 Python 新手教學(Part 1)：簡單程式碼，爬全球的股票!&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://steam.oxxostudio.tw/category/python/spider/yahoo-stock.html&quot; target=&quot;_blank&quot;&gt;爬取 Yahoo 股市即時股價&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;***超棒***&amp;nbsp;&lt;a href=&quot;https://hackmd.io/@s02260441/HJcMcnds8&quot; target=&quot;_blank&quot;&gt;台股資料爬蟲─Python筆記(1)&lt;/a&gt;&amp;nbsp;***&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/mlouielu/twstock&quot; target=&quot;_blank&quot;&gt;twstock 模組-台灣股市股票價格擷取&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://pypi.org/project/twstock/&quot; target=&quot;_blank&quot;&gt;twstock 指令說明&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/5731313280047930279/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/12/python.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/5731313280047930279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/5731313280047930279'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/12/python.html' title='Python 很多教學'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-9179811163665377173</id><published>2025-12-22T23:45:28.589-08:00</published><updated>2025-12-22T23:46:10.926-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WIN-OS"/><title type='text'>解決遠端桌面連線出現『基於安全性考量，使用者帳戶已被封鎖』的錯誤。</title><content type='html'>&lt;p&gt;&amp;nbsp;解決遠端桌面連線出現『基於安全性考量，使用者帳戶已被封鎖』的錯誤。&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://kb.fast-line.tw/windows/832/&quot; target=&quot;_blank&quot;&gt;https://kb.fast-line.tw/windows/832/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/9179811163665377173/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/12/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/9179811163665377173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/9179811163665377173'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/12/blog-post.html' title='解決遠端桌面連線出現『基於安全性考量，使用者帳戶已被封鎖』的錯誤。'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-528226315979963079</id><published>2025-11-20T18:13:00.000-08:00</published><updated>2025-11-20T18:13:56.018-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WIN-OS"/><title type='text'>使用 Robocopy 進行「資料夾」鏡像同步</title><content type='html'>&lt;p&gt;&lt;a href=&quot;https://ithelp.ithome.com.tw/articles/10346329&quot; target=&quot;_blank&quot;&gt;參考來源+引用: 【程式開發筆記】讓電腦定時幫你備份重要資料，「鏡像同步、差異備份」樣樣通，Robocopy - 大漠國渡&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;使用 Robocopy 進行「資料夾」鏡像同步&lt;/p&gt;&lt;p&gt;輸入「Robocopy &amp;lt;你的來源資料夾&amp;gt; &amp;lt;你的目的地資料夾&amp;gt; /mir /xo /e」&lt;/p&gt;&lt;p&gt;範例 : Robocopy D:\TEST D:\TEST2 /mir /xo /e&lt;/p&gt;&lt;p&gt;接下來將檔案儲存程「Windows 批次檔案 (.bat)」，「檔名」跟「路徑」就自己決定吧&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;// 第一種，會覆寫「目的地資料夾」安全性設定。&lt;/p&gt;&lt;p&gt;Robocopy &amp;lt;來源資料夾(檔案)&amp;gt; &amp;lt;目的地資料夾(檔案)&amp;gt; /mir /xo /e&lt;/p&gt;&lt;p&gt;// 第二種，不覆寫「目的地資料夾」安全性設定。&lt;/p&gt;&lt;p&gt;Robocopy &amp;lt;來源資料夾(檔案)&amp;gt; &amp;lt;目的地資料夾(檔案)&amp;gt; /e /xo /purge&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;「指令參數」說明&lt;/p&gt;&lt;p&gt;/e&lt;/p&gt;&lt;p&gt;複製子資料夾 (包含空的資料夾)&lt;/p&gt;&lt;p&gt;/xo&lt;/p&gt;&lt;p&gt;比較「來源檔案」與「目的地檔案」，若「來源檔案」較新則複製，否則排除不複製 (差異備份，所需參數)&lt;/p&gt;&lt;p&gt;/purge&lt;/p&gt;&lt;p&gt;刪除不存在於「來源資料夾」中的檔案 (差異備份，所需參數)&lt;/p&gt;&lt;p&gt;/mir&amp;nbsp;&lt;/p&gt;&lt;p&gt;鏡像資料夾 (相當於同時使用 /e 和 /purge 參數)。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;「進階指令」說明&lt;/p&gt;&lt;p&gt;Robocopy &amp;lt;來源資料夾(檔案)&amp;gt; &amp;lt;目的地資料夾(檔案)&amp;gt; /e /xo /mir /mt: /dcopy:dat /xa:sh /xj /unicode /eta /R:5 /W:30 /tee /unilog+:D:\mirrorDir.txt /v&lt;/p&gt;&lt;p&gt;「指令參數」說明&lt;/p&gt;&lt;p&gt;/mt:&amp;lt;n&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;使用 n 個執行緒，執行工作。(如同 n 個人一起搬運檔案) 預設值是 8，最上值128。&lt;/p&gt;&lt;p&gt;需搭配使用 /log 參數，集中倒出，提升效能。&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;/log:&amp;lt;logfile&amp;gt;&lt;/p&gt;&lt;p&gt;使用系統編碼(Big5)寫入記錄檔。(若記錄檔已存在，覆寫現有的記錄檔)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/log+:&amp;lt;logfile&amp;gt;&lt;/p&gt;&lt;p&gt;使用系統編碼(Big5)寫入記錄檔。(若記錄檔已存在，接續寫入記錄檔)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/unilog:&amp;lt;logfile&amp;gt;&lt;/p&gt;&lt;p&gt;使用 UTF-8 編碼寫入記錄檔。(若記錄檔已存在，覆寫現有的記錄檔)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/unilog+:&amp;lt;logfile&amp;gt;&lt;/p&gt;&lt;p&gt;使用 UTF-8 編碼寫入記錄檔。(若記錄檔已存在，接續寫入記錄檔)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/dcopy:&amp;lt;copyflags&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;複製資料夾的內容。&lt;/p&gt;&lt;p&gt;D - 資料&lt;/p&gt;&lt;p&gt;A - 屬性&lt;/p&gt;&lt;p&gt;T - 時間戳記&lt;/p&gt;&lt;p&gt;E - 擴充屬性&lt;/p&gt;&lt;p&gt;X - 略過替代資料流&lt;/p&gt;&lt;p&gt;此選項的預設值為 DA (資料和屬性)。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/xa:[RASHCNETO]&lt;/p&gt;&lt;p&gt;符合以下屬性的檔案不處理。&lt;/p&gt;&lt;p&gt;R - 唯讀&lt;/p&gt;&lt;p&gt;A - 封存&lt;/p&gt;&lt;p&gt;S - 系統&lt;/p&gt;&lt;p&gt;H - 隱藏&lt;/p&gt;&lt;p&gt;C - 已壓縮&lt;/p&gt;&lt;p&gt;N - 未編製內容索引&lt;/p&gt;&lt;p&gt;E - 已加密&lt;/p&gt;&lt;p&gt;T - 暫存&lt;/p&gt;&lt;p&gt;O - 離線&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/xj&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;不複製 NTFS junction 檔案。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/unicode&amp;nbsp;&lt;/p&gt;&lt;p&gt;輸出內容使用 UTF-8 編碼。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/eta&lt;/p&gt;&lt;p&gt;顯示所複製檔案的預估抵達時間 (ETA)。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/r:&amp;lt;n&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;複製失敗，重新嘗試的次數，n 的預設值為 1,000,000 (一百萬次重試)。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/w:&amp;lt;n&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;複製失敗，重新嘗試的等候時間，以秒為單位，n 的預設值為 30 (等待時間為 30 秒)。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/tee&amp;nbsp;&lt;/p&gt;&lt;p&gt;將狀態輸出寫入主控台視窗及記錄檔。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/v&amp;nbsp;&lt;/p&gt;&lt;p&gt;產生詳細資訊輸出，並顯示所有略過的檔案。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. 「鏡像同步」最終指令&lt;/p&gt;&lt;p&gt;Robocopy &amp;lt;來源資料夾(檔案)&amp;gt; &amp;lt;目的地資料夾(檔案)&amp;gt; /e /xo /mir /mt: /dcopy:dat /xa:sh /xj /unicode /eta /R:5 /W:30 /tee /unilog+:D:\mirrorDir.txt /v /xf *.tmp *.ds_store *.temp ~desktop.ini ~hiberfil.sys ~pagefile.sys ~thumbs.db ~swapfile.sys ~NTUSER.DAT ~ntuser.dat.LOG1 ~ntuser.dat.LOG2 $recycle.bin config.msi ntuser.dat ntuser.ini /xd &quot;C:\Windows&quot; &quot;C:\ProgramData\Microsoft\Windows\Caches&quot; &quot;C:\Drivers&quot; &quot;C:\Temp&quot; &quot;C:\Documents and Settings&quot; &quot;*MSOCache*&quot; &quot;*RecycleBin*&quot; &quot;*recycler*&quot; &quot;*System Volume Information*&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;「指令參數」說明&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/xf &amp;lt;filename&amp;gt;[ ...]&lt;/p&gt;&lt;p&gt;符合指定名稱或路徑的檔案，支援使用萬用字元 (* 和 ?)。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;*.tmp&amp;nbsp;&lt;/p&gt;&lt;p&gt;*.ds_store&amp;nbsp;&lt;/p&gt;&lt;p&gt;*.temp&amp;nbsp;&lt;/p&gt;&lt;p&gt;~desktop.ini&amp;nbsp;&lt;/p&gt;&lt;p&gt;~hiberfil.sys&amp;nbsp;&lt;/p&gt;&lt;p&gt;~pagefile.sys&amp;nbsp;&lt;/p&gt;&lt;p&gt;~thumbs.db&amp;nbsp;&lt;/p&gt;&lt;p&gt;~swapfile.sys&amp;nbsp;&lt;/p&gt;&lt;p&gt;~NTUSER.DAT&amp;nbsp;&lt;/p&gt;&lt;p&gt;~ntuser.dat.LOG1&amp;nbsp;&lt;/p&gt;&lt;p&gt;~ntuser.dat.LOG2&amp;nbsp;&lt;/p&gt;&lt;p&gt;$recycle.bin&amp;nbsp;&lt;/p&gt;&lt;p&gt;config.msi&amp;nbsp;&lt;/p&gt;&lt;p&gt;ntuser.dat&amp;nbsp;&lt;/p&gt;&lt;p&gt;ntuser.ini&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/xd &amp;lt;directory&amp;gt;[ ...]&amp;nbsp;&lt;/p&gt;&lt;p&gt;排除符合指定名稱和路徑的目錄。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&quot;C:\Windows&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;C:\ProgramData\Microsoft\Windows\Caches&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;C:\Drivers&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;C:\Temp&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;C:\Documents and Settings&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;*MSOCache*&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;*RecycleBin*&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;*recycler*&quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&quot;*System Volume Information*&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/528226315979963079/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/11/robocopy.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/528226315979963079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/528226315979963079'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/11/robocopy.html' title='使用 Robocopy 進行「資料夾」鏡像同步'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-5564382783665688452</id><published>2025-11-03T01:47:00.000-08:00</published><updated>2025-11-03T01:47:41.626-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><title type='text'>SQL 取資料表所有欄位</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SELECT COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, NUMERIC_PRECISION, IS_NULLABLE&lt;/p&gt;&lt;p&gt;FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = &#39;table name&#39;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/5564382783665688452/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/11/sql.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/5564382783665688452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/5564382783665688452'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/11/sql.html' title='SQL 取資料表所有欄位'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-481873695232840888</id><published>2025-10-14T06:41:00.000-07:00</published><updated>2025-10-14T06:41:54.996-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C# 學習"/><title type='text'> 四月的筆記 一些C# 基礎教學</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://dotblogs.com.tw/April_Notes/1&quot; target=&quot;_blank&quot;&gt;四月的筆記  一些C# 基礎教學&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;看看學習也不錯,有用心記錄&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/481873695232840888/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/10/c.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/481873695232840888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/481873695232840888'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/10/c.html' title=' 四月的筆記 一些C# 基礎教學'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-8535081972310900630</id><published>2025-10-02T01:55:00.000-07:00</published><updated>2025-10-02T01:55:14.331-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>Python教學-開發環境安裝與設定教學－Pycharm</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://vocus.cc/article/677a3e83fd897800015ae106&quot; target=&quot;_blank&quot;&gt;[Python教學] 開發環境安裝與設定教學－Pycharm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/8535081972310900630/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/10/python-pycharm.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8535081972310900630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8535081972310900630'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/10/python-pycharm.html' title='Python教學-開發環境安裝與設定教學－Pycharm'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-1455466527793959622</id><published>2025-10-01T23:29:00.000-07:00</published><updated>2025-10-01T23:30:37.314-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ML.NET"/><title type='text'>ML.NET</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://learn.microsoft.com/zh-tw/dotnet/machine-learning/&quot; target=&quot;_blank&quot;&gt;ML.NET&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/zh-tw/dotnet/machine-learning/tutorials/image-classification&quot; target=&quot;_blank&quot;&gt;教學課程：將 ML.NET 分類模型定型以分類影像&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://dotnet.microsoft.com/zh-tw/learn/ml-dotnet/get-started-tutorial/intro&quot; target=&quot;_blank&quot;&gt;ML.NET 教學課程 - 10 分鐘入門&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/1455466527793959622/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/10/mlnet.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/1455466527793959622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/1455466527793959622'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/10/mlnet.html' title='ML.NET'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-848953141151777986</id><published>2025-09-23T01:34:00.000-07:00</published><updated>2025-09-23T01:34:54.139-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#NET"/><title type='text'>適用於 .NET 開發人員的 AI 應用程式</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://learn.microsoft.com/zh-tw/dotnet/ai/&quot; target=&quot;_blank&quot;&gt;適用於 .NET 開發人員的 AI 應用程式&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/848953141151777986/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/net-ai.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/848953141151777986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/848953141151777986'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/net-ai.html' title='適用於 .NET 開發人員的 AI 應用程式'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-8976114282279816193</id><published>2025-09-19T07:36:00.000-07:00</published><updated>2025-09-19T07:36:14.730-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>Python 教學| STEAM 教育學習網</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://steam.oxxostudio.tw/category/python/index.html&quot; target=&quot;_blank&quot;&gt;Python 教學&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/8976114282279816193/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/python-steam.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8976114282279816193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8976114282279816193'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/python-steam.html' title='Python 教學| STEAM 教育學習網'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-7025834841062448972</id><published>2025-09-19T07:34:00.000-07:00</published><updated>2025-09-19T07:34:32.865-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>Python 3.13.7 說明文件</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://docs.python.org/zh-tw/3.13/&quot; target=&quot;_blank&quot;&gt;Python 3.13.7 說明文件&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.python.org/&quot; target=&quot;_blank&quot;&gt;Python 官網&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/7025834841062448972/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/python-3137.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/7025834841062448972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/7025834841062448972'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/python-3137.html' title='Python 3.13.7 說明文件'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-110612780014616401</id><published>2025-09-18T08:18:00.000-07:00</published><updated>2025-09-18T08:18:44.034-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Javascript網頁程式管理系統 系列</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://ithelp.ithome.com.tw/users/20151322/ironman/7554&quot; target=&quot;_blank&quot;&gt;Javascript網頁程式管理系統 系列&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.alphavantage.co/&quot; target=&quot;_blank&quot;&gt;Stock Market Data API&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://newsapi.org/&quot; target=&quot;_blank&quot;&gt;NewsAPI&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/110612780014616401/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/javascript.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/110612780014616401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/110612780014616401'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/javascript.html' title='Javascript網頁程式管理系統 系列'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-7949526841662213681</id><published>2025-09-17T23:40:00.000-07:00</published><updated>2025-09-17T23:40:59.819-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBNET"/><title type='text'>VB.NET 檔案是否被鎖定</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://pp-nb-sw.blogspot.com/2017/12/vbnet.html&quot; target=&quot;_blank&quot;&gt;參考引用:VB.NET 檔案是否被鎖定&lt;/a&gt;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;Try&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Dim fs AsFileStream = NewFileStream(excelFileName, FileMode.OpenOrCreate, FileAccess.Read)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fs.Close()&lt;/p&gt;&lt;p&gt;Catch ex AsException&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;MessageBox.Show(excelFileName &amp;amp; &quot;文件当前已经打开，请先关闭&quot;)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Return&amp;nbsp; &amp;nbsp;&#39;&amp;nbsp; 退出&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;End&amp;nbsp; Try&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;----&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Imports System.IO&lt;/p&gt;&lt;p&gt;Imports System.Runtime.InteropServices&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Public Class Form1&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim str_thispath As String = String.Empty &#39;完整檔案路徑&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str_thispath = TextBox1.Text&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextBox2.Text = &quot;&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If File.Exists(str_thispath) Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IsFileOpen(str_thispath)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextBox2.Text = &quot;檔案不存在：&quot; &amp;amp; Date.Now.ToString(&quot;yyyy/MM/dd HH:mm:ss.fffffff&quot;) &amp;amp; &quot; 結束執行。&quot; &amp;amp; vbNewLine &amp;amp; TextBox2.Text&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextBox2.Text = &quot;系統於 &quot; &amp;amp; Date.Now.ToString(&quot;yyyy/MM/dd HH:mm:ss.fffffff&quot;) &amp;amp; &quot; 結束執行。&quot; &amp;amp; vbNewLine &amp;amp; TextBox2.Text&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Function IsFileOpen(ByVal str_thispath As String) As Boolean&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim stream As FileStream = Nothing&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stream = File.Open(str_thispath, FileMode.Open, FileAccess.ReadWrite, FileShare.None)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stream.Close()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextBox2.Text = &quot;檔案可開啟:&quot; &amp;amp; Date.Now.ToString(&quot;yyyy/MM/dd HH:mm:ss.fffffff&quot;) &amp;amp; &quot; &quot; &amp;amp; vbNewLine &amp;amp; TextBox2.Text&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch ex As Exception&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TypeOf ex Is IOException AndAlso IsFileLocked(ex) Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextBox2.Text = &quot;發生例外錯誤:原因可能檔案正在使用中已上鎖...&quot; &amp;amp; Date.Now.ToString(&quot;yyyy/MM/dd HH:mm:ss.fffffff&quot;) &amp;amp; &quot; &quot; &amp;amp; vbNewLine &amp;amp; TextBox2.Text&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return True&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return False&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Function IsFileLocked(exception As Exception) As Boolean&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim ERROR_SHARING_VIOLATION As Integer = 32, ERROR_LOCK_VIOLATION As Integer = 33&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim errorCode As Integer = Marshal.GetHRForException(exception) And ((1 &amp;lt;&amp;lt; 16) - 1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return errorCode = ERROR_SHARING_VIOLATION OrElse errorCode = ERROR_LOCK_VIOLATION&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;End Class&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/7949526841662213681/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/vbnet.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/7949526841662213681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/7949526841662213681'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/vbnet.html' title='VB.NET 檔案是否被鎖定'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-8933805824129119614</id><published>2025-09-01T18:19:00.000-07:00</published><updated>2025-09-01T18:19:42.589-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBNET"/><title type='text'>vb ping get domain</title><content type='html'>&lt;p&gt;&amp;nbsp;Imports System.Net.NetworkInformation&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Public Class Form1&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim url As String = &quot;https://xxx/xxx/xxxx&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim utl_Donaim = GetDomainFromUrl(url)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;If My.Computer.Network.Ping(&quot;198.01.01.01&quot;) Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;End If&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Using pinger As New Ping()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim reply As PingReply = pinger.Send(utl_Donaim, 5000)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If reply.Status = IPStatus.Success Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Ping to {targetHost} successful! Roundtrip time: {reply.RoundtripTime}ms&quot;, &quot;Ping Result&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Ping to {targetHost} failed. Status: {reply.Status}&quot;, &quot;Ping Result&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Using&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Public Function GetDomainFromUrl(ByVal urlString As String) As String&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim uri As New Uri(urlString)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return uri.Host&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch ex As UriFormatException&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return String.Empty&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/8933805824129119614/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/vb-ping-get-domain.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8933805824129119614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8933805824129119614'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/09/vb-ping-get-domain.html' title='vb ping get domain'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-3188460860921135281</id><published>2025-08-29T19:37:00.000-07:00</published><updated>2025-08-29T19:37:32.690-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASPNET"/><title type='text'>ASP.NET System.Threading.ThreadAbortException: 執行緒已經中止</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://mr14f.blogspot.com/2015/07/aspnet-systemthreadingthreadabortexcept.html&quot; target=&quot;_blank&quot;&gt;參考引用來源:ASP.NET System.Threading.ThreadAbortException: 執行緒已經中止&lt;/a&gt;&lt;br /&gt;---&lt;/p&gt;&lt;p&gt;發生錯誤:執行緒已經中止。&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;於 System.Threading.Thread.AbortInternal()&lt;/p&gt;&lt;p&gt;於 System.Threading.Thread.Abort(Object stateInfo)&lt;/p&gt;&lt;p&gt;於 System.Web.HttpResponse.AbortCurrentThread()&lt;/p&gt;&lt;p&gt;於 System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;解決方案：https://support.microsoft.com/zh-tw/kb/918181&lt;/p&gt;&lt;p&gt;&amp;lt;%@ Page Language=&quot;C#&quot; Async=&quot;true&quot;%&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;當 HttpResponse.Redirect 方法 endResponse 參數不設為 false 時，就會發生這個問題。 根據預設值，endResponse 參數設定為 true。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;轉貼連結：http://www.dotblogs.com.tw/boei/archive/2010/07/11/16485.aspx&lt;/p&gt;&lt;p&gt;將網頁轉出成word的時候，最後會來個Response.End()來結束它的輸出，但都會發生&amp;lt;System.Threading.ThreadAbortException&amp;gt; 執行緒已經中止，雖然不會造成系統上的什麼問題。&lt;/p&gt;&lt;p&gt;解決方法:&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; &amp;nbsp; 繼續用Response.End()，外面用try – catch包住，但try – catch會比較消耗資源，所以不考慮。&lt;/p&gt;&lt;p&gt;2.&amp;nbsp; &amp;nbsp; 改用HttpContext.Current.ApplicationInstance.CompleteRequest()，可以跳過Application_EndRequest 事件的執行。&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;如果使用Response.Redirect 或 Server.Transfer 方法也發生一樣狀況的話，就可以使用Response.Redirect(String url, bool endResponse)，endResponse就設為False，因為Response.Redirect內部會用到Response.End()，設為False就是要停用Response.End()方法。&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/3188460860921135281/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/aspnet-systemthreadingthreadabortexcept.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/3188460860921135281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/3188460860921135281'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/aspnet-systemthreadingthreadabortexcept.html' title='ASP.NET System.Threading.ThreadAbortException: 執行緒已經中止'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-2311921978752578850</id><published>2025-08-28T19:42:00.000-07:00</published><updated>2025-08-28T19:42:50.096-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DELPHI相關"/><title type='text'>Delphi教學</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://www.cynet.com.tw/learning/Delphi/Delphi_Basic/index.html&quot; target=&quot;_blank&quot;&gt;Delphi教學&lt;/a&gt;&lt;/p&gt;&lt;p&gt;好難得...還能看到 delphi&amp;nbsp;&lt;/p&gt;&lt;p&gt;收錄一下&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/2311921978752578850/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/delphi.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/2311921978752578850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/2311921978752578850'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/delphi.html' title='Delphi教學'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-229982686803856847</id><published>2025-08-27T20:12:00.000-07:00</published><updated>2025-08-27T20:12:45.385-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Core"/><title type='text'>Create a controller-based web API with ASP.NET Core</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-9.0&amp;amp;tabs=visual-studio&quot; target=&quot;_blank&quot;&gt;Tutorial: Create a controller-based web API with ASP.NET Core&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;請參考來源&lt;/p&gt;&lt;p&gt;很基礎又詳細(打好基礎)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/229982686803856847/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/create-controller-based-web-api-with.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/229982686803856847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/229982686803856847'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/create-controller-based-web-api-with.html' title='Create a controller-based web API with ASP.NET Core'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-9004376946449409948</id><published>2025-08-26T09:19:00.000-07:00</published><updated>2025-08-26T09:19:47.567-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBNET"/><title type='text'>webclient 無法建立 SSL/TLS 的安全通道</title><content type='html'>&lt;p&gt;&amp;nbsp;在 framework 4.0 無法建立 tls12&lt;/p&gt;&lt;p&gt;只能自己新增:&lt;/p&gt;&lt;p style=&quot;--_pr-img-mb: 0; --theme-background-attachment: auto; --theme-background-color: hsl(0,0%,100%); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: hsl(210,8%,5%); --theme-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: hsl(0,0%,100%); --theme-content-border-color: hsl(210,8%,85%); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: hsl(210,8%,25%); --theme-footer-link-color-hover: hsl(210,8%,90%); --theme-footer-link-color: hsl(210,9%,75%); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: hsl(210,9%,75%); --theme-footer-title-color: hsl(210,8%,80%); --theme-header-background-border-bottom: 0; --theme-header-background-color: hsl(27, 89%, 48%); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: hsl(27, 89%, 48%); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-post-owner-background-color: hsl(210,80%,96%); --theme-post-owner-new-background-color: hsl(210,80%,91%); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-primary-custom-100: hsl(27, 89%, calc(48% + ((100% - 48%) * .9))); --theme-primary-custom-200: hsl(27, 89%, calc(48% + ((100% - 48%) * .75))); --theme-primary-custom-300: hsl(27, 89%, calc(48% + ((100% - 48%) * .5))); --theme-primary-custom-400: hsl(27, 89%, 48%); --theme-primary-custom-500: hsl(27, 89%, calc(48% + (48% * -.3))); --theme-primary-custom-600: hsl(27, 89%, calc(48% + (48% * -.6))); --theme-primary-custom: hsl(27, 89%, 48%); --theme-topbar-bottom-border: 1px solid hsl(210,8%,85%); background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #0c0d0e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: 15px; font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-emoji: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px 0px 1.1em; padding: 0px; vertical-align: baseline;&quot;&gt;in .net Framework 4.0 add&lt;/p&gt;&lt;pre class=&quot;lang-cs s-code-block&quot; style=&quot;--_cb-line-numbers-bg: hsl(210,8%,95%); --theme-background-attachment: auto; --theme-background-color: hsl(0,0%,100%); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: hsl(210,8%,5%); --theme-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: hsl(0,0%,100%); --theme-content-border-color: hsl(210,8%,85%); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: hsl(210,8%,25%); --theme-footer-link-color-hover: hsl(210,8%,90%); --theme-footer-link-color: hsl(210,9%,75%); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: hsl(210,9%,75%); --theme-footer-title-color: hsl(210,8%,80%); --theme-header-background-border-bottom: 0; --theme-header-background-color: hsl(27, 89%, 48%); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: hsl(27, 89%, 48%); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-post-owner-background-color: hsl(210,80%,96%); --theme-post-owner-new-background-color: hsl(210,80%,91%); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-primary-custom-100: hsl(27, 89%, calc(48% + ((100% - 48%) * .9))); --theme-primary-custom-200: hsl(27, 89%, calc(48% + ((100% - 48%) * .75))); --theme-primary-custom-300: hsl(27, 89%, calc(48% + ((100% - 48%) * .5))); --theme-primary-custom-400: hsl(27, 89%, 48%); --theme-primary-custom-500: hsl(27, 89%, calc(48% + (48% * -.3))); --theme-primary-custom-600: hsl(27, 89%, calc(48% + (48% * -.6))); --theme-primary-custom: hsl(27, 89%, 48%); --theme-topbar-bottom-border: 1px solid hsl(210,8%,85%); background-color: #f6f6f6; border-radius: 6px; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: ui-monospace, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Segoe UI Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, Menlo, Monaco, Consolas, monospace; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: 13px; font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-emoji: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: 1.30769; margin: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: 12px; scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-csharp&quot; data-highlighted=&quot;yes&quot; style=&quot;--theme-background-attachment: auto; --theme-background-color: hsl(0,0%,100%); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: hsl(210,8%,5%); --theme-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: hsl(0,0%,100%); --theme-content-border-color: hsl(210,8%,85%); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: hsl(210,8%,25%); --theme-footer-link-color-hover: hsl(210,8%,90%); --theme-footer-link-color: hsl(210,9%,75%); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: hsl(210,9%,75%); --theme-footer-title-color: hsl(210,8%,80%); --theme-header-background-border-bottom: 0; --theme-header-background-color: hsl(27, 89%, 48%); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: hsl(27, 89%, 48%); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-post-owner-background-color: hsl(210,80%,96%); --theme-post-owner-new-background-color: hsl(210,80%,91%); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-primary-custom-100: hsl(27, 89%, calc(48% + ((100% - 48%) * .9))); --theme-primary-custom-200: hsl(27, 89%, calc(48% + ((100% - 48%) * .75))); --theme-primary-custom-300: hsl(27, 89%, calc(48% + ((100% - 48%) * .5))); --theme-primary-custom-400: hsl(27, 89%, 48%); --theme-primary-custom-500: hsl(27, 89%, calc(48% + (48% * -.3))); --theme-primary-custom-600: hsl(27, 89%, calc(48% + (48% * -.6))); --theme-primary-custom: hsl(27, 89%, 48%); --theme-topbar-bottom-border: 1px solid hsl(210,8%,85%); background-color: transparent; border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;ServicePointManager.SecurityProtocol = (SecurityProtocolType)&lt;span class=&quot;hljs-number&quot; style=&quot;--theme-background-attachment: auto; --theme-background-color: hsl(0,0%,100%); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: hsl(210,8%,5%); --theme-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: hsl(0,0%,100%); --theme-content-border-color: hsl(210,8%,85%); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: hsl(210,8%,25%); --theme-footer-link-color-hover: hsl(210,8%,90%); --theme-footer-link-color: hsl(210,9%,75%); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: hsl(210,9%,75%); --theme-footer-title-color: hsl(210,8%,80%); --theme-header-background-border-bottom: 0; --theme-header-background-color: hsl(27, 89%, 48%); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: hsl(27, 89%, 48%); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-post-owner-background-color: hsl(210,80%,96%); --theme-post-owner-new-background-color: hsl(210,80%,91%); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-primary-custom-100: hsl(27, 89%, calc(48% + ((100% - 48%) * .9))); --theme-primary-custom-200: hsl(27, 89%, calc(48% + ((100% - 48%) * .75))); --theme-primary-custom-300: hsl(27, 89%, calc(48% + ((100% - 48%) * .5))); --theme-primary-custom-400: hsl(27, 89%, 48%); --theme-primary-custom-500: hsl(27, 89%, calc(48% + (48% * -.3))); --theme-primary-custom-600: hsl(27, 89%, calc(48% + (48% * -.6))); --theme-primary-custom: hsl(27, 89%, 48%); --theme-topbar-bottom-border: 1px solid hsl(210,8%,85%); border: 0px; box-sizing: inherit; color: #b75301; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3072&lt;/span&gt;; &lt;span class=&quot;hljs-comment&quot; style=&quot;--theme-background-attachment: auto; --theme-background-color: hsl(0,0%,100%); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: hsl(210,8%,5%); --theme-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: hsl(0,0%,100%); --theme-content-border-color: hsl(210,8%,85%); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: hsl(210,8%,25%); --theme-footer-link-color-hover: hsl(210,8%,90%); --theme-footer-link-color: hsl(210,9%,75%); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: hsl(210,9%,75%); --theme-footer-title-color: hsl(210,8%,80%); --theme-header-background-border-bottom: 0; --theme-header-background-color: hsl(27, 89%, 48%); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: hsl(27, 89%, 48%); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-post-owner-background-color: hsl(210,80%,96%); --theme-post-owner-new-background-color: hsl(210,80%,91%); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: -apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI Adjusted&amp;quot;,&amp;quot;Segoe UI&amp;quot;,&amp;quot;Liberation Sans&amp;quot;,sans-serif; --theme-primary-custom-100: hsl(27, 89%, calc(48% + ((100% - 48%) * .9))); --theme-primary-custom-200: hsl(27, 89%, calc(48% + ((100% - 48%) * .75))); --theme-primary-custom-300: hsl(27, 89%, calc(48% + ((100% - 48%) * .5))); --theme-primary-custom-400: hsl(27, 89%, 48%); --theme-primary-custom-500: hsl(27, 89%, calc(48% + (48% * -.3))); --theme-primary-custom-600: hsl(27, 89%, calc(48% + (48% * -.6))); --theme-primary-custom: hsl(27, 89%, 48%); --theme-topbar-bottom-border: 1px solid hsl(210,8%,85%); border: 0px; box-sizing: inherit; color: #666f78; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;//TLS 1.2&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/9004376946449409948/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/webclient-ssltls.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/9004376946449409948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/9004376946449409948'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/webclient-ssltls.html' title='webclient 無法建立 SSL/TLS 的安全通道'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-8428048262113363347</id><published>2025-08-25T06:46:00.000-07:00</published><updated>2025-08-25T06:46:08.996-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASPNET"/><title type='text'>ASP.NET C# URL 網址參數解析，取得網址參數</title><content type='html'>&lt;p&gt;引用來源:&lt;a href=&quot;https://percychuang.blogspot.com/2021/01/aspnet-c-url.html&quot; target=&quot;_blank&quot;&gt;ASP.NET C# URL 網址參數解析，取得網址參數&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: border-box; color: #635647; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.4; list-style: none; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;-webkit-font-smoothing: antialiased; background: 0px 0px; border: 0px; box-sizing: border-box; color: #007fd1; display: block; font-family: FontAwesome, Raleway, tahoma; font-size: 18px; font-weight: 400; line-height: 1; list-style: none; margin: 10px 0px 0.25em; outline: 0px; padding: 0px 8px 0px 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;-webkit-font-smoothing: antialiased; background: 0px 0px; border: 0px; box-sizing: border-box; color: #007fd1; display: block; font-family: FontAwesome, Raleway, tahoma; font-size: 18px; font-weight: 400; line-height: 1; list-style: none; margin: 10px 0px 0.25em; outline: 0px; padding: 0px 8px 0px 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;底下分別列出解屬性及解析結果&lt;/li&gt;&lt;/ol&gt;&lt;table style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #635647; font-family: Raleway, sans-serif; font-size: 16px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;thead style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;參數&lt;/th&gt;&lt;th style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;結果&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.ApplicationPath&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.Host&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;my.url.com&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.Port&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;8080&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.Scheme&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;https&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.Authority&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;my.url.com:8080&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Path&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/Detail/Page/List.aspx/showmore&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.LocalPath&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/Detail/Page/List.aspx/showmore&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.PathInfo&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/showmore&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.Query&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;?mid=20&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.CurrentExecutionFilePath&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/Detail/Page/List.aspx&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.FilePath&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/Detail/Page/List.aspx&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.RawUrl&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/Detail/Page/List.aspx/showmore?mid=20&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.PathAndQuery&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/Detail/Page/List.aspx/showmore?mid=20&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.AbsoluteUri&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://my.url.com/&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; color: #30292b; outline: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;&quot;&gt;https://my.url.com&lt;/a&gt;:8080/Detail/Page/List.aspx/showmore?mid=20&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.AbsolutePath&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/Detail/Page/List.aspx/showmore&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #635647; font-family: Raleway, sans-serif; font-size: 16px;&quot; /&gt;&lt;ol style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: border-box; color: #635647; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.4; list-style: none; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;-webkit-font-smoothing: antialiased; background: 0px 0px; border: 0px; box-sizing: border-box; color: #007fd1; display: block; font-family: FontAwesome, Raleway, tahoma; font-size: 18px; font-weight: 400; line-height: 1; list-style: none; margin: 10px 0px 0.25em; outline: 0px; padding: 0px 8px 0px 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;取得系統路徑&lt;/li&gt;&lt;/ol&gt;&lt;table style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #635647; font-family: Raleway, sans-serif; font-size: 16px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;thead style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;參數&lt;/th&gt;&lt;th style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;結果&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.PhysicalPath&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;C:\wwwroot\Detail\Page\List.aspx&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;System.IO.Path.GetDirectoryName(Request.PhysicalPath)&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;C:\wwwroot\Detail\Page&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.PhysicalApplicationPath&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;C:\wwwroot\&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;System.IO.Path.GetFileName(Request.PhysicalPath)&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;List.aspx&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #635647; font-family: Raleway, sans-serif; font-size: 16px;&quot; /&gt;&lt;ol style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: border-box; color: #635647; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.4; list-style: none; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;-webkit-font-smoothing: antialiased; background: 0px 0px; border: 0px; box-sizing: border-box; color: #007fd1; display: block; font-family: FontAwesome, Raleway, tahoma; font-size: 18px; font-weight: 400; line-height: 1; list-style: none; margin: 10px 0px 0.25em; outline: 0px; padding: 0px 8px 0px 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;解析參數&lt;/li&gt;&lt;/ol&gt;&lt;table style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; color: #635647; font-family: Raleway, sans-serif; font-size: 16px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;thead style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;參數&lt;/th&gt;&lt;th style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;結果&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;tr style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request.Url.Segments&lt;/td&gt;&lt;td style=&quot;background: 0px 0px; border: 0px; box-sizing: border-box; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/, Detail/, Page/, List.aspx/, showmore&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/8428048262113363347/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/aspnet-c-url.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8428048262113363347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/8428048262113363347'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/aspnet-c-url.html' title='ASP.NET C# URL 網址參數解析，取得網址參數'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-4657986624446060382</id><published>2025-08-23T20:02:00.000-07:00</published><updated>2025-08-23T20:02:50.899-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASPNET"/><title type='text'>跳轉頁面發生 RegisterForEventValidation 只能在 Render(); 期間呼叫</title><content type='html'>&lt;p&gt;&amp;nbsp;跳轉頁面發生:&lt;/p&gt;&lt;p&gt;System.InvalidOperationException: &#39;RegisterForEventValidation 只能在 Render(); 期間呼叫&#39;&lt;/p&gt;&lt;p&gt;這個問題，可以設定aspx原始檔中&amp;lt;%Page%&amp;gt;的以下兩個設定解決&lt;/p&gt;&lt;p&gt;EnableEventValidation = &quot;false&quot; AutoEventWireup=&quot;true&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/4657986624446060382/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/registerforeventvalidation-render.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4657986624446060382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4657986624446060382'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/registerforeventvalidation-render.html' title='跳轉頁面發生 RegisterForEventValidation 只能在 Render(); 期間呼叫'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-841393863035434393</id><published>2025-08-21T23:15:00.000-07:00</published><updated>2025-08-21T23:15:05.664-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WIN-OS"/><title type='text'>windows 11 pdf 小圖示不見</title><content type='html'>&lt;p&gt;&amp;nbsp;一、在C:\Users\ABC\AppData\Local的路徑下的IconCache.db刪除（其中ABC為你自己設定的使用者名稱）&lt;/p&gt;&lt;p&gt;二、然後在工作管理員中將「Windows檔案總管」重新啟動，或是重新開機即可恢復&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/841393863035434393/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/windows-11-pdf.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/841393863035434393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/841393863035434393'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/windows-11-pdf.html' title='windows 11 pdf 小圖示不見'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-1478558022534430437</id><published>2025-08-20T19:09:00.000-07:00</published><updated>2025-08-20T19:09:40.475-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#NET"/><title type='text'>Java to C# Converter</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://apps.microsoft.com/detail/9p03sbfxlwwd?hl=zh-TW&amp;amp;gl=TW&quot; target=&quot;_blank&quot;&gt;微軟:Java to C# Converter  free&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;還有各種轉換,有需要的可看看&amp;nbsp;&lt;a href=&quot;https://apps.microsoft.com/related/9p03sbfxlwwd?hl=zh-TW&amp;amp;gl=TW&quot; target=&quot;_blank&quot;&gt;探索更多&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/1478558022534430437/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/java-to-c-converter.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/1478558022534430437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/1478558022534430437'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/java-to-c-converter.html' title='Java to C# Converter'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-258603842907336800.post-4194948234363858424</id><published>2025-08-20T09:03:00.000-07:00</published><updated>2025-08-20T09:03:01.791-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WIN-OS"/><title type='text'>確認 applicationhost.config 或 web.config 檔案中的requestLimits@maxQueryString 設定</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;a href=&quot;https://www.cnblogs.com/huangshuqiang/p/8258426.html&quot; target=&quot;_blank&quot;&gt;mvc中查询字符串请求过长&lt;/a&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;底下方法還是不行!&lt;/p&gt;&lt;p&gt;發生錯誤:執行緒已經中止。&lt;/p&gt;&lt;p&gt;看來是須要改寫方法了...(無法偷懶...)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;引用記錄一下:&lt;/p&gt;&lt;p&gt;在项目的web.config里，&amp;lt;system.webServer&amp;gt;路径下添加如下配置：&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;security&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;requestFiltering&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;requestLimits maxQueryString=&quot;4080&quot; /&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/requestFiltering&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;/security&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;打开项目中的Web.config，在&amp;lt;system.web&amp;gt;节点下设置httpRuntime节点的maxQueryStringLength属性，Web.config中的设置如下：&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;system.web&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;lt;httpRuntime maxQueryStringLength=&quot;9999&quot;/&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/system.web&amp;gt;&lt;/p&gt;&lt;p&gt;------------&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://wushinetlife.blogspot.com/feeds/4194948234363858424/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/applicationhostconfig-webconfig.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4194948234363858424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/258603842907336800/posts/default/4194948234363858424'/><link rel='alternate' type='text/html' href='http://wushinetlife.blogspot.com/2025/08/applicationhostconfig-webconfig.html' title='確認 applicationhost.config 或 web.config 檔案中的requestLimits@maxQueryString 設定'/><author><name>邏輯生活</name><uri>http://www.blogger.com/profile/14464620602694778454</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>