<?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-7105980263081593263</id><updated>2024-10-04T20:33:54.487-07:00</updated><category term="asp.net Export Excel"/><title type='text'>FindVB</title><subtitle type='html'>Tips และ source Code ที่น่าสนใจ</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><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>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7105980263081593263.post-706340658059568595</id><published>2022-07-11T20:16:00.000-07:00</published><updated>2022-07-11T20:16:33.330-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net Export Excel"/><title type='text'>Export DataTable To Excel ไม่ต้องสร้าง Excel Tag</title><content type='html'>&lt;p&gt;&amp;nbsp;ที่มา : https://social.msdn.microsoft.com/Forums/en-US/812b55a1-73e1-47cd-beb2-06c49d1187d1/export-datatable-to-excel?forum=aspgettingstarted&lt;/p&gt;&lt;p&gt;By : User-2119480821 posted&lt;/p&gt;&lt;p&gt;ใส่ในปุ่ม Export หน้า ExportToExcel.aspx ได้เลย&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;//*********************&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; constr = &lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;@&quot;Server=xxxx;Database=xxxxxx;UID=xxxx;PWD=xxxxxxxx;Application
Name=exportExcel&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;SqlConnection&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; con = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;SqlConnection&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;(constr))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;SqlCommand&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; cmd = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;SqlCommand&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&quot;SELECT * FROM [dbo].[tblCustomers]
with(nolock)&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;SqlDataAdapter&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; sda = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;SqlDataAdapter&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;())&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;cmd.Connection = con;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;sda.SelectCommand = cmd;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;DataTable&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; dt = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;DataTable&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;())&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;sda.Fill(dt); &lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;// select data to datatable&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;GridView&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; tmpGv = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;GridView&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;tmpGv.DataSource = dt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;tmpGv.DataBind();&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;System.IO.&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;StringWriter&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; sw = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; System.IO.&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;StringWriter&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;System.Web.UI.&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;HtmlTextWriter&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; htw = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; System.Web.UI.&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;HtmlTextWriter&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;(sw);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;tmpGv.RenderControl(htw);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Response.Clear();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Response.Charset = &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Response.ContentEncoding
= System.Text.&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;Encoding&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;.UTF8;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Response.Cache.SetCacheability(&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;HttpCacheability&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;.NoCache);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Response.ContentType = &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&quot;application/vnd.xls&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Response.AddHeader(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&quot;content-disposition&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&quot;attachment;filename=&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&quot;test.xls&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Response.Write(sw.ToString());&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;sw = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;htw = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Response.Flush();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Response.End();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;//***************&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;/* asp.net VB.net&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Protected Sub Button1_Click(ByVal
sender As Object, ByVal e As EventArgs)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim constr As String =
&quot;Server=xxx;Database=xxx;UID=xxxxxx;PWD=xxxxxxx;Application
Name=testexportExcel&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using con As SqlConnection =
New SqlConnection(constr)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using cmd As SqlCommand =
New SqlCommand(&quot;SELECT * FROM customers&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using sda As
SqlDataAdapter = New SqlDataAdapter()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmd.Connection =
con&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sda.SelectCommand =
cmd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using dt As
DataTable = New DataTable()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sda.Fill(dt)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tmpGv As
GridView = New GridView()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
tmpGv.DataSource = dt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
tmpGv.DataBind()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sw As
System.IO.StringWriter = New System.IO.StringWriter()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim htw As
System.Web.UI.HtmlTextWriter = New System.Web.UI.HtmlTextWriter(sw)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
tmpGv.RenderControl(htw)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.Clear()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Charset
= &quot;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.ContentEncoding = System.Text.Encoding.UTF8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.Cache.SetCacheability(HttpCacheability.NoCache)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.ContentType = &quot;application/vnd.xls&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.AddHeader(&quot;content-disposition&quot;,
&quot;attachment;filename=&quot; &amp;amp; &quot;test.xls&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.Write(sw.ToString())&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sw = Nothing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;htw = Nothing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.Flush()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Response.[End]()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;*/&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-ansi-language: EN-GB; mso-bidi-font-family: Consolas;&quot;&gt;







































































&lt;br /&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/706340658059568595/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/706340658059568595' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/706340658059568595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/706340658059568595'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2022/07/export-datatable-to-excel-excel-tag.html' title='Export DataTable To Excel ไม่ต้องสร้าง Excel Tag'/><author><name>Unknown</name><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-7105980263081593263.post-1949432420818016048</id><published>2019-06-05T20:49:00.002-07:00</published><updated>2019-06-05T20:51:37.909-07:00</updated><title type='text'>How To Migrate asp.net(under .net 4.5 ) website to TLS 1.2?</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 12px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;เมื่อมีการปิด TLS1.0&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;Error :&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;The request was aborted: Could not create SSL/TLS secure channel.&lt;/span&gt;&lt;br /&gt;
ที่มา :&amp;nbsp;&lt;a href=&quot;https://github.com/navossoc/KeePass-Yet-Another-Favicon-Downloader/issues/23&quot;&gt;https://github.com/navossoc/KeePass-Yet-Another-Favicon-Downloader/issues/23&lt;/a&gt;&lt;br /&gt;
สาเหตุ : อ่านเองนะ&amp;nbsp;&lt;a href=&quot;https://www.swoo.co.uk/blog/post/40135/how-to-migrate-a-net-website-to-tls-12&quot;&gt;https://www.swoo.co.uk/blog/post/40135/how-to-migrate-a-net-website-to-tls-12&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: #f6b26b;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;วิธีการแก้ไข ที่ง่ายได้ผล&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Old Code&lt;/span&gt; : เดิมมีให้เลือกแค่นี้(VB.net)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJWNQLQeeX2B3IMX_vOTyb-OgeO9y2LXNv9XmJ9lhPPyPHqzfItwZu0yQ342FLksCfFpLvvQFXcoysNfOTaKFDz-_Wk3aTBNSyvCgiwW2Iid9ftnBIBngyQJWP3RRUD9Ep2Qijh0NOkCil/s1600/Pic01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;92&quot; data-original-width=&quot;913&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJWNQLQeeX2B3IMX_vOTyb-OgeO9y2LXNv9XmJ9lhPPyPHqzfItwZu0yQ342FLksCfFpLvvQFXcoysNfOTaKFDz-_Wk3aTBNSyvCgiwW2Iid9ftnBIBngyQJWP3RRUD9Ep2Qijh0NOkCil/s1600/Pic01.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: rgba(27, 31, 35, 0.05);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: #38761d; font-family: , &amp;quot;consolas&amp;quot; , &amp;quot;liberation mono&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;font-size: 11.9px;&quot;&gt;// Only available from .Net 4.5+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: rgba(27 , 31 , 35 , 0.05); color: #38761d; font-family: , &amp;quot;consolas&amp;quot; , &amp;quot;liberation mono&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 11.9px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: rgba(27 , 31 , 35 , 0.05); color: #38761d; font-family: , &amp;quot;consolas&amp;quot; , &amp;quot;liberation mono&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 11.9px;&quot;&gt;// System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;New Code :&lt;/span&gt; ตามนี้คับ&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb2FZrjNrLI17yHtPovNb1RwqNhYZlniP-ywEHACMj47uf4bdMZwQwA9HqjUuOe-mjcQPSqsijgDQc93XUCRxff9zx0Q1mnYwy37wuStmqJaTXfj6dw9OZyzt33VJTopXLwjUjyh4dUM6b/s1600/Pic02Update.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;77&quot; data-original-width=&quot;945&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb2FZrjNrLI17yHtPovNb1RwqNhYZlniP-ywEHACMj47uf4bdMZwQwA9HqjUuOe-mjcQPSqsijgDQc93XUCRxff9zx0Q1mnYwy37wuStmqJaTXfj6dw9OZyzt33VJTopXLwjUjyh4dUM6b/s1600/Pic02Update.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 10.6667px;&quot;&gt;************************************************************&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 8pt;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;tahoma&amp;quot; , sans-serif; font-size: 8pt;&quot;&gt;
_Tls12 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;
System.Security.Authentication.SslProtocols = &lt;span style=&quot;color: blue;&quot;&gt;CType&lt;/span&gt;(&amp;amp;HC00,
System.Security.Authentication.SslProtocols)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;tahoma&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 115%;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;tahoma&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 115%;&quot;&gt; Tls12 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;
SecurityProtocolType = &lt;span style=&quot;color: blue;&quot;&gt;CType&lt;/span&gt;(_Tls12,
SecurityProtocolType)&lt;br /&gt;
ServicePointManager.SecurityProtocol = Tls12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;tahoma&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 8.0pt; line-height: 115%;&quot;&gt;************************************************************&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;tahoma&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 10.6667px;&quot;&gt;วิธีนี้ไม่ต้อง update .net Framework ได้ผลสำหรับผมนะ&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/1949432420818016048/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/1949432420818016048' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1949432420818016048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1949432420818016048'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2019/06/how-to-migrate-aspnetunder-net-45.html' title='How To Migrate asp.net(under .net 4.5 ) website to TLS 1.2?'/><author><name>Unknown</name><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJWNQLQeeX2B3IMX_vOTyb-OgeO9y2LXNv9XmJ9lhPPyPHqzfItwZu0yQ342FLksCfFpLvvQFXcoysNfOTaKFDz-_Wk3aTBNSyvCgiwW2Iid9ftnBIBngyQJWP3RRUD9Ep2Qijh0NOkCil/s72-c/Pic01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7105980263081593263.post-6232220593217983956</id><published>2017-04-20T20:39:00.001-07:00</published><updated>2017-04-20T20:42:12.582-07:00</updated><title type='text'>Install IIS on windows10 </title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
ไปที่&amp;nbsp;Control Panel\All Control Panel Items\Programs and Features&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz6qbk42lQidx7XkL48Ak-pY9CdhlHgjMVqmN8p6Vme-ioB54VpdyTFe9Emwfu63ihF6alDNIP0nT92v__OG7P5b0LAQ-aojjJ97aimvL8tuOWV1gOEkbzW3HUjLX_KgTP8e8DbVcRyng3/s320/IIS_windows10.PNG&quot; width=&quot;243&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzpI0c_eESvkdsKxOzStqH-e7o3dJyj-6Q8N3QQ7Xk4RSXlq8Wy5r02ePs_tdD063n2StNyrPE6g3114Wn8lwUFUVfX_NXLqwWKvmT2We5IsDaIhqQF5YTS9M4C05gYVzQ7In-OuAaqSBK/s1600/IIS_windows10%25282%2529.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzpI0c_eESvkdsKxOzStqH-e7o3dJyj-6Q8N3QQ7Xk4RSXlq8Wy5r02ePs_tdD063n2StNyrPE6g3114Wn8lwUFUVfX_NXLqwWKvmT2We5IsDaIhqQF5YTS9M4C05gYVzQ7In-OuAaqSBK/s1600/IIS_windows10%25282%2529.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYyg-St8eqttoGdxZu4FNfLuHqmKmUUXKYobWp2RZiXnY5r34m7IazTxEID243fqi5Mv63LU3Cm4sJi4clDVpHi1oQCKWgec2LUSM3ItOWVA9b-9FiUjumTt7G7_VLxnnzNTn_fMt7nKjC/s1600/IIS_windows10%25283%2529.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;161&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYyg-St8eqttoGdxZu4FNfLuHqmKmUUXKYobWp2RZiXnY5r34m7IazTxEID243fqi5Mv63LU3Cm4sJi4clDVpHi1oQCKWgec2LUSM3ItOWVA9b-9FiUjumTt7G7_VLxnnzNTn_fMt7nKjC/s320/IIS_windows10%25283%2529.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
set Application Pools &amp;gt;&amp;gt; Enable 32-Bit Applications=True&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqlkb_N2hoot8S5Ls9vBv-A737b9wRGL-NPrucfqWKLuz4VTq5AzTVZ4A-bp4Gjrck5MXRxjZ0cKhTXj1HH25buZPu-k8PA4APgUt1aZ-ddDmWWtrztrL10doTF6Kj0kPAx0E0xuKPEBB8/s400/IIS_windows10_AppPools%25281%2529.PNG&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;382&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbhWNSSL4i4tMB_W7IwD8o8j83lgcj5iStoz4pCSYWtIbb0pPkT2UTm81Sl4gUeG-KS0MLZZf_45vebo__G3eJEFdQh8XsjXzgJ06K79TOYpsEEFqxrGREIdCFh9nFjYb8H0_hPoc0kv8u/s400/IIS_windows10_AppPools%25282%2529.PNG&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/6232220593217983956/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/6232220593217983956' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6232220593217983956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6232220593217983956'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2017/04/install-iis-on-windows10.html' title='Install IIS on windows10 '/><author><name>Unknown</name><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz6qbk42lQidx7XkL48Ak-pY9CdhlHgjMVqmN8p6Vme-ioB54VpdyTFe9Emwfu63ihF6alDNIP0nT92v__OG7P5b0LAQ-aojjJ97aimvL8tuOWV1gOEkbzW3HUjLX_KgTP8e8DbVcRyng3/s72-c/IIS_windows10.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7105980263081593263.post-2988797184653812930</id><published>2016-10-29T02:31:00.001-07:00</published><updated>2016-10-29T02:31:08.931-07:00</updated><title type='text'>Microsoft SQL Server T-SQL date and datetime formats</title><content type='html'>Microsoft SQL Server T-SQL date and datetime formats&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;– Date time formats – mssql datetime&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;– MSSQL getdate returns current system date and time in standard internal format&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 100) &lt;span style=&quot;color: #38761d;&quot;&gt;– mon dd yyyy hh:mmAM (or PM)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; – Oct &amp;nbsp;2 2008 11:01AM&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
SELECT convert(varchar, getdate(), 101) &lt;span style=&quot;color: #38761d;&quot;&gt;– mm/dd/yyyy - 10/02/2008 &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
SELECT convert(varchar, getdate(), 102)&lt;span style=&quot;color: #38761d;&quot;&gt; – yyyy.mm.dd – 2008.10.02&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
SELECT convert(varchar, getdate(), 103)&lt;span style=&quot;color: #38761d;&quot;&gt; – dd/mm/yyyy&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 104) &lt;span style=&quot;color: #38761d;&quot;&gt;– dd.mm.yyyy&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 105) &lt;span style=&quot;color: #38761d;&quot;&gt;– dd-mm-yyyy&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 106) &lt;span style=&quot;color: #38761d;&quot;&gt;– dd mon yyyy&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 107) &lt;span style=&quot;color: #38761d;&quot;&gt;– mon dd, yyyy&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 108) &lt;span style=&quot;color: #38761d;&quot;&gt;– hh:mm:ss&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 109) &lt;span style=&quot;color: #38761d;&quot;&gt;– mon dd yyyy hh:mm:ss:mmmAM (or PM)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;– Oct &amp;nbsp;2 2008 11:02:44:013AM &lt;/span&gt;&amp;nbsp;&lt;br /&gt;
SELECT convert(varchar, getdate(), 110) –&lt;span style=&quot;color: #38761d;&quot;&gt; mm-dd-yyyy&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 111)&lt;span style=&quot;color: #38761d;&quot;&gt; – yyyy/mm/dd&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 112) &lt;span style=&quot;color: #38761d;&quot;&gt;– yyyymmdd&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 113) &lt;span style=&quot;color: #38761d;&quot;&gt;– dd mon yyyy hh:mm:ss:mmm&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;– 02 Oct 2008 11:02:07:577 &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 114) &lt;span style=&quot;color: #38761d;&quot;&gt;– hh:mm:ss:mmm(24h)&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 120) &lt;span style=&quot;color: #38761d;&quot;&gt;– yyyy-mm-dd hh:mm:ss(24h)&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 121) &lt;span style=&quot;color: #38761d;&quot;&gt;– yyyy-mm-dd hh:mm:ss.mmm&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar, getdate(), 126) &lt;span style=&quot;color: #38761d;&quot;&gt;– yyyy-mm-ddThh:mm:ss.mmm&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;– 2008-10-02T10:52:47.513&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;– SQL create different date styles with t-sql string functions&lt;/span&gt;&lt;br /&gt;
SELECT replace(convert(varchar, getdate(), 111), ‘/’, ‘ ‘) &lt;span style=&quot;color: #38761d;&quot;&gt;– yyyy mm dd&lt;/span&gt;&lt;br /&gt;
SELECT convert(varchar(7), getdate(), 126) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #38761d;&quot;&gt;– yyyy-mm&lt;/span&gt;&lt;br /&gt;
SELECT right(convert(varchar, getdate(), 106), 8) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;– mon yyyy&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/2988797184653812930/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/2988797184653812930' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/2988797184653812930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/2988797184653812930'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2016/10/microsoft-sql-server-t-sql-date-and.html' title='Microsoft SQL Server T-SQL date and datetime formats'/><author><name>Unknown</name><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-7105980263081593263.post-7376343791423147757</id><published>2016-08-19T02:54:00.001-07:00</published><updated>2016-08-19T02:56:14.982-07:00</updated><title type='text'>convert web asp.net from .net framework 2.0 to .net framework 3.5 fix Ajax return msg.d </title><content type='html'>เพิ่ม tag javascript ในหน้าที่มีการเรียกใช้ ajax&lt;br /&gt;
&lt;br /&gt;
$.ajaxSetup({&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataFilter: function (data) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return JSON.stringify($.parseJSON(data).d);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
เนื่องจาก project มีการเรียกใช้หลายที่ ทำให้แก้ไขยาก ถ้าใช้วิธีนี้ไม่ต้องแก้ไข code เก่าเลย ลดงาน ลดเวลา ไม่กระทบงานเก่า</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/7376343791423147757/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/7376343791423147757' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7376343791423147757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7376343791423147757'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2016/08/convert-web-aspnet-from-net-framework.html' title='convert web asp.net from .net framework 2.0 to .net framework 3.5 fix Ajax return msg.d '/><author><name>Unknown</name><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-7105980263081593263.post-7667740810992061160</id><published>2016-01-13T00:10:00.002-08:00</published><updated>2016-01-13T00:19:57.025-08:00</updated><title type='text'>เว็บเล่น file media video</title><content type='html'>&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.style2 {color: #0000FF}
.style3 {color: #0099CC}
.style4 {color: #009900}
.style5 {color: #33CCFF}
--&gt;
&lt;/style&gt;
ตัวอย่าง&lt;br /&gt;
http://www.mia-pi.ca/promo_video2.html&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style2&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;/pre&gt;
&lt;span class=&quot;style2&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function showcode(aa,bb) {
var myTA = document.getElementById(aa);
var strclick = document.getElementById(bb);
if (myTA.style.display == &#39;&#39;) {
myTA.style.display = &#39;none&#39;;
strclick.innerHTML=&quot;View Code&quot;;
} else {
myTA.style.display = &#39;&#39;;
strclick.innerHTML=&quot;Hide Code&quot;;
}
}
  &lt;/script&gt;&lt;br /&gt;&amp;nbsp;ที่มา&lt;br /&gt;
&lt;b&gt;http://www.mia-pi.ca/promo_video2.html&lt;/b&gt;
  &lt;br /&gt;
  
&lt;/span&gt;&lt;br /&gt;
&lt;div id=&quot;textclickstrmoney&quot; onclick=&quot;showcode(&#39;divcodestrmoney&#39;,&#39;textclickstrmoney&#39;)&quot; style=&quot;color: red; cursor: pointer;&quot;&gt;
&lt;span class=&quot;style2&quot;&gt;View Code&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;style2&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;tocdiv&quot; id=&quot;divcodestrmoney&quot; style=&quot;display: none;&quot;&gt;
&lt;span class=&quot;style2&quot;&gt;&lt;code&gt;-------------------------------------------------&lt;br /&gt;
&amp;lt;div id=&quot;mediaplayer&quot;&amp;gt;Uploading Video...&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jwplayer/jwplayer.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; &lt;br /&gt;
jwplayer(&quot;mediaplayer&quot;).setup({&lt;br /&gt;
flashplayer: &quot;jwplayer/player.swf&quot;,&lt;br /&gt;
file: &quot;media/promo_video/MIA_promo_new_640.mp4&quot;,&lt;br /&gt;
autostart: &quot;true&quot;,&lt;br /&gt;
stretching: &quot;none&quot;,&lt;br /&gt;
controlbar: &quot;bottom&quot;,&lt;br /&gt;
width: &quot;640&quot;,&lt;br /&gt;
height: &quot;384&quot;&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
------------------------------------------------&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/7667740810992061160/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/7667740810992061160' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7667740810992061160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7667740810992061160'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2016/01/file-media-video.html' title='เว็บเล่น file media video'/><author><name>Unknown</name><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-7105980263081593263.post-4272571457701530416</id><published>2015-04-19T06:55:00.002-07:00</published><updated>2015-04-19T06:55:25.759-07:00</updated><title type='text'>Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server&#39;s administrator for additional assistance.</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw8kxwRjosurx1xY2UQyKDgq7BTHx4YGmI90kViNUM5ThvTbhpUzWLvH-SgCzInlhJILEJC0gTRaGPQyXnHcvlDxMfRf1S8NoH_Rir5EfKZGeT3JLu5ayn-SXCily9UyBKfycsxhdMVdvB/s1600/Errormsg401.2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw8kxwRjosurx1xY2UQyKDgq7BTHx4YGmI90kViNUM5ThvTbhpUzWLvH-SgCzInlhJILEJC0gTRaGPQyXnHcvlDxMfRf1S8NoH_Rir5EfKZGeT3JLu5ayn-SXCily9UyBKfycsxhdMVdvB/s1600/Errormsg401.2.PNG&quot; height=&quot;224&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
วิธีแก้ไข&lt;br /&gt;
folder: %windir%\Microsoft.Net\Framework\v2.0.50.27\CONFIG\web.config&lt;br /&gt;
************************************&lt;br /&gt;
&amp;lt;system .web=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;authorization&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #a2c4c9;&quot;&gt;&amp;lt;allow users=&quot;*&quot; verbs=&quot;GET,POST&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/allow&amp;gt;&amp;lt;/authorization&amp;gt;&lt;br /&gt;
&amp;lt;/system&amp;gt;&lt;br /&gt;
************************************&lt;br /&gt;
แก้ไขเป็น&lt;br /&gt;
*********************************&lt;br /&gt;
&amp;lt;system .web=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;authorization&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;allow users=&quot;*&quot; verbs=&quot;&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/allow&amp;gt;&amp;lt;/authorization&amp;gt;&lt;br /&gt;
&amp;lt;/system&amp;gt;&lt;br /&gt;
*********************************</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/4272571457701530416/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/4272571457701530416' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4272571457701530416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4272571457701530416'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2015/04/error-message-4012-unauthorized-logon.html' title='Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server&#39;s administrator for additional assistance.'/><author><name>Unknown</name><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw8kxwRjosurx1xY2UQyKDgq7BTHx4YGmI90kViNUM5ThvTbhpUzWLvH-SgCzInlhJILEJC0gTRaGPQyXnHcvlDxMfRf1S8NoH_Rir5EfKZGeT3JLu5ayn-SXCily9UyBKfycsxhdMVdvB/s72-c/Errormsg401.2.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7105980263081593263.post-7371552289660272654</id><published>2015-03-24T03:34:00.000-07:00</published><updated>2015-03-24T03:34:16.049-07:00</updated><title type='text'>Linq OrderBy Extension</title><content type='html'>&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.style2 {color: #0000FF}
.style3 {color: #0099CC}
.style4 {color: #009900}
.style5 {color: #33CCFF}
--&gt;
&lt;/style&gt;
ในการพัฒนาโปรแกรม ด้วย ASP.net ต้องมีการQuery ข้อมูลมาแสดงในGridView ซึ่งต้องมีส่วนของการ Sort Data แน่นอน และถ้าเราใช้ LinQ ละ? ผมจึงนำ Extension Method ใน LinQ นำมาฝาก&lt;br /&gt;
รูปแบบการเรียกใช้งานทำได้ดังนี้&lt;br /&gt;&lt;br /&gt;
&lt;span class=&quot;style2&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: consolas;&quot;&gt;&lt;span class=&quot;style2&quot;&gt;list.OrderBy(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SomeProperty&quot;&lt;/span&gt;);
list.OrderBy(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SomeProperty DESC&quot;&lt;/span&gt;);
list.OrderBy(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SomeProperty DESC, SomeOtherProperty&quot;&lt;/span&gt;);
list.OrderBy(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SomeSubObject.SomeProperty ASC, SomeOtherProperty DESC&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;span class=&quot;style2&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function showcode(aa,bb) {
var myTA = document.getElementById(aa);
var strclick = document.getElementById(bb);
if (myTA.style.display == &#39;&#39;) {
myTA.style.display = &#39;none&#39;;
strclick.innerHTML=&quot;View Code&quot;;
} else {
myTA.style.display = &#39;&#39;;
strclick.innerHTML=&quot;Hide Code&quot;;
}
}
  &lt;/script&gt;&lt;br /&gt;&amp;nbsp;ที่มา&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://aonnull.blogspot.com/2010/08/dynamic-sql-like-linq-orderby-extension.html&quot;&gt;Dynamic SQL-like Linq  OrderBy Extension&lt;/a&gt;&lt;/b&gt;&lt;a href=&quot;http://aonnull.blogspot.com/2010/08/dynamic-sql-like-linq-orderby-extension.html&quot;&gt;&lt;br /&gt;
  http://aonnull.blogspot.com/2010/08/dynamic-sql-like-linq-orderby-extension.html&lt;/a&gt;&lt;br /&gt;
  &lt;br /&gt;
  &lt;strong&gt;C#.net Convert To VB.net By&lt;/strong&gt; :&lt;a href=&quot;http://converter.telerik.com/&quot;&gt;http://converter.telerik.com/&lt;/a&gt; &lt;br /&gt;
  &lt;br /&gt;
  
&lt;/span&gt;&lt;br /&gt;
&lt;div id=&quot;textclickstrmoney&quot; onclick=&quot;showcode(&#39;divcodestrmoney&#39;,&#39;textclickstrmoney&#39;)&quot; style=&quot;color: red; cursor: pointer;&quot;&gt;
&lt;span class=&quot;style2&quot;&gt;View Code&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;style2&quot;&gt;
&lt;div class=&quot;tocdiv&quot; id=&quot;divcodestrmoney&quot; style=&quot;display: none;&quot;&gt;
&lt;code&gt;-------------------------------------------------&lt;br /&gt;
Imports System.Collections.Generic&lt;br /&gt;
  Imports System.Linq&lt;br /&gt;
  Imports System.Web&lt;br /&gt;
  Imports System.Linq.Expressions&lt;br /&gt;
  Imports System.Reflection&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style2&quot;&gt;Module&lt;/span&gt; &lt;span class=&quot;style3&quot;&gt;OrderByExtensions&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span class=&quot;style4&quot;&gt;&#39;&#39; Mutiple Sort in Linq Order by String example :&quot;sAccount,CardID desc&quot;&lt;br /&gt;
  &#39;&#39; objdata.OrderBy(&quot;sAccount asc&quot;) ,objdata.OrderBy(&quot;sAccount asc,CardID desc&quot;) &lt;/span&gt;&lt;br /&gt;
  &amp;lt;System.Runtime.CompilerServices.&lt;span class=&quot;style5&quot;&gt;Extension&lt;/span&gt;()&amp;gt; _&lt;br /&gt;
  Public Function OrderBy(Of T)(enumerable As IEnumerable(Of T), strorderBy As String) As IEnumerable(Of T)&lt;br /&gt;
  Return enumerable.AsQueryable().OrderBy(strorderBy).AsEnumerable()&lt;br /&gt;
  End Function&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;
  &lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;lt;System.Runtime.CompilerServices.Extension()&amp;gt; _&lt;br /&gt;
    Public Function OrderBy(Of T)(collection As IQueryable(Of T), strorderBy As String) As IQueryable(Of T)&lt;br /&gt;
    For Each orderByInfo As OrderByInfo In ParseOrderBy(strorderBy)&lt;br /&gt;
    collection = ApplyOrderBy(Of T)(collection, orderByInfo)&lt;br /&gt;
  Next&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;
  Return collection&lt;br /&gt;
  End Function&lt;br /&gt;

  Private Function ApplyOrderBy(Of T)(collection As IQueryable(Of T), orderByInfo As OrderByInfo) As IQueryable(Of T)&lt;br /&gt;
    Dim props As String() = orderByInfo.PropertyName.Split(&quot;.&quot;c)&lt;br /&gt;
  Dim type As Type = GetType(T)&lt;br /&gt;

  Dim arg As ParameterExpression = Expression.Parameter(type, &quot;x&quot;)&lt;br /&gt;
    Dim expr As Expression = arg&lt;br /&gt;
    For Each prop As String In props&lt;br /&gt;
    &#39; use reflection (not ComponentModel) to mirror LINQ&lt;br /&gt;
    Dim pi As PropertyInfo = type.GetProperty(prop)&lt;br /&gt;
    expr = Expression.[Property](expr, pi)&lt;br /&gt;
    type = pi.PropertyType&lt;br /&gt;
    Next&lt;br /&gt;
    Dim delegateType As Type = GetType(Func(Of ,)).MakeGenericType(GetType(T), type)&lt;br /&gt;
    Dim lambda As LambdaExpression = Expression.Lambda(delegateType, expr, arg)&lt;br /&gt;
  Dim methodName As String = [String].Empty&lt;br /&gt;

  If Not orderByInfo.Initial AndAlso TypeOf collection Is IOrderedQueryable(Of T) Then&lt;br /&gt;
    If orderByInfo.Direction = SortDirection.Ascending Then&lt;br /&gt;
    methodName = &quot;ThenBy&quot;&lt;br /&gt;
    Else&lt;br /&gt;
    methodName = &quot;ThenByDescending&quot;&lt;br /&gt;
    End If&lt;br /&gt;
    Else&lt;br /&gt;
    If orderByInfo.Direction = SortDirection.Ascending Then&lt;br /&gt;
    methodName = &quot;OrderBy&quot;&lt;br /&gt;
    Else&lt;br /&gt;
    methodName = &quot;OrderByDescending&quot;&lt;br /&gt;
    End If&lt;br /&gt;
  End If&lt;br /&gt;

  &#39;TODO: apply caching to the generic methodsinfos?&lt;br /&gt;
  Return DirectCast(GetType(Queryable).GetMethods().[Single](Function(method) method.Name = methodName AndAlso method.IsGenericMethodDefinition AndAlso method.GetGenericArguments().Length = 2 AndAlso method.GetParameters().Length = 2).MakeGenericMethod(GetType(T), type).Invoke(Nothing, New Object() {collection, lambda}), IOrderedQueryable(Of T))&lt;br /&gt;

  End Function&lt;br /&gt;

  Private Function ParseOrderBy(orderBy As String) As IEnumerable(Of OrderByInfo)&lt;br /&gt;
    If [String].IsNullOrEmpty(orderBy) Then&lt;br /&gt;
    Return New List(Of OrderByInfo)&lt;br /&gt;
  End If&lt;br /&gt;

  Dim items As String() = orderBy.Split(&quot;,&quot;c)&lt;br /&gt;
    Dim initial As Boolean = True&lt;br /&gt;
    Dim listorderby As New List(Of OrderByInfo)&lt;br /&gt;
    For Each item As String In items&lt;br /&gt;
  Dim pair As String() = item.Trim().Split(&quot; &quot;c)&lt;br /&gt;

  If pair.Length &amp;gt; 2 Then&lt;br /&gt;
    Throw New ArgumentException([String].Format(&quot;Invalid OrderBy string &#39;{0}&#39;. Order By Format: Property, Property2 ASC, Property2 DESC&quot;, item))&lt;br /&gt;
  End If&lt;br /&gt;

  Dim prop As String = pair(0).Trim()&lt;br /&gt;

  If [String].IsNullOrEmpty(prop) Then&lt;br /&gt;
    Throw New ArgumentException(&quot;Invalid Property. Order By Format: Property, Property2 ASC, Property2 DESC&quot;)&lt;br /&gt;
  End If&lt;br /&gt;

  Dim dir As SortDirection = SortDirection.Ascending&lt;br /&gt;

  If pair.Length = 2 Then&lt;br /&gt;
    dir = (If(&quot;desc&quot;.Equals(pair(1).Trim(), StringComparison.OrdinalIgnoreCase), SortDirection.Descending, SortDirection.Ascending))&lt;br /&gt;
  End If&lt;br /&gt;

  Dim objclss = New OrderByInfo()&lt;br /&gt;
    objclss.PropertyName = prop&lt;br /&gt;
    objclss.Direction = dir&lt;br /&gt;
    objclss.Initial = initial&lt;br /&gt;
    listorderby.Add(objclss)&lt;br /&gt;
  &lt;br /&gt;

  initial = False&lt;br /&gt;
    Next&lt;br /&gt;
    Return listorderby&lt;br /&gt;
  End Function&lt;br /&gt;

  Private Class OrderByInfo&lt;br /&gt;
    Public Property PropertyName() As String&lt;br /&gt;
    Get&lt;br /&gt;
    Return m_PropertyName&lt;br /&gt;
    End Get&lt;br /&gt;
    Set(value As String)&lt;br /&gt;
    m_PropertyName = value&lt;br /&gt;
    End Set&lt;br /&gt;
    End Property&lt;br /&gt;
    Private m_PropertyName As String&lt;br /&gt;
    Public Property Direction() As SortDirection&lt;br /&gt;
    Get&lt;br /&gt;
    Return m_Direction&lt;br /&gt;
    End Get&lt;br /&gt;
    Set(value As SortDirection)&lt;br /&gt;
    m_Direction = value&lt;br /&gt;
    End Set&lt;br /&gt;
    End Property&lt;br /&gt;
    Private m_Direction As SortDirection&lt;br /&gt;
    Public Property Initial() As Boolean&lt;br /&gt;
    Get&lt;br /&gt;
    Return m_Initial&lt;br /&gt;
    End Get&lt;br /&gt;
    Set(value As Boolean)&lt;br /&gt;
    m_Initial = value&lt;br /&gt;
    End Set&lt;br /&gt;
    End Property&lt;br /&gt;
    Private m_Initial As Boolean&lt;br /&gt;
  End Class&lt;br /&gt;

  Private Enum SortDirection&lt;br /&gt;
    Ascending = 0&lt;br /&gt;
    Descending = 1&lt;br /&gt;
  End Enum&lt;br /&gt;

  &lt;span class=&quot;style2&quot;&gt;End Module&lt;/span&gt;&lt;br /&gt;
  &lt;br /&gt;
------------------------------------------------&lt;/code&gt;&lt;/div&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/7371552289660272654/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/7371552289660272654' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7371552289660272654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7371552289660272654'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2015/03/linq-orderby-extension.html' title='Linq OrderBy Extension'/><author><name>Unknown</name><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-7105980263081593263.post-4244864180867738663</id><published>2014-10-06T02:03:00.003-07:00</published><updated>2016-02-04T19:42:21.523-08:00</updated><title type='text'>Prevent Remember My Password , Disable Remember My Password on brower</title><content type='html'>ในหน้าเว็บที่ต้องกรอก UserName &amp;amp; Password เมื่อทำการ submit แล้ว Brower จะถามว่าต้องการบันทึกหรือไม่&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; เมื่อเราทำการกด บันทึกBrower ก็จะจำuser และ รหัสผ่านที่เรากรอกไป&lt;br /&gt;
ซึ่งทำให้ผู้ที่เข้ามาเปิดเว็บคนถัดไปสามารถใช้ ข้อมูลที่เก็บไว้ในที่นี้ log in เข้าไปได้&lt;br /&gt;
&lt;br /&gt;
วิธีการป้องการ การจำในส่วนนี้ ทำได้ดังนี้&lt;br /&gt;
(Disable Remember My Password)&lt;br /&gt;
เพิ่ม tag &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div style=&quot; visibility:hidden; width:0px; height:0px;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input id=&quot;txtpus&quot; &amp;nbsp;type=&quot;text&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input id=&quot;txtusper&quot; type=&quot;password&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/4244864180867738663/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/4244864180867738663' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4244864180867738663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4244864180867738663'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2014/10/prevent-remember-password-disable.html' title='Prevent Remember My Password , Disable Remember My Password on brower'/><author><name>Unknown</name><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-7105980263081593263.post-6992788920026860764</id><published>2014-03-14T02:03:00.001-07:00</published><updated>2017-04-20T21:05:59.611-07:00</updated><title type='text'>How to disable filemonitoring on IIS using c# code</title><content type='html'>&lt;b&gt;add code in Global Event Application Start &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function showcodedisablefilemonitoring(aa,bb) {
var myTA = document.getElementById(aa);
var strclick = document.getElementById(bb);
if (myTA.style.display == &#39;&#39;) {
myTA.style.display = &#39;none&#39;;
strclick.innerHTML=&quot;View Code&quot;;
} else {
myTA.style.display = &#39;&#39;;
strclick.innerHTML=&quot;Hide Code&quot;;
}
}
&lt;/script&gt;
&lt;style&gt;
.tocdiv {
    background: none repeat scroll 0 0 #E4F2FD;
    border: 1px solid #D3E7F8;
    border-radius: 11px 11px 11px 11px;
    display: inline;
    float: right;
    font-size: 12px;
    margin: 0 0px 4px 8px;
    width:480px;
    padding: 10px 10px 0;
}
&lt;/style&gt;
&lt;br /&gt;
&lt;div id=&quot;textclickdisb&quot; onclick=&quot;showcode(&#39;divdisablefilemonitoring&#39;,&#39;textclickdisb&#39;)&quot; style=&quot;color: red; cursor: pointer;&quot;&gt;
View Code&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;tocdiv&quot; id=&quot;divdisablefilemonitoring&quot; style=&quot;display:none;&quot;&gt;
&lt;code&gt;-------------------------------------------------&lt;br /&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;
//FIX disable AppDomain restart when deleting subdirectory&lt;br /&gt;
&lt;br /&gt;
//This code will turn off monitoring from the root website directory.&lt;br /&gt;
&lt;br /&gt;
//Monitoring of Bin, App_Themes and other folders will still be operational, so updated DLLs will still auto deploy.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;span style=&quot;color: #444444;&quot;&gt;
System.Reflection.PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty(&quot;FileChangesMonitor&quot;, System.Reflection.BindingFlags.NonPublic | &lt;br /&gt;
System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);&lt;br /&gt;
&lt;br /&gt;
object o = p.GetValue(null, null);&lt;br /&gt;
&lt;br /&gt;
System.Reflection.FieldInfo f = o.GetType().GetField(&quot;_dirMonSubdirs&quot;, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | &lt;br /&gt;
System.Reflection.BindingFlags.IgnoreCase);&lt;br /&gt;
&lt;br /&gt;
object monitor = f.GetValue(o); //Returns NULL&lt;br /&gt;
&lt;br /&gt;
System.Reflection.MethodInfo m = monitor.GetType().GetMethod(&quot;StopMonitoring&quot;, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); m.Invoke(monitor, new object[] { }); &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------&lt;/code&gt;&lt;/div&gt;
ที่มา :- &amp;nbsp;&lt;a href=&quot;http://www.narisa.com/forums/index.php?showtopic=27585&quot;&gt;http://www.narisa.com/forums/index.php?showtopic=27585&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
-&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/3610240/how-to-disable-filemonitoring-on-iis-using-c-sharp-code&quot;&gt;http://stackoverflow.com/questions/3610240/how-to-disable-filemonitoring-on-iis-using-c-sharp-code&lt;/a&gt;&lt;br /&gt;
-&amp;nbsp;&lt;a href=&quot;http://www.ruxcom.com/aspnet-session-lost&quot;&gt;http://www.ruxcom.com/aspnet-session-lost&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/6992788920026860764/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/6992788920026860764' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6992788920026860764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6992788920026860764'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2014/03/how-to-disable-filemonitoring-on-iis.html' title='How to disable filemonitoring on IIS using c# code'/><author><name>Unknown</name><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-7105980263081593263.post-4728764404934822424</id><published>2013-07-30T01:02:00.001-07:00</published><updated>2013-07-30T01:02:06.476-07:00</updated><title type='text'>ตัวอย่าง jquery waiting</title><content type='html'>&lt;a href=&quot;http://trentrichardson.com/examples/jQuery-Waiting/&quot;&gt;http://trentrichardson.com/examples/jQuery-Waiting/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;ตัวอย่าง jquery waiting</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/4728764404934822424/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/4728764404934822424' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4728764404934822424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4728764404934822424'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2013/07/jquery-waiting.html' title='ตัวอย่าง jquery waiting'/><author><name>Unknown</name><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-7105980263081593263.post-4473341722174034845</id><published>2012-06-20T20:35:00.000-07:00</published><updated>2012-06-20T20:35:08.565-07:00</updated><title type='text'>เรื่องของ การGetUser</title><content type='html'>&lt;br /&gt;
&#39;***********&lt;br /&gt;
Function getuser()&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Response.Buffer = True : &amp;nbsp;Response.Clear&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;IF (Len(Request.ServerVariables(&quot;LOGON_USER&quot;)) &amp;lt;&amp;gt; 0 ) then&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;strLogon = Right(Request.ServerVariables(&quot;LOGON_USER&quot;),Len(Request.ServerVariables(&quot;LOGON_USER&quot;))-InStr(Request.ServerVariables(&quot;LOGON_USER&quot;),&quot;\&quot;))&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;response.Write uCase(strLogon)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Else&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Response.Status = &quot;401 Unauthorized&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Response.Write(&quot;System.UnauthorizedAccess Exception: Error Access is denied.&quot;)&amp;amp;&quot;&amp;lt;br&amp;gt;&quot;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;response.write Response.Status&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;response.End()&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;End IF&lt;br /&gt;
End Function&lt;br /&gt;
&lt;br /&gt;
http://www.mail-archive.com/activeserverpages@list.15seconds.com/msg00493.html&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/4473341722174034845/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/4473341722174034845' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4473341722174034845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4473341722174034845'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2012/06/getuser.html' title='เรื่องของ การGetUser'/><author><name>Unknown</name><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-7105980263081593263.post-6714267585703633048</id><published>2012-06-20T19:07:00.001-07:00</published><updated>2012-06-20T19:07:52.726-07:00</updated><title type='text'>ดูราคาทองคำกันหน่อยเนอะ</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;140&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://www.thaigold2.info/Board/../RealTimeDataV2/GTfairprice.php&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/6714267585703633048/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/6714267585703633048' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6714267585703633048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6714267585703633048'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2012/06/blog-post.html' title='ดูราคาทองคำกันหน่อยเนอะ'/><author><name>Unknown</name><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-7105980263081593263.post-4638211986720634619</id><published>2012-06-14T07:14:00.000-07:00</published><updated>2014-03-14T02:07:43.045-07:00</updated><title type='text'>ติดตั้ง IIS 7 Windows 7</title><content type='html'>ขอนำเสนอการติดตั้ง IIS 7 บน windows 7 แบบ step by step&lt;br /&gt;
1.Start &amp;gt;&amp;gt;control Panel &amp;gt;&amp;gt;Programs and Features&lt;br /&gt;
2.เลือกเมนู Turn Windows features on or off ทางฝั่งซ้ายมือ จะมีหน้าต่างขึ้นมา&lt;br /&gt;
3.set ในส่วนของ Internet Information Services ตามรูปด้านล้างเลยคับ แล้วกดปุ่ม ok&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_5Tx_8tiK0mHqPbqg2IPslbTLx-sbpqugtW6kLd7rTIfsx96VrSvh6aciRyl1ebHT4mCc7tmwpJjXeOHu7qfXce-0sFzLnyzGXWo_JmMl5SKtXorMZmyehloe_rudZ8wL7LVaYbTOdkWF/s1600/setIIS+windows7.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_5Tx_8tiK0mHqPbqg2IPslbTLx-sbpqugtW6kLd7rTIfsx96VrSvh6aciRyl1ebHT4mCc7tmwpJjXeOHu7qfXce-0sFzLnyzGXWo_JmMl5SKtXorMZmyehloe_rudZ8wL7LVaYbTOdkWF/s640/setIIS+windows7.png&quot; height=&quot;640&quot; width=&quot;264&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: red; text-align: left;&quot;&gt;
หายเหตุ: ไม่ต้องเลือก IIS 6 Management Console นะครับ ในรูปผิด&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4. หลังจากนั้นระบบจะดำเนินการติดตั้ง IIS7 ให้&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5. ทดสอบรัน webservice โดยเปิด IE แล้วพิมพ์ &amp;nbsp;http://localhost/ แล้วกด enter จะได้ดังรูป&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0bPDTLmHs6dbAZKe-NYAXjgt_HbalAG3ALZNbSbPoCVcTkDFa7EHOu73sHsjdPvKtwJ6xqradqj-lY-FdzOFU-z8ykuaSRbBXaH79VPAXGqpxXanX0SQ_oljllbeKYTiLn_N6uf75Q_BL/s1600/Capture.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0bPDTLmHs6dbAZKe-NYAXjgt_HbalAG3ALZNbSbPoCVcTkDFa7EHOu73sHsjdPvKtwJ6xqradqj-lY-FdzOFU-z8ykuaSRbBXaH79VPAXGqpxXanX0SQ_oljllbeKYTiLn_N6uf75Q_BL/s400/Capture.PNG&quot; height=&quot;298&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
หากต้องการให้เพื่อนคุณเข้ามาใช้เว็บในเครื่องผ่าน IPAddress ก็สามารถทำได้ โดยเปิด IE แล้วพิมพ์ &amp;nbsp;http://IPAddress/ แล้วกด enter [เช่น http://192.168.0.15/] ก็จะขึ้นเหมือนกัน&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
หากเครื่องคุณทำการปิด Firewall ไว้ เครื่องอื่นอาจจะเข้าไม่ได้ให้ทำการปิดหรือ เปิดสิทธิ์ให้เข้าถึงได้ก่อนครับ&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/4638211986720634619/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/4638211986720634619' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4638211986720634619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4638211986720634619'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2012/06/iis-7-windows-7.html' title='ติดตั้ง IIS 7 Windows 7'/><author><name>Unknown</name><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_5Tx_8tiK0mHqPbqg2IPslbTLx-sbpqugtW6kLd7rTIfsx96VrSvh6aciRyl1ebHT4mCc7tmwpJjXeOHu7qfXce-0sFzLnyzGXWo_JmMl5SKtXorMZmyehloe_rudZ8wL7LVaYbTOdkWF/s72-c/setIIS+windows7.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7105980263081593263.post-5515267833213290060</id><published>2012-06-07T23:50:00.000-07:00</published><updated>2012-06-08T00:22:15.955-07:00</updated><title type='text'>Css Style ไล่สีพื้นหลัง ใช้ได้กับ Background หน้าเว็บ และButton</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
ตัวอย่างการกำหนดให้&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbYQnT_7EN6XIWc_fNaxGqqhHjWK_91CMch7uoOV0yQxIAUujQuQ2Sa97hLaiYnLMHMguQkcYsuZzDVyzbmV-k9neGG978-jaHnYh41sWahErSFA0KI2jG8okGqBoWgCb1APZoZRsQMYD5/s1600/%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbYQnT_7EN6XIWc_fNaxGqqhHjWK_91CMch7uoOV0yQxIAUujQuQ2Sa97hLaiYnLMHMguQkcYsuZzDVyzbmV-k9neGG978-jaHnYh41sWahErSFA0KI2jG8okGqBoWgCb1APZoZRsQMYD5/s400/%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;สีพื้นหลังดังตัวอย่างจาก css ทำได้ดังนี้(คลิก View Codeเพื่อดู style ครับ)&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function showcode(aa,bb) {
var myTA = document.getElementById(aa);
var strclick = document.getElementById(bb);
if (myTA.style.display == &#39;&#39;) {
myTA.style.display = &#39;none&#39;;
strclick.innerHTML=&quot;View Code&quot;;
} else {
myTA.style.display = &#39;&#39;;
strclick.innerHTML=&quot;Hide Code&quot;;
}
}
&lt;/script&gt;&lt;style&gt;
.tocdiv {
    background: none repeat scroll 0 0 #E4F2FD;
    border: 1px solid #D3E7F8;
    border-radius: 11px 11px 11px 11px;
    display: inline;
    float: right;
    font-size: 12px;
    margin: 0 0px 4px 8px;
    width:480px;
    padding: 10px 10px 0;
}
&lt;/style&gt;&lt;br /&gt;
&lt;div id=&quot;textclickstrmoney&quot; onclick=&quot;showcode(&#39;divcodestrmoney&#39;,&#39;textclickstrmoney&#39;)&quot; style=&quot;color: red; cursor: pointer;&quot;&gt;
View Code&lt;/div&gt;
&lt;div class=&quot;tocdiv&quot; id=&quot;divcodestrmoney&quot; style=&quot;display: none;&quot;&gt;
&lt;code&gt;----------------------------------------------------------&lt;br /&gt;

&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;
  .div-frm&lt;br /&gt;
  {&lt;br /&gt;
  text-align:center;vertical-align : middle; display : table-cell;&lt;br /&gt;
  background-image:-webkit-gradient(linear,left top,left bottom,from( #ffffff ),to( #5dafd3 )); &lt;br /&gt;
  background-image:-webkit-linear-gradient( #ffffff,#5dafd3 );&lt;br /&gt;
  background-image:   -moz-linear-gradient( #ffffff,#5dafd3 ); &lt;br /&gt;
  background-image:    -ms-linear-gradient( #ffffff,#5dafd3 ); &lt;br /&gt;
  background-image:     -o-linear-gradient( #ffffff,#5dafd3 ); &lt;br /&gt;
  background-image:        linear-gradient( #ffffff,#5dafd3 );&lt;br /&gt;
  }&lt;br /&gt;
  .new-Button{&lt;br /&gt;
  width:150px;&lt;br /&gt;
  height:70px;&lt;br /&gt;
  border-radius:10px; &lt;br /&gt;
  text-align:center;&lt;br /&gt;
  vertical-align : middle; &lt;br /&gt;
  font-size:14px;&lt;br /&gt;
  margin:7px;&lt;br /&gt;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;&lt;br /&gt;
  }&lt;br /&gt;
  .new-Button:hover{&lt;br /&gt;
  box-shadow: 0 0 12px #387BBE;&lt;br /&gt;
  text-shadow: 0 1px 0 #fdf581;&lt;br /&gt;
  font-size:16px;&lt;br /&gt;
  font-weight:bold;&lt;br /&gt;
  }&lt;br /&gt;
  .div-style-button{&lt;br /&gt;
  text-shadow: 0 1px 0 #FFFFFF;&lt;br /&gt;
  border-radius: 10px;&lt;br /&gt;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;&lt;br /&gt;
  }&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;
.div-style-button:hover{&lt;br /&gt;
  text-shadow: 0 1px 0 #FFFFFF;&lt;br /&gt;
  border-radius: 10px;&lt;br /&gt;
  margin:7px;&lt;br /&gt;
  box-shadow: 0 0 12px #387BBE;&lt;br /&gt;
  }&lt;br /&gt;

&amp;lt;/style&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&quot;div-frm&quot; style=&quot;width:300px; height:400px;&quot;&amp;gt;ตัวอย่าง1&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&quot;submit&quot; id=&quot;buttom&quot; class=&quot;div-frm new-Button&quot; value=&quot;ตัวอย่าง2&quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&quot;div-frm div-style-button&quot; style=&quot;width:100px; height:80px;&quot;&amp;gt;ตัวอย่าง3&amp;lt;/div&amp;gt;&lt;br /&gt;

&lt;code&gt;
------------------------------------------------&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code&gt;
&lt;style type=&quot;text/css&quot;&gt;
.div-frm
{
 text-align:center;vertical-align : middle; display : table-cell;
    background-image:-webkit-gradient(linear,left top,left bottom,from( #ffffff ),to( #5dafd3 )); 
    background-image:-webkit-linear-gradient( #ffffff,#5dafd3 );
    background-image:   -moz-linear-gradient( #ffffff,#5dafd3 ); 
    background-image:    -ms-linear-gradient( #ffffff,#5dafd3 ); 
    background-image:     -o-linear-gradient( #ffffff,#5dafd3 ); 
    background-image:        linear-gradient( #ffffff,#5dafd3 );
}
.new-Button{
 width:150px;
 height:70px;
 border-radius:10px; 
 text-align:center;
    vertical-align : middle; 
 font-size:14px;
 margin:7px;
 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;
}
.new-Button:hover{
 box-shadow: 0 0 12px #387BBE;
    text-shadow: 0 1px 0 #fdf581;
 font-size:16px;
 font-weight:bold;
}
.div-style-button{
 text-shadow: 0 1px 0 #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;
}

.div-style-button:hover{
 text-shadow: 0 1px 0 #FFFFFF;
    border-radius: 10px;
    margin:7px;
    box-shadow: 0 0 12px #387BBE;
}
&lt;/style&gt;
&lt;br /&gt;ผลที่ได้จาก code ตัวอย่างครับด้านล้างคับ
&lt;/code&gt;&lt;br /&gt;
&lt;div class=&quot;div-frm&quot; style=&quot;height: 400px; width: 300px;&quot;&gt;
&lt;code&gt;ตัวอย่าง1&lt;/code&gt;&lt;/div&gt;
&lt;code&gt;
&lt;input class=&quot;div-frm new-Button&quot; id=&quot;buttom&quot; type=&quot;submit&quot; value=&quot;ตัวอย่าง2&quot; /&gt;
&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;div class=&quot;div-frm div-style-button&quot; style=&quot;height: 80px; width: 100px;&quot;&gt;
&lt;code&gt;ตัวอย่าง3&lt;/code&gt;&lt;/div&gt;
&lt;code&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
การใส่สีพื้นหลังแบบ Linear-Gradient อาจจะเป็นเรื่องยากสำหรับบ้างท่าน แต่ก็มีตัวช่วยเว็บตามลิ้งเลยคับ&lt;br /&gt;
&lt;a href=&quot;http://jquerymobile.com/themeroller/index.php&quot;&gt;http://jquerymobile.com/themeroller/index.php&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj4ph4QeOGrtCMmx45aikQSq8NWI-yjoW442y_Ts9gqrJ3UBHct7uDww-hbwKvUu9qI5Cz9kI-PAXDRt_Qnhkx-6xIBhzyf5vcZLcXni3MWalwM5C6VAej6cTbSyGEQJQc0hwloMxj9gH9/s1600/%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%872.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj4ph4QeOGrtCMmx45aikQSq8NWI-yjoW442y_Ts9gqrJ3UBHct7uDww-hbwKvUu9qI5Cz9kI-PAXDRt_Qnhkx-6xIBhzyf5vcZLcXni3MWalwM5C6VAej6cTbSyGEQJQc0hwloMxj9gH9/s1600/%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%872.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
ตรงช่อง start และ End&lt;br /&gt;
&lt;br /&gt;
text-align:center;vertical-align : middle; display : table-cell;&lt;br /&gt;
background-image:-webkit-gradient(linear,left top,left bottom,from( #ffffff ),to( #5dafd3 ));&lt;br /&gt;
background-image:-webkit-linear-gradient( #ffffff,#5dafd3 );&lt;br /&gt;
background-image: -moz-linear-gradient( #ffffff,#5dafd3 );&lt;br /&gt;
background-image: -ms-linear-gradient( #ffffff,#5dafd3 );&lt;br /&gt;
background-image: -o-linear-gradient( #ffffff,#5dafd3 );&lt;br /&gt;
background-image: linear-gradient( #ffffff,#5dafd3 );&lt;br /&gt;
&lt;br /&gt;
แสดงได้ทั้ง IE , Chome, FireFox&lt;br /&gt;
ขอจบแค่นี้ก่อนจะเอาสิ่งดีๆมาเก็บไว้ใหม่คับ&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/5515267833213290060/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/5515267833213290060' title='2 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/5515267833213290060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/5515267833213290060'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2012/06/css-style-background-button.html' title='Css Style ไล่สีพื้นหลัง ใช้ได้กับ Background หน้าเว็บ และButton'/><author><name>Unknown</name><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbYQnT_7EN6XIWc_fNaxGqqhHjWK_91CMch7uoOV0yQxIAUujQuQ2Sa97hLaiYnLMHMguQkcYsuZzDVyzbmV-k9neGG978-jaHnYh41sWahErSFA0KI2jG8okGqBoWgCb1APZoZRsQMYD5/s72-c/%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87.PNG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7105980263081593263.post-2370455315161341204</id><published>2011-11-03T19:51:00.000-07:00</published><updated>2012-06-14T07:15:46.471-07:00</updated><title type='text'>การกำหนด choice User Logon in windows</title><content type='html'>สถานการณ์มีอยู่ว่า ในเครื่องserver เราจะมีการกำหนดสิทธิ์ให้กับ User Remote Desktop ให้กับหลายๆคน แต่ละคนก็จะมีสิทธ์ ทำงานได้ตามสิทธิ์ และถ้ามีการกำหนด User ไว้เยอะๆๆ เวลาที่เราจะเข้ามาใช้งาน ที่หน้าserver จริง สิ่งที่เราเห็นคือ User ทั้งหลายทั้งปวงที่เราสร้างไว้จะแสดงเต็มจอเพื่อให้เราเลือกเข้าใช้ แต่เราซึ่งเป็น Admin หลักอยากเห็นแค่ User 1 คนในหน้านั้นเท่านั้น และอยากจะป้องกันไม่ให้ User คนอื่นๆ เข้ามาlogin ที่หน้าเครื่อง server มีวิธีการกำหนดสิทธิ์ดังนี้คับ&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGWKm8pGioUIHKsNChqO7FDNHdZ_Ltbnq0h1KfUja8i887tLUgZ4-7cBCspkFqrL6YztYU4NfnnUyIl_cncMEjfnxYTt4YowZwBSZFfE7wAeeCv-QEcQCMW87Q_81lGd7X9wFjni57y3lB/s400/Remote+Desktop+Licence.jpg&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;รูปการเปิดสิทธิ์ให้ทำการ Remote Desktop ผ่านเครื่องอื่น&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpAn0E2zA2HWCkhgZ42G8BQWi5Xg0WBeq4ArYelqWblA8FkeeUitOwZbAgEwdvx5-5Ijmrmdj4rOKF5w91WY7BRp_imYShR7Spb55tmGqgnWF4dmZSsBOpcosSScyDax4-pX_XhyBFL-uO/s400/Deny+log+on+locally.jpg&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOBXeTcp9wWd8R0mIvUCN6Hk4XQ5u3zVJrBiT85WgMJmfcESE6keb4nraFKwVmV_KkU91kl2lP5KB-_mjGIKcDCwegUkg3t-8m3d1JYXOSoIq25VGoHQO90Z6_QWdT5-ETZxSk-qVMqKYr/s1600/AddUser.png&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ทำการเพิ่ม User อื่น ที่ไม่ใช่ Admin เข้าไป แค่นี้เราก็จะไม่ตาลายกับ User อื่นที่เราสร้างไว้ และยังป้องกันการเข้าใช้เครื่องผ่าน Userอื่นที่ไม่ใช้adminด้วยคับ</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/2370455315161341204/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/2370455315161341204' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/2370455315161341204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/2370455315161341204'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/11/choice-user-logon-in-windows.html' title='การกำหนด choice User Logon in windows'/><author><name>Unknown</name><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGWKm8pGioUIHKsNChqO7FDNHdZ_Ltbnq0h1KfUja8i887tLUgZ4-7cBCspkFqrL6YztYU4NfnnUyIl_cncMEjfnxYTt4YowZwBSZFfE7wAeeCv-QEcQCMW87Q_81lGd7X9wFjni57y3lB/s72-c/Remote+Desktop+Licence.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Thailand</georss:featurename><georss:point>13.752724904193114 100.54687462499999</georss:point><georss:box>6.3265469041931137 96.400166624999983 21.178902904193116 104.69358262499999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7105980263081593263.post-1127933634559247181</id><published>2011-10-10T19:23:00.000-07:00</published><updated>2011-10-10T21:56:02.505-07:00</updated><title type='text'>คำสั่งขยับ index ของKey AutoGenID ที่เป็น Integer หรือlong ใน SQLSERVER</title><content type='html'>DBCC CHECKIDENT (TableName, RESEED, 50000)&lt;br /&gt;
&lt;br /&gt;
หมายเหตุ ก่อนทำการrun คำสั่ง ต้องเปลี่ยน Key ที่เป้น Autogen ออก ก่อนจึงจะรันคำสั่งได้</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/1127933634559247181/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/1127933634559247181' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1127933634559247181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1127933634559247181'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/10/index-key-autogenid-integer-long.html' title='คำสั่งขยับ index ของKey AutoGenID ที่เป็น Integer หรือlong ใน SQLSERVER'/><author><name>Unknown</name><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-7105980263081593263.post-4611477470656554116</id><published>2011-07-25T19:07:00.000-07:00</published><updated>2017-11-16T20:22:25.754-08:00</updated><title type='text'>คำสั่ง ดูรายงานข้อมูลในฐานข้อมูล Sqlserver</title><content type='html'>เนื่องจากระบบที่ผมดูแลอยู่มานาน ฐานข้อมูลเริ่มใหญ่ขึ้นเรื่อยจึงอยากทราบว่ามีตารางไหนบ้างที่มีจำนวน recode เยอะ มากจะได้clear โดยมีคำสั่งดังนี้&lt;br /&gt;
&lt;br /&gt;
SELECT &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [TableName] = so.name, &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [RowCount] = MAX(si.rows) &lt;br /&gt;
FROM &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sysobjects so, &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sysindexes si &lt;br /&gt;
WHERE &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; so.xtype = &#39;U&#39; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; AND &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; si.id = OBJECT_ID(so.name) &lt;br /&gt;
GROUP BY &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; so.name &lt;br /&gt;
ORDER BY &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 DESC

&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check Query use CPU Time&lt;br /&gt;
&amp;lt;ที่มา:https://stackoverflow.com/questions/945063/how-do-i-find-out-what-is-hammering-my-sql-server&amp;gt;&lt;br /&gt;&lt;br /&gt;
SELECT TOP 20&lt;br /&gt;
&amp;nbsp; &amp;nbsp; qs.sql_handle,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; qs.execution_count,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; qs.total_worker_time AS Total_CPU,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; total_CPU_inSeconds = --Converted from microseconds&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qs.total_worker_time/1000000,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; average_CPU_inSeconds = --Converted from microseconds&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (qs.total_worker_time/1000000) / qs.execution_count,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; qs.total_elapsed_time,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; total_elapsed_time_inSeconds = --Converted from microseconds&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qs.total_elapsed_time/1000000,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; st.text,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; qp.query_plan&lt;br /&gt;
FROM&lt;br /&gt;
&amp;nbsp; &amp;nbsp; sys.dm_exec_query_stats AS qs&lt;br /&gt;
CROSS APPLY&lt;br /&gt;
&amp;nbsp; &amp;nbsp; sys.dm_exec_sql_text(qs.sql_handle) AS st&lt;br /&gt;
CROSS APPLY&lt;br /&gt;
&amp;nbsp; &amp;nbsp; sys.dm_exec_query_plan (qs.plan_handle) AS qp&lt;br /&gt;
ORDER BY&lt;br /&gt;
&amp;nbsp; &amp;nbsp; qs.total_worker_time DESC</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/4611477470656554116/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/4611477470656554116' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4611477470656554116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/4611477470656554116'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/07/sqlserver.html' title='คำสั่ง ดูรายงานข้อมูลในฐานข้อมูล Sqlserver'/><author><name>Unknown</name><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-7105980263081593263.post-8413539327021942363</id><published>2011-05-25T21:03:00.000-07:00</published><updated>2011-05-25T21:03:38.387-07:00</updated><title type='text'>สูตรเกี่ยวกับบุคลิกของตัวเองที่ควรไปจะคู่ กับสูตรสุขภาพมีอย่างนี้</title><content type='html'>&lt;div style=&quot;color: blue;&quot;&gt;สูตรเกี่ยวกับบุคลิกของตัวเองที่ควรไปจะคู่ กับสูตรสุขภาพมีอย่างนี้&lt;/div&gt;&lt;br /&gt;
๑. อย่าเปรียบเทียบ ชีวิตของตัว เองกับคนอื่น คุณไม่รู้หรอกว่าคนที่คุณอิจฉานั้นเขา มีความทุกข์ยิ่งกว่าคุณอย่างไรบ้าง&lt;br /&gt;
๒. อย่าคิดทางลบ เกี่ยวกับ เรื่องที่คุณควบคุมหรือกำหนดไม่ได้ แทนที่จะมองโลก ในแง่ร้าย , ก็ทุ่มเทกำลังและพลังงานให้กับความคิด ทางบวก ณ ปัจจุบันเสีย&lt;br /&gt;
๓. อย่าทำอะไร เกินกว่าที่ตัวเองทำได้ ...รู้ว่าขีดจำกัดของตัวเองอยู่ที่ไหน&lt;br /&gt;
๔.. อย่าเอา จริงเอาจังกับตัวเองนัก เพราะคนอื่นเขา ไม่ได้ซีเรียสกับคุณเท่าไหร่หรอก&lt;br /&gt;
๕. อย่า เสียเวลา และพลังงานอันมีค่าของคุณ กับ เรื่องหยุมหยิม หรือเรื่องซุบซิบ....นอกเสียจากว่ามันจะทำให้คุณ ผ่อนคลายได้อย่างจริงจัง&lt;br /&gt;
๖. จงฝันตอนตื่น มากกว่าตอน หลับ&lt;br /&gt;
๗. ความ รู้สึกอิจฉาริษยาเป็นเรื่องเสียเวลาเปล่า ๆ ปลี้ ๆ...คิดให้ดีก็จะรู้ว่าคุณมีทุกอย่างที่คุณจำเป็นต้องมีแล้ว&lt;br /&gt;
๘. ลืมเรื่อง ขัดแย้งในอดีตเสีย และอย่าได้เตือนสามี หรือภรรยาคุณเกี่ยวกับความผิดพลาดในอดีตของอีกฝ่ายหนึ่งเลย เพราะมันจะทำลายความสุขปัจจุบันของคุณ&lt;br /&gt;
๙. ชีวิตนี้สั้นเกินกว่าที่เราจะไปโกรธเกลียดใคร... จงอย่าเกลียดคนอื่น&lt;br /&gt;
๑๐.ประกาศ สงบศึกกับอดีตให้สิ้น , จะได้ไม่ทำลายปัจจุบันของคุณ&lt;br /&gt;
๑๑.ไม่มีใครกำหนดความสุขของคุณได้นอกจากคุณเอง&lt;br /&gt;
๑๒.จง เข้าใจเสียว่า ชีวิตก็คือโรงเรียน คุณมาเพื่อเรียน รู้ และ ปัญหาเป็น เพียง ส่วนหนึ่งของหลักสูตร ซึ่งมาแล้วก็หาย ไป...เหมือนโจทย์วิชาพีชคณิต...แต่สิ่งที่คุณเรีย?รู้นั้นอยู่กับคุณตลอด ชีวิต&lt;br /&gt;
๑๓. จง ยิ้มและหัวเราะมากขึ้น&lt;br /&gt;
๑๔. คุณ ไม่จำเป็นต้องชนะทุกครั้งที่ถก เถียงกับคนอื่น หรอก...บางครั้งก็ยอมรับว่าเราเห็นแตกต่างกัน ได้...&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;เห็นพ้องที่จะเห็นต่างก็ไม่เห็นเสียหายแต่อย่างไร&lt;br /&gt;
แล้ว เราควรจะมีทัศนคติอย่างไรต่อชุมชนและคนรอบข้าง เราล่ะ ?&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
๑. อย่าลืมโทรฯหาครอบครัวบ่อย ๆ&lt;br /&gt;
๒. จงหาอะไรดี ๆ ให้คนอื่นทุกวัน&lt;br /&gt;
๓. จงให้อภัยทุกคนสำหรับทุกอย่าง&lt;br /&gt;
๔. จงหาเวลาอยู่กับคนอายุเกิน 70 และต่ำกว่า 6 ขวบ&lt;br /&gt;
๕. พยายามทำให้อย่างน้อย 3 คนยิ้มได้ทุกวัน&lt;br /&gt;
๖. คนอื่นเขาคิดอย่างไรกับคุณไม่ใช่ เรื่องของคุณสัก หน่อย&lt;br /&gt;
๗. งานของคุณไม่ดูแลคุณตอนคุณป่วยหรอก แต่ครอบครัวและเพื่อนคุณต่างหากเล่าที่จะดูแลคุณในยามคุณมีปัญหา สุขภาพ&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #660000;&quot;&gt;&lt;b&gt;ดังนั้น , อย่าได้ห่างเหินกับคนใกล้ชิดเป็น อันขาด&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: #660000;&quot;&gt;&lt;b&gt;และ ถ้าหากสามารถดำรงชีวิตให้มีความหมายได้ , ก็ควรจะทำ ดังต่อไปนี้&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
๑. ทำสิ่งที่ควรทำ&lt;br /&gt;
๒. อะไรที่ไม่เป็นประโยชน์ , ไม่สวย , ไม่น่ารื่นรมย์ , จงทิ้ง ไปเสีย...เก็บไว้ทำไม ?&lt;br /&gt;
๓. เวลาและพระเจ้าย่อมรักษาแผล ทุกอย่างได้&lt;br /&gt;
๔. ไม่ว่าสถานการณ์จะดีหรือเลวปานใด , เดี๋ยว มันก็เปลี่ยน&lt;br /&gt;
๕. ไม่ว่าคุณจะรู้สึกอย่างไรในตอนเช้าของทุกวัน , จงลุก จากเตียง , แต่ง ตัวและปรากฎตัวต่อหน้าคนที่เราร่วมงาน ด้วย... get up, dress up and show up.&lt;br /&gt;
๖. สิ่งที่ดีที่สุดยังมาไม่ถึง&lt;br /&gt;
๗. ถ้าคุณยังลุกขึ้นตอนเช้าได้ , อย่าลืมขอบคุณพระเจ้า หรือสิ่ง ศักดิ์สิทธิ์ที่คุณนับถือเสียด้วย&lt;br /&gt;
๘. เชื่อเถอะว่าส่วนลึก ๆ ในใจของคุณนั้นมีความสุข เสมอ...ดังนั้น , ส่วนนอกของคุณทุกข์โศกไปทำไมเล่า&lt;br /&gt;
&lt;br /&gt;
ที่มา:ได้รับจากemailครับ&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #ff6600;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;ไดอารี่ออนไลน์ :&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;a href=&quot;http://www.iamnidnoi.com/&quot; target=&quot;_blank&quot;&gt;www.iamnidnoi.com&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/8413539327021942363/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/8413539327021942363' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/8413539327021942363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/8413539327021942363'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/05/blog-post.html' title='สูตรเกี่ยวกับบุคลิกของตัวเองที่ควรไปจะคู่ กับสูตรสุขภาพมีอย่างนี้'/><author><name>Unknown</name><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-7105980263081593263.post-1512985018427066187</id><published>2011-05-02T20:43:00.000-07:00</published><updated>2017-04-20T20:56:45.269-07:00</updated><title type='text'>VB.net การ Read &amp; Write XML file (แบบset Config)</title><content type='html'>ในการพัฒนาโปรแกรม ด้วย windows Application ต้องมีการทำ config เกี่ยวกับ Database,username,password,key ที่ผ่านมาเราอาจจะเคยเห็น โปรแกรมที่เป็น Application ใช้ file .ini, .txt และ .xml ซึ่งการ Read &amp; Write xml มีหลากหลายแบบ ผมมีตัวอย่างการ set xml อย่างง่ายมาฝากดังตัวอย่าง &lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt; &lt;br /&gt;
- &amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;lt;ServerName&amp;gt;xxx.xxx.xxx.xxx&amp;lt;/ServerName&gt;&lt;br /&gt;
&amp;lt;UserName&amp;gt;findvb&amp;lt;/UserName&amp;gt;&lt;br /&gt;
&amp;lt;Password&amp;gt;1234&amp;lt;/Password&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ขั้นตอนคือ เราจะต้องมี pathfile ของ xmlของเราก่อนโดยใน fuctionผมกำหนดไว้ที่&lt;br /&gt;
Private filename As String =&lt;span style=&quot;color:red&quot;&gt; Application.StartupPath &amp; &quot;\&quot; &amp; &quot;dataconfig.xml&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function showcode(aa,bb) {
var myTA = document.getElementById(aa);
var strclick = document.getElementById(bb);
if (myTA.style.display == &#39;&#39;) {
myTA.style.display = &#39;none&#39;;
strclick.innerHTML=&quot;View Code&quot;;
} else {
myTA.style.display = &#39;&#39;;
strclick.innerHTML=&quot;Hide Code&quot;;
}
}
&lt;/script&gt;&lt;br /&gt;
&lt;div id=&quot;textdivReadWritexml&quot; style=&quot;color:red;cursor:pointer;&quot; onclick=&quot;showcode(&#39;divReadWritexml&#39;,&#39;textdivReadWritexml&#39;)&quot;&gt;View Code&lt;/div&gt;
&lt;div id=&quot;divReadWritexml&quot; class=&quot;tocdiv&quot; style=&quot;display :none;&quot;&gt;
&lt;code&gt;-------------------------------------------------&lt;br /&gt;
Imports System.Xml&lt;br /&gt;
Imports System.Text&lt;br /&gt;
Private filename As String = Application.StartupPath &amp; &quot;\&quot; &amp; &quot;config.xml&quot;&lt;br /&gt;
Public str_Servername As String = &quot;ServerName&quot;&lt;br /&gt;
Public str_UserName As String = &quot;UserName&quot;&lt;br /&gt;
Public str_Password As String = &quot;Password&quot;&lt;br /&gt;
&lt;br /&gt;
Public Sub SetWriteXML(ByVal servername As String, ByVal username As String, ByVal pwd As String)&lt;br /&gt;
If Not IO.File.Exists(filename) Then&lt;br /&gt;
            Dim xmlText = &quot;&amp;lt;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&amp;gt;&quot; &amp; _&lt;br /&gt;
                          &quot;&amp;lt;configuration&amp;gt;&quot; &amp; _&lt;br /&gt;
                          &quot;&amp;lt;/configuration&amp;gt;&quot;&lt;br /&gt;
            Dim xmlDoc As New XmlDocument()&lt;br /&gt;
            xmlDoc.LoadXml(xmlText)&lt;br /&gt;
            xmlDoc.Save(filename)&lt;br /&gt;
        End If&lt;br /&gt;
Try&lt;br /&gt;
&#39;Create file, overwrite if exists&lt;br /&gt;
&#39;enc is encoding object required by constructor&lt;br /&gt;
&#39;It is null, so default encoding is used&lt;br /&gt;
Dim objXMLTW As New XmlTextWriter(filename, Encoding.UTF8)&lt;br /&gt;
With objXMLTW&lt;br /&gt;
.IndentChar = vbTab&lt;br /&gt;
.Indentation = 1&lt;br /&gt;
.Formatting = Formatting.Indented&lt;br /&gt;
&lt;br /&gt;
.WriteStartDocument()&lt;br /&gt;
&#39;Top level (Parent element)&lt;br /&gt;
.WriteStartElement(&quot;configuration&quot;)&lt;br /&gt;
&lt;br /&gt;
&#39;Child elements, from request form&lt;br /&gt;
.WriteElementString(str_Servername, servername)&lt;br /&gt;
.WriteElementString(str_UserName, username)&lt;br /&gt;
.WriteElementString(str_Password, pwd)&lt;br /&gt;
&lt;br /&gt;
.WriteEndElement() &#39;End top level element&lt;br /&gt;
.WriteEndDocument() &#39;End Document&lt;br /&gt;
.Flush() &#39;Write to file&lt;br /&gt;
.Close()&lt;br /&gt;
End With&lt;br /&gt;
Catch Ex As Exception&lt;br /&gt;
&lt;br /&gt;
End Try&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Public Function GetReadXML(ByVal keyName As String) As String&lt;br /&gt;
Dim getvalue As String = &quot;&quot;&lt;br /&gt;
Dim XmlDoc As XmlDocument = New XmlDocument()&lt;br /&gt;
Try&lt;br /&gt;
With XmlDoc&lt;br /&gt;
XmlDoc.Load(filename)&lt;br /&gt;
getvalue = .SelectSingleNode(&quot;configuration/&quot; &amp; keyName).InnerText()&lt;br /&gt;
XmlDoc = Nothing&lt;br /&gt;
End With&lt;br /&gt;
Catch ex As Exception&lt;br /&gt;
End Try&lt;br /&gt;
Return getvalue&lt;br /&gt;
End Function&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------&lt;/code&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/1512985018427066187/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/1512985018427066187' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1512985018427066187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1512985018427066187'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/05/vbnet-read-write-xml-file-set-config.html' title='VB.net การ Read &amp; Write XML file (แบบset Config)'/><author><name>Unknown</name><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-7105980263081593263.post-6514929019227843806</id><published>2011-04-28T02:53:00.000-07:00</published><updated>2011-04-28T02:56:48.156-07:00</updated><title type='text'>วิธีทำให้เว็บเรารันบน ie แล้วให้ compatibility ตลอด</title><content type='html'>เวลาเราเปิดเว็บบน ie แล้วให้ขึ้น compatibility view websites designed for older browsers will often look better and problems such as out-of-place&lt;br /&gt;
วิธีแก้ไขให้เราไป เพิ่ม tag ใน web.config&lt;br /&gt;
&lt;div class=&quot;tocdiv&quot;&gt;&lt;code&gt;------------------------------------------------&lt;br /&gt;
&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;httpprotocol&amp;gt;&lt;br /&gt;
&amp;lt;customheaders&amp;gt;&lt;br /&gt;
&amp;lt;clear /&amp;gt;&lt;br /&gt;
&amp;lt;add name=&quot;X-UA-Compatible&quot; value=&quot;IE=8&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/customHeaders&amp;gt;&lt;br /&gt;
&amp;lt;/httpProtocol&amp;gt;&lt;br /&gt;
&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
------------------------------------------------&lt;/code&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/6514929019227843806/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/6514929019227843806' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6514929019227843806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6514929019227843806'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/04/ie-compatibility.html' title='วิธีทำให้เว็บเรารันบน ie แล้วให้ compatibility ตลอด'/><author><name>Unknown</name><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-7105980263081593263.post-8078625603737205288</id><published>2011-04-28T00:50:00.000-07:00</published><updated>2017-04-20T20:57:20.241-07:00</updated><title type='text'>VB.net แสดงจำนวนเงินเป็นตัวหนังสือ ไทย</title><content type='html'>Function แสดงจำนวนเงินเป็นตัวหนังสือไทย&lt;br /&gt;
&lt;b&gt;ChangeToThaibathWord(&quot;523.25&quot;) = ห้าร้อยยี่สิบสามบาทยี่สิบห้าสตางค์&lt;/b&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function showcodex(aa,bb) {
var myTA = document.getElementById(aa);
var strclick = document.getElementById(bb);
if (myTA.style.display == &#39;&#39;) {
myTA.style.display = &#39;none&#39;;
strclick.innerHTML=&quot;View Code&quot;;
} else {
myTA.style.display = &#39;&#39;;
strclick.innerHTML=&quot;Hide Code&quot;;
}
}
&lt;/script&gt;&lt;style&gt;
.tocdiv {
    background: none repeat scroll 0 0 #E4F2FD;
    border: 1px solid #D3E7F8;
    border-radius: 11px 11px 11px 11px;
    display: inline;
    float: right;
    font-size: 12px;
    margin: 0 0px 4px 8px;
    width:480px;
    padding: 10px 10px 0;
}
&lt;/style&gt;&lt;br /&gt;
&lt;div id=&quot;textclickstrmoney&quot; onclick=&quot;showcodex(&#39;divcodestrmoney&#39;,&#39;textclickstrmoney&#39;)&quot; style=&quot;color: red; cursor: pointer;&quot;&gt;
View Code&lt;/div&gt;
&lt;div class=&quot;tocdiv&quot; id=&quot;divcodestrmoney&quot; style=&quot;display: none;&quot;&gt;
&lt;code&gt;----------------------------------------------------------&lt;br /&gt;
Public Function ChangeToThaibathWord(ByVal mondyValue As String) As String&lt;br /&gt;
Dim digit() As String = {&quot;เอ็ด&quot;, &quot;สิบ&quot;, &quot;ร้อย&quot;, &quot;พัน&quot;, &quot;หมื่น&quot;, &quot;แสน&quot;, &quot;ล้าน&quot;, &quot;สิบล้าน&quot;, &quot;ร้อยล้าน&quot;, &quot;พันล้าน&quot;}&lt;br /&gt;
Dim tmp() As String = mondyValue.Split(&quot;.&quot;.ToCharArray(), StringSplitOptions.RemoveEmptyEntries)&lt;br /&gt;
Dim intNumber = tmp(0).Replace(&quot;,&quot;, &quot;&quot;)&lt;br /&gt;
Dim decNumber As String&lt;br /&gt;
If (tmp.Length &amp;gt; 1) Then&lt;br /&gt;
decNumber = tmp(1)&lt;br /&gt;
Else&lt;br /&gt;
decNumber = &quot;&quot;&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
Dim result As String = &quot;&quot;&lt;br /&gt;
Dim testChar As String = &quot;&quot;&lt;br /&gt;
Dim splitChar As String = &quot;&quot;&lt;br /&gt;
&lt;br /&gt;
Dim wordLength As Integer = intNumber.Length - 1&lt;br /&gt;
For intPosition As Integer = 0 To wordLength&lt;br /&gt;
splitChar = intNumber.Substring(intPosition, 1)&lt;br /&gt;
Select Case splitChar&lt;br /&gt;
Case &quot;0&quot; : testChar = &quot;&quot;&lt;br /&gt;
Case &quot;1&quot; : testChar = &quot;หนึ่ง&quot;&lt;br /&gt;
Case &quot;2&quot; : testChar = &quot;สอง&quot;&lt;br /&gt;
Case &quot;3&quot; : testChar = &quot;สาม&quot;&lt;br /&gt;
Case &quot;4&quot; : testChar = &quot;สี่&quot;&lt;br /&gt;
Case &quot;5&quot; : testChar = &quot;ห้า&quot;&lt;br /&gt;
Case &quot;6&quot; : testChar = &quot;หก&quot;&lt;br /&gt;
Case &quot;7&quot; : testChar = &quot;เจ็ด&quot;&lt;br /&gt;
Case &quot;8&quot; : testChar = &quot;แปด&quot;&lt;br /&gt;
Case &quot;9&quot; : testChar = &quot;เก้า&quot;&lt;br /&gt;
End Select&lt;br /&gt;
&lt;br /&gt;
Select Case (wordLength - intPosition)&lt;br /&gt;
Case 0&lt;br /&gt;
If (splitChar = &quot;1&quot;) Then&lt;br /&gt;
If (wordLength = 0) Then&lt;br /&gt;
result = result &amp;amp; testChar&lt;br /&gt;
Else&lt;br /&gt;
result = result &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
End If&lt;br /&gt;
Else&lt;br /&gt;
result = result &amp;amp; testChar&lt;br /&gt;
End If&lt;br /&gt;
Case 1&lt;br /&gt;
Select Case splitChar&lt;br /&gt;
Case &quot;0&quot;&lt;br /&gt;
Case &quot;1&quot;&lt;br /&gt;
result = result &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
Case &quot;2&quot;&lt;br /&gt;
testChar = &quot;ยี่&quot;&lt;br /&gt;
result = result &amp;amp; testChar &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
Case Else&lt;br /&gt;
result = result &amp;amp; testChar &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
End Select&lt;br /&gt;
Case Else&lt;br /&gt;
Select Case splitChar&lt;br /&gt;
Case &quot;0&quot;&lt;br /&gt;
Case Else&lt;br /&gt;
result = result &amp;amp; testChar &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
End Select&lt;br /&gt;
End Select&lt;br /&gt;
&lt;br /&gt;
Next&lt;br /&gt;
result = result &amp;amp; &quot;บาท&quot;&lt;br /&gt;
&lt;br /&gt;
Dim stang As String = &quot;&quot;&lt;br /&gt;
If (decNumber.Length &amp;gt; 0) Then&lt;br /&gt;
wordLength = decNumber.Length - 1&lt;br /&gt;
For intPosition As Integer = 0 To wordLength&lt;br /&gt;
splitChar = decNumber.Substring(intPosition, 1)&lt;br /&gt;
Select Case splitChar&lt;br /&gt;
Case &quot;0&quot; : testChar = &quot;&quot;&lt;br /&gt;
Case &quot;1&quot; : testChar = &quot;หนึ่ง&quot;&lt;br /&gt;
Case &quot;2&quot; : testChar = &quot;สอง&quot;&lt;br /&gt;
Case &quot;3&quot; : testChar = &quot;สาม&quot;&lt;br /&gt;
Case &quot;4&quot; : testChar = &quot;สี่&quot;&lt;br /&gt;
Case &quot;5&quot; : testChar = &quot;ห้า&quot;&lt;br /&gt;
Case &quot;6&quot; : testChar = &quot;หก&quot;&lt;br /&gt;
Case &quot;7&quot; : testChar = &quot;เจ็ด&quot;&lt;br /&gt;
Case &quot;8&quot; : testChar = &quot;แปด&quot;&lt;br /&gt;
Case &quot;9&quot; : testChar = &quot;เก้า&quot;&lt;br /&gt;
End Select&lt;br /&gt;
&lt;br /&gt;
Select Case (wordLength - intPosition)&lt;br /&gt;
Case 0&lt;br /&gt;
If (splitChar = &quot;1&quot;) Then&lt;br /&gt;
If (wordLength = 0) Then&lt;br /&gt;
stang = stang &amp;amp; testChar&lt;br /&gt;
Else&lt;br /&gt;
stang = stang &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
End If&lt;br /&gt;
Else&lt;br /&gt;
stang = stang &amp;amp; testChar&lt;br /&gt;
End If&lt;br /&gt;
Case 1&lt;br /&gt;
Select Case splitChar&lt;br /&gt;
Case &quot;0&quot;&lt;br /&gt;
Case &quot;1&quot;&lt;br /&gt;
stang = stang &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
Case &quot;2&quot;&lt;br /&gt;
testChar = &quot;ยี่&quot;&lt;br /&gt;
stang = stang &amp;amp; testChar &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
Case Else&lt;br /&gt;
stang = stang &amp;amp; testChar &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
End Select&lt;br /&gt;
Case Else&lt;br /&gt;
Select Case splitChar&lt;br /&gt;
Case &quot;0&quot;&lt;br /&gt;
Case Else&lt;br /&gt;
stang = stang &amp;amp; testChar &amp;amp; digit(wordLength - intPosition)&lt;br /&gt;
End Select&lt;br /&gt;
End Select&lt;br /&gt;
&lt;br /&gt;
Next&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
If (stang.Trim().Length &amp;gt; 0) Then&lt;br /&gt;
stang = stang &amp;amp; &quot;สตางค์&quot;&lt;br /&gt;
Else&lt;br /&gt;
stang = &quot;ถ้วน&quot;&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
result = result &amp;amp; stang&lt;br /&gt;
&lt;br /&gt;
Return result&lt;br /&gt;
End Function&lt;br /&gt;
------------------------------------------------&lt;/code&gt;&lt;/div&gt;
&lt;br/&gt;
หวังว่าคงเป็นประโยชน์นะครับ</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/8078625603737205288/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/8078625603737205288' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/8078625603737205288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/8078625603737205288'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/04/vbnet.html' title='VB.net แสดงจำนวนเงินเป็นตัวหนังสือ ไทย'/><author><name>Unknown</name><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-7105980263081593263.post-6193362294062068419</id><published>2011-04-28T00:21:00.000-07:00</published><updated>2011-04-28T01:42:29.440-07:00</updated><title type='text'>คู่มือการติดตั้งโปรแกรม SQLServer2008 R2 Express</title><content type='html'>ไปที่ลิ้งด้านล่างเลยจ้า&lt;br /&gt;
&lt;a href=&quot;http://www.nanosoft.co.th/pdf/SetupSQLServer2008R2Express.pdf&quot; target=&quot;_blank&quot;&gt;คลิ๊กที่นี่&lt;/a&gt;&lt;br /&gt;
ขอบคุณผู้จัดทำด้วยครับ</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/6193362294062068419/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/6193362294062068419' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6193362294062068419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/6193362294062068419'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/04/sqlserver2008-r2-express.html' title='คู่มือการติดตั้งโปรแกรม SQLServer2008 R2 Express'/><author><name>Unknown</name><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-7105980263081593263.post-7890423663479225480</id><published>2011-04-27T23:18:00.001-07:00</published><updated>2011-05-02T21:58:23.970-07:00</updated><title type='text'>tag Blink ไม่ทำงานใน IE8 &amp; Chrome มีวิธีแก้ไขให้ทำแบบนี้นะ</title><content type='html'>ตัวนี้ใช้จาวาสคริปช่วยในการแสดงผล โดยปรับ style display&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function showcode(aa,bb) {
var myTA = document.getElementById(aa);
var strclick = document.getElementById(bb);
if (myTA.style.display == &#39;&#39;) {
myTA.style.display = &#39;none&#39;;
strclick.innerHTML=&quot;View Code&quot;;
} else {
myTA.style.display = &#39;&#39;;
strclick.innerHTML=&quot;Hide Code&quot;;
}
}
&lt;/script&gt;&lt;br /&gt;
&lt;div id=&quot;tagblink&quot; style=&quot;color:red;cursor:pointer;&quot; onclick=&quot;showcode(&#39;divblink&#39;,&#39;tagblink&#39;)&quot;&gt;View Code&lt;/div&gt;&lt;div id=&quot;divblink&quot; class=&quot;tocdiv&quot; style=&quot;display :none;&quot;&gt;&lt;code&gt;-------------------------------------------------&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function animateBlink(aa) {&lt;br /&gt;
var myTA = document.getElementById(aa);&lt;br /&gt;
if (myTA.style.display == &#39;&#39;) {&lt;br /&gt;
myTA.style.display = &#39;none&#39;;&lt;br /&gt;
} else {&lt;br /&gt;
myTA.style.display = &#39;&#39;;&lt;br /&gt;
}&lt;br /&gt;
setTimeout(&quot;animateBlink(&#39;&quot;+aa+&quot;&#39;);&quot;, 500);&lt;br /&gt;
}&lt;br /&gt;
setTimeout(&quot;animateBlink(&#39;data1&#39;);&quot;, 500);&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;span id=&quot;data1&quot;&amp;gt;Your text&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
------------------------------------------------&lt;/code&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;
function animateBlink(aa) {
    var myTA = document.getElementById(aa);
    if (myTA.style.display == &#39;&#39;) {
        myTA.style.display = &#39;none&#39;;
    } else {
        myTA.style.display = &#39;&#39;;
    }
    setTimeout(&quot;animateBlink(&#39;&quot;+aa+&quot;&#39;);&quot;, 500);
}
setTimeout(&quot;animateBlink(&#39;data1&#39;);&quot;, 500);
&lt;/script&gt;&lt;br /&gt;
****************&lt;br /&gt;
&lt;span id=&quot;data1&quot;&gt;Your text&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
ใช้ จาวา script ช่วยได้(it work in Chome , IE)</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/7890423663479225480/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/7890423663479225480' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7890423663479225480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/7890423663479225480'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/04/tag-blink-ie8-chrome.html' title='tag Blink ไม่ทำงานใน IE8 &amp; Chrome มีวิธีแก้ไขให้ทำแบบนี้นะ'/><author><name>Unknown</name><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-7105980263081593263.post-1093074099707220164</id><published>2011-01-19T02:33:00.000-08:00</published><updated>2011-01-19T02:33:01.332-08:00</updated><title type='text'>การตั้งค่า IIS ไม่ให้แสดงรูปภาพและ Css</title><content type='html'>เนื่องจากผมได้ทดสอบติดตั้ง iis ใหม่ บน windows 7 แต่ผมได้กำหนดค่าไว้ไม่ครับทำให้เว็บที่รันผ่าน iis นั้นรันได้แต่ไม่มีรูปภาพแสดงในเว็บเลย ทำให้ผมต้องหาวิธีไปกำหนดค่าในiis ให้แสดงรูปด้วย ซึ่งสามารถทำการแก้ไขได้ดังนี้&lt;br /&gt;
การ set iis ไม่ให้แสดงรูป และ css&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ไปที่ Add Remove Programe&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Turn Window Feature on or off&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 select +Internet Information Services&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 Select +World Wide Web Services&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 Select +Common Http Features&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 check Static Content&lt;br /&gt;
&lt;br /&gt;
หวังว่าจะช่วยบางคนได้ หากพบปัญหาเดียวกัน</content><link rel='replies' type='application/atom+xml' href='http://findvb.blogspot.com/feeds/1093074099707220164/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7105980263081593263/1093074099707220164' title='1 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1093074099707220164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7105980263081593263/posts/default/1093074099707220164'/><link rel='alternate' type='text/html' href='http://findvb.blogspot.com/2011/01/iis-css.html' title='การตั้งค่า IIS ไม่ให้แสดงรูปภาพและ Css'/><author><name>Unknown</name><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>1</thr:total></entry></feed>