<?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-8383829918408434216</id><updated>2024-09-04T22:41:53.644-07:00</updated><category term="Asp.net Book Programming"/><category term="ConnectionString web.config asp.net"/><category term="GridView Template"/><category term="Mapping Table Class Manager"/><category term="sorting gridview class"/><category term="web service"/><title type='text'>Dot Net Magic 2010</title><subtitle type='html'>Learn the Experince with me. ASP.NET</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-3528935365280373201</id><published>2010-05-01T08:50:00.001-07:00</published><updated>2010-05-01T09:04:59.007-07:00</updated><title type='text'>Amazon</title><content type='html'>&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=dotnetmagic20-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=B0015T963C&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc6600; font-size: small;&quot;&gt;Technical Details&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Non-OEM with 1 year warranty. x1 charger and x1 Young Micro Live Green Wristband&lt;br /&gt;
&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Keep your device running at full power while in use and while away from home.&lt;br /&gt;
&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Enhanced internal circuitry is able to manage charging status and prevent over and under charging&lt;br /&gt;
&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Integrated electrical fuse prevents damage to the device while plugged. Charger Length: 5 Ft.&lt;br /&gt;
&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;LED indicator shows power. Input: 100-240V, 50/60Hz Output: 12V, 3A&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot;  href=&quot;http://www.amazon.com/gp/product/B0015T963C?ie=UTF8&amp;amp;tag=dotnetmagic20-20&amp;amp;linkCode=as1&amp;amp;camp=0&amp;amp;adid=1DTS570E8M2EVHAQCWYF&amp;amp;creative=0&amp;amp;creativeASIN=B0015T963C&quot;&gt;&gt;&gt;See more technical details&lt;/a&gt;&lt;/li&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/3528935365280373201/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2010/05/amazon.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/3528935365280373201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/3528935365280373201'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2010/05/amazon.html' title='Amazon'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-2702315463690576988</id><published>2010-04-24T14:38:00.001-07:00</published><updated>2010-04-28T07:43:57.999-07:00</updated><title type='text'>New Book Asp.net</title><content type='html'>&lt;iframe src=&quot;http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=2800FF&amp;t=dotnetmagic20-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;asins=0596800959&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Product Description&lt;br /&gt;Even with the best-selling delays in compact-pedal history, BOSS continues to push the envelope and innovate. The new DD-7 takes the best features from its predecessors and expands the creative potential with Modulation Delay mode, classic modeled Analog Delay mode, External pedal control options, longer delay time, and more. Up to 40 seconds of recording for sound on sound (Hold mode) Up to 6.4 seconds of delay time is available with the DD-7, a marked increase from its predecessor. In addition, Hold mode allows up to 40 seconds of input to be recorded for creating ?sound on sound? performances. Equipped with two innovative new delay modes. Modulation Delay provides chorus-flavored sounds. Analog Delay offers a modeled simulation of the classic BOSS DM-2, beloved for its characteristic warmth For hands-free control of the DD-7, an external footswitch and Expression pedal (sold separately) can be used. Tap tempo can be controlled from an external footswitch, while delay time, feedback, and effect level can be changed on the fly via Expression pedal Create amazing effects with the DD-7&#39;s stereo output, such as spatial audio sweeps via true stereo panning. You can also use the stereo outputs to create separate dry and wet signal paths ? handy for recording and live-performance control</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/2702315463690576988/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2010/04/new-book-aspnet.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/2702315463690576988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/2702315463690576988'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2010/04/new-book-aspnet.html' title='New Book Asp.net'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-2402292410236566061</id><published>2010-04-24T07:23:00.000-07:00</published><updated>2010-04-24T09:25:23.029-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net Book Programming"/><title type='text'>Book ASP.NET</title><content type='html'>Book ASP.NET @ Amazon you can buy it with cheap price.&lt;br /&gt;&lt;br /&gt;&lt;iframe src=&quot;http://astore.amazon.com/dotnetmagic20-20&quot; width=&quot;100%&quot; height=&quot;1000&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/2402292410236566061/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2010/04/book-aspnet.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/2402292410236566061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/2402292410236566061'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2010/04/book-aspnet.html' title='Book ASP.NET'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-170957193086185643</id><published>2009-09-27T07:35:00.000-07:00</published><updated>2010-04-24T14:12:34.172-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="web service"/><title type='text'>Web Service</title><content type='html'>เว็บเซอร์วิส (Web service) &lt;br /&gt;คือระบบซอฟต์แวร์ที่ออกแบบมา เพื่อสนับสนุนการแลกเปลี่ยนข้อมูลกัน ระหว่างเครื่องคอมพิวเตอร์ผ่านระบบเครือข่าย โดยที่ภาษาที่ใช้ในการติดต่อสื่อสารระหว่างเครื่องคอมพิวเตอร์ คือเอกซ์เอ็มแอล เว็บเซอร์วิสมีอินเทอร์เฟส ที่ใช้อธิบายรูปแบบข้อมูลที่เครื่องคอมพิวเตอร์ประมวลผลได้ เช่น WSDL ระบบคอมพิวเตอร์ใช้งานสื่อสารโต้ตอบกับเว็บเซอร์วิสตามรูปแบบที่ได้กำหนดไว้แล้ว โดยการส่งสาสน์ตามอินเตอร์เฟสของเว็บเซอร์วิสนั้น โดยที่สาสน์ดังกล่าวอาจแนบไว้ในซอง SOAP หรือส่งตามอินเตอร์เฟสในแนวทางของ REST สาสน์เหล่านี้ปกติแล้วถูกส่งโดยอาศัย HTTP และใช้ XML ร่วมกับมาตรฐานเกี่ยวกับเว็บอื่นๆ โปรแกรมประยุกต์ที่เขียนโดยภาษาต่างๆ และทำงานบนแพลตฟอร์มต่างๆกันสามารถใช้เว็บเซอร์วิสเพื่อแลกเปลี่ยนข้อมูลผ่านทางเครือข่ายคอมพิวเตอร์ เช่น อินเทอร์เน็ต ในลักษณะเดียวกับการสื่อสารระหว่างโปรเซส (Inter-process communication) บนเครื่องเดียวกัน ความสามารถในการแลกเปลี่ยนข้อมูลระหว่างระบบที่ต่างกันนี้ ( เช่น การแลกเปลี่ยนข้อมูลระหว่าง โปรแกรมที่เขียนโดยภาษาจาวา และโปรแกรมที่เขียนโดยภาษาไพทอน หรือการแลกเปลี่ยนข้อมูลระหว่างโปรแกรมประยุกต์ที่ทำงานบนไมโครซอฟท์วินโดวส์และโปรแกรมประยุกต์ที่ทำงานบนลินุกซ์ ) เกิดขึ้นได้เนื่องจากการใช้มาตรฐานเปิด โดย OASIS และ W3C เป็นคณะกรรมการหลักในการรับผิดชอบมาตรฐานและสถาปัตยกรรมของเว็บเซอร์วิส&lt;br /&gt;&lt;br /&gt;ที่มา Wikipedia.org</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/170957193086185643/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/web-service.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/170957193086185643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/170957193086185643'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/web-service.html' title='Web Service'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-5395762262582632521</id><published>2009-09-21T07:34:00.000-07:00</published><updated>2010-04-24T09:32:00.382-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mapping Table Class Manager"/><title type='text'>Manager Class VB.net Example</title><content type='html'>Mapping Table Class Manager Example&lt;br /&gt;With VB.NET  and&lt;span style=&quot;color:#3333ff;&quot;&gt; stored procedure&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Imports System.Data&lt;br /&gt;Public Class LeadManager&lt;br /&gt;&lt;br /&gt;Public Function GetLeadListAll() As DataTable&lt;br /&gt;&lt;br /&gt;Dim dt As DataTable = Nothing&lt;br /&gt;Dim conn As New DataBase.DBConnection(ConfigManager.Setting.ConnectionString)&lt;br /&gt;Dim cmd As DataBase.DBCommand = Nothing&lt;br /&gt;conn.OpenConnection()&lt;br /&gt;Try&lt;br /&gt;&lt;br /&gt;cmd = New DataBase.DBCommand(conn, &quot;&lt;span style=&quot;color:#cc0000;&quot;&gt;sp_GetLeadListAll&lt;/span&gt;&quot;, CommandType.StoredProcedure)&lt;br /&gt;dt = cmd.ExecuteDataTable()&lt;br /&gt;Catch ex As Exception&lt;br /&gt;Utility.WriteLog(&quot;Get Lead List All&quot;, ex.Message, Utility.NotifyLogType.Error)&lt;br /&gt;Finally&lt;br /&gt;If cmd IsNot Nothing Then&lt;br /&gt;cmd.Dispose() : cmd = Nothing&lt;br /&gt;conn.CloseConnection() : conn.Dispose() : conn = Nothing&lt;br /&gt;End If&lt;br /&gt;End Try&lt;br /&gt;&lt;br /&gt;Return dt&lt;br /&gt;End Function&lt;br /&gt;End Class&lt;br /&gt;&lt;br /&gt;&lt;iframe src=&quot;http://astore.amazon.com/dotnetmagic20-20&quot; width=&quot;100%&quot; height=&quot;1000&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/5395762262582632521/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/manager-class-vbnet-example.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5395762262582632521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5395762262582632521'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/manager-class-vbnet-example.html' title='Manager Class VB.net Example'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-7147039149416746296</id><published>2009-09-21T07:15:00.000-07:00</published><updated>2010-04-24T08:24:37.702-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sorting gridview class"/><title type='text'>How to use sorting gridview class</title><content type='html'>Coding in Class &lt;span style=&quot;color:#ff6600;&quot;&gt;&lt;strong&gt;GridViewHelper&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;==============================&lt;br /&gt;This is &lt;span style=&quot;color:#ff9900;&quot;&gt;GridViewHelper&lt;/span&gt;.cs Class File Example&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;&lt;br /&gt;namespace TheKOB&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;[Serializable]&lt;br /&gt;public class GridViewHelper&lt;br /&gt;{&lt;br /&gt;private string _expression;&lt;br /&gt;private string _direction = &quot;ASC&quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void ReverseDirection()&lt;br /&gt;{&lt;br /&gt;if (_direction == &quot;ASC&quot;)&lt;br /&gt;_direction = &quot;DESC&quot;;&lt;br /&gt;else&lt;br /&gt;_direction = &quot;ASC&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public GridViewHelper(GridView grid, string defaultSortExpression)&lt;br /&gt;{&lt;br /&gt;_expression = defaultSortExpression;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void SelectSorting(string sortExpression)&lt;br /&gt;{&lt;br /&gt;if (_expression == sortExpression)&lt;br /&gt;{&lt;br /&gt;ReverseDirection();&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;_direction = &quot;ASC&quot;;&lt;br /&gt;}&lt;br /&gt;_expression = sortExpression;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#336666;&quot;&gt;Use this class in Page aspx like :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;using TheKOB;&lt;br /&gt;&lt;br /&gt;protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)&lt;br /&gt;{&lt;br /&gt;GridViewHelper &lt;span style=&quot;color:#009900;&quot;&gt;helper&lt;/span&gt; = new GridViewHelper(&lt;span style=&quot;color:#ff0000;&quot;&gt;this.NameGridView&lt;/span&gt;, &quot;&lt;span style=&quot;color:#ff0000;&quot;&gt;ColumnDefault&lt;/span&gt;&quot;);&lt;br /&gt;helper.SelectSorting(e.SortExpression);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And you must set property in gridview control&lt;br /&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;AllowSorting&lt;/span&gt;=&quot;true&quot; &lt;span style=&quot;color:#ff0000;&quot;&gt;OnSorting&lt;/span&gt;=&quot;GridView1_Sorting&quot;&lt;br /&gt;and BoundField =&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;SortExpression&lt;/span&gt;=&quot;ColumnName&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe src=&quot;http://astore.amazon.com/dotnetmagic20-20&quot; width=&quot;82%&quot; height=&quot;1000&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/7147039149416746296/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/how-to-use-sorting-gridview-class.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/7147039149416746296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/7147039149416746296'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/how-to-use-sorting-gridview-class.html' title='How to use sorting gridview class'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-668808615440985687</id><published>2009-09-21T06:57:00.000-07:00</published><updated>2009-09-21T07:13:44.498-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ConnectionString web.config asp.net"/><title type='text'>ConnectionString From Web.Config</title><content type='html'>How to get connectionstring from &lt;span style=&quot;color:#009900;&quot;&gt;web.config&lt;/span&gt; asp.net 2.0/3.5&lt;br /&gt;Step.&lt;br /&gt;&lt;span style=&quot;color:#000099;&quot;&gt;-Add web&lt;/span&gt;&lt;br /&gt;Reference System.Configuration&lt;br /&gt;&lt;span style=&quot;color:#000099;&quot;&gt;-At web.config&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;connectionstrings&amp;gt;&lt;br /&gt;&amp;lt;add name=&quot;&lt;span style=&quot;color:#993399;&quot;&gt;MLMDB&lt;/span&gt;&quot; connectionstring=&quot;Data Source=was2003;Initial Catalog=MLM;Persist Security Info=True;User ID=sa;Password=Ringer2005;&quot; providername=&quot;System.Data.SqlClient&quot;&amp;gt;&lt;br /&gt;&amp;lt;/connectionstrings&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;But user Add Key Tag&lt;/span&gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;&amp;lt;/add key=&quot;&lt;span style=&quot;color:#009900;&quot;&gt;GridViewPageSize&lt;/span&gt;&quot; value=&quot;5&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/add key=&quot;DateTimeFormat&quot; value=&quot;MM/dd/yyyy&quot;/&amp;gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#000099;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#000099;&quot;&gt;At Page&lt;/span&gt;&lt;br /&gt;Use connectionStrings&lt;br /&gt;Return System.Configuration.ConfigurationManager.ConnectionStrings(&quot;&lt;span style=&quot;color:#993399;&quot;&gt;MLMDB&lt;/span&gt;&quot;).ConnectionString()&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;Use add key&lt;br /&gt;&lt;/span&gt;Return System.Configuration.ConfigurationManager.AppSettings(&quot;&lt;span style=&quot;color:#006600;&quot;&gt;GridViewPageSize&lt;/span&gt;&quot;)</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/668808615440985687/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/connectionstring-from-webconfig.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/668808615440985687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/668808615440985687'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/connectionstring-from-webconfig.html' title='ConnectionString From Web.Config'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-2672667258086904348</id><published>2009-09-14T09:10:00.000-07:00</published><updated>2010-04-24T08:25:23.880-07:00</updated><title type='text'>GridView PageIndexChanging</title><content type='html'>GridView PageIndexChanging&lt;br /&gt;&lt;br /&gt;example:&lt;br /&gt;&lt;br /&gt;protected void &lt;span style=&quot;color:#993399;&quot;&gt;gvDep_PageIndexChanging&lt;/span&gt;(object sender, &lt;span style=&quot;color:#ffcc00;&quot;&gt;GridViewPageEventArgs&lt;/span&gt; e)&lt;br /&gt;{&lt;br /&gt;gvDep.PageIndex = e.NewPageIndex;&lt;br /&gt;gvDep.DataSource = ViewState[&quot;dt&quot;];&lt;br /&gt;gvDep.DataBind();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;iframe src=&quot;http://astore.amazon.com/dotnetmagic20-20&quot; width=&quot;82%&quot; height=&quot;1000&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/2672667258086904348/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-pageindexchanging_14.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/2672667258086904348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/2672667258086904348'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-pageindexchanging_14.html' title='GridView PageIndexChanging'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-4012858784282903563</id><published>2009-09-14T09:03:00.000-07:00</published><updated>2009-09-14T09:04:42.599-07:00</updated><title type='text'>GridView RowDataBound</title><content type='html'>&lt;span style=&quot;color:#3333ff;&quot;&gt;GridView RowDataBound&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;protected void &lt;span style=&quot;color:#cc9933;&quot;&gt;gvDep_RowDataBound&lt;/span&gt;(object sender, GridViewRowEventArgs e)&lt;br /&gt;{&lt;br /&gt;if (e.Row.RowType==DataControlRowType.DataRow)&lt;br /&gt;{&lt;br /&gt;((LinkButton)(e.Row.Cells[1].Controls[1])).Text =&lt;br /&gt;gvDep.DataKeys[e.Row.RowIndex].Value.ToString();&lt;br /&gt;((ImageButton)(e.Row.Cells[4].Controls[1])).CommandArgument = gvDep.DataKeys[e.Row.RowIndex].Value.ToString();&lt;br /&gt;e.Row.Cells[3].Text =&lt;br /&gt;(e.Row.Cells[3].Text == &quot;True&quot;) ? Common.Flag.Activate.ToString() : Common.Flag.InActivate.ToString();&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/4012858784282903563/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-rowdatabound.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/4012858784282903563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/4012858784282903563'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-rowdatabound.html' title='GridView RowDataBound'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-8562535087809323132</id><published>2009-09-14T08:58:00.000-07:00</published><updated>2009-09-14T09:01:46.144-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GridView Template"/><title type='text'>TemplateField GridView</title><content type='html'>&amp;lt;asp:TemplateField&amp;gt;&lt;br /&gt;&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;asp:ImageButton ID=&quot;imgEdit&quot; runat=&quot;server&quot; ImageUrl=&quot;~/images/icon-link-create-event.gif&quot;&lt;br /&gt;OnClick=&quot;&lt;span style=&quot;color:#ff0000;&quot;&gt;imgEdit_Click&lt;/span&gt;&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate&gt;&lt;br /&gt;&amp;lt;ItemStyle Width=&quot;20px&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;&lt;br /&gt;==================================================&lt;br /&gt;&lt;br /&gt;protected void &lt;span style=&quot;color:#ff0000;&quot;&gt;imgEdit_Click&lt;/span&gt;(object sender, ImageClickEventArgs e)&lt;br /&gt;{&lt;br /&gt;string Dep_Id = ((ImageButton)(sender)).CommandArgument;&lt;br /&gt;ViewState[&quot;gridIndex&quot;] = ((GridViewRow)(((ImageButton)(sender)).Parent.Parent)).RowIndex;&lt;br /&gt;DataTable dt = new DataTable();&lt;br /&gt;dt = (DataTable)(ViewState[&quot;dt&quot;]);&lt;br /&gt;DataRow dr = dt.Select(&quot;Dep_Id=&#39;&quot; + Dep_Id + &quot;&#39;&quot;)[0];&lt;br /&gt;lblCode.Text = dr[&quot;Dep_Id&quot;].ToString();&lt;br /&gt;txtName.Text = dr[&quot;Dep_Name&quot;].ToString();&lt;br /&gt;txtDesc.Text = dr[&quot;Dep_Description&quot;].ToString();&lt;br /&gt;txtRemark.Text = dr[&quot;Dep_Remark&quot;].ToString();&lt;br /&gt;rblStatus.SelectedValue = (dr[&quot;Dep_Status&quot;].ToString().ToUpper() == &quot;TRUE&quot;) ? ((int)(Common.Flag.Activate)).ToString() : ((int)(Common.Flag.InActivate)).ToString();&lt;br /&gt;ConfigMode(Common.Mode.edit);&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/8562535087809323132/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/templatefield-gridview.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/8562535087809323132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/8562535087809323132'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/templatefield-gridview.html' title='TemplateField GridView'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-6391895958478391641</id><published>2009-09-14T08:31:00.000-07:00</published><updated>2009-09-14T08:34:56.439-07:00</updated><title type='text'>GridView RowCommand</title><content type='html'>Gridview Row Command (GridView.RowCommand)&lt;br /&gt;CommandNameValue&lt;br /&gt;&quot;Cancel&quot;&lt;br /&gt;Cancel จะทำการคืนค่า GridView Control ในโหมด Read-Only และจะส่ง event RowCancelingEdit ออกมา&lt;br /&gt;&lt;br /&gt;&quot;Delete&quot;&lt;br /&gt;Delete ใช้ในการลบข้อมูลออกจาก GridView จะส่ง event RowDeleting และ RowDeleted ออกมา&lt;br /&gt;&lt;br /&gt;&quot;Edit&quot;&lt;br /&gt;Edit ใช้ในการกดปุ่มเพื่อแก้ไขข้อมูลใน GridView จะส่ง event RowEditing ออกมา&lt;br /&gt;&lt;br /&gt;&quot;Page&quot;&lt;br /&gt;Page ใช้สำหรับตอนกดปุ่ม paging ของ GridView โดยใส่ CommandArgument ของปุ่มเป็น &quot;First&quot;, &quot;Last&quot;, &quot;Next&quot;, &quot;Prev&quot; จะส่ง event PageIndexChanging และ PageIndexChanged ออกมา&lt;br /&gt;&lt;br /&gt;&quot;Select&quot;&lt;br /&gt;Select ใช้สำหรับตอนเลือกข้อมูลบน GridView จะส่ง event SelectedIndexChanging และ SelectedIndexChanged ออกมา&lt;br /&gt;&lt;br /&gt;&quot;Sort&quot;&lt;br /&gt;Sort ใช้สำหรับตอนกดปุ่ม Sort บน GridView จะส่ง event Sorting และ Sorted ออกมา&lt;br /&gt;&lt;br /&gt;&quot;Update&quot;&lt;br /&gt;Update ใช้สำหรับตอนกดปุ่ม Update บน GridView จะส่ง event RowUpdating และ RowUpdated ออกมา&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#009900;&quot;&gt;private void GridView_RowCommand(Object sender, GridViewCommandEventArgs e)&lt;br /&gt;{&lt;br /&gt;// If multiple buttons are used in a GridView control, use the&lt;br /&gt;// CommandName property to determine which button was clicked.&lt;br /&gt;if(e.CommandName==&quot;Add&quot;)&lt;br /&gt;{&lt;br /&gt;// Convert the row index stored in the CommandArgument&lt;br /&gt;// property to an Integer.&lt;br /&gt;int index = Convert.ToInt32(e.CommandArgument);&lt;br /&gt;&lt;br /&gt;// Retrieve the row that contains the button clicked&lt;br /&gt;// by the user from the Rows collection.&lt;br /&gt;GridViewRow row = CustomersGridView.Rows[index];&lt;br /&gt;&lt;br /&gt;// Create a new ListItem object for the customer in the row.&lt;br /&gt;ListItem item = new ListItem();&lt;br /&gt;item.Text = Server.HtmlDecode(row.Cells[2].Text);&lt;br /&gt;&lt;br /&gt;// If the customer is not already in the ListBox, add the ListItem&lt;br /&gt;// object to the Items collection of the ListBox control.&lt;br /&gt;if (!CustomersListBox.Items.Contains(item))&lt;br /&gt;{&lt;br /&gt;CustomersListBox.Items.Add(item);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/6391895958478391641/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-rowcommand.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/6391895958478391641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/6391895958478391641'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-rowcommand.html' title='GridView RowCommand'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-5956900316463588395</id><published>2009-09-14T08:16:00.000-07:00</published><updated>2009-09-14T08:31:03.973-07:00</updated><title type='text'>GridView Control Hide Column</title><content type='html'>GridView Control Hide Column&lt;br /&gt;&lt;br /&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;.hiddenField&lt;br /&gt;{&lt;br /&gt;display: none;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/style&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&amp;lt;asp:boundfield datafield=&quot;CODE&quot; cssclass=&quot;hiddenField&quot; headertext=&quot;ID&quot;&quot;&amp;gt;&lt;br /&gt;&amp;lt;headerstyle cssclass=&quot;hiddenField&quot;/&amp;gt;&lt;br /&gt;&amp;lt;itemstyle cssclass=&quot;hiddenField&quot;/&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/5956900316463588395/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-control-hide-column.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5956900316463588395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5956900316463588395'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-control-hide-column.html' title='GridView Control Hide Column'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-4681208140973915864</id><published>2009-09-04T19:49:00.000-07:00</published><updated>2010-04-24T08:26:17.168-07:00</updated><title type='text'>LINQ Part1</title><content type='html'>LINQ (.NET Language-Integrated Query)&lt;br /&gt;&lt;br /&gt;LINQ ก็จะแบ่งออกเป็น 5 ส่วนประกอบหลักๆ คือ&lt;br /&gt;LINQ to Objects เพื่อใช้ LINQ ติดต่อกับ Object อื่นๆ อย่างเช่นที่คุณ Nine ได้ Demo ให้ดูใน GF Vtalk 4 คือใช้ LINQ ติดต่อกับ Process ต่างๆ ของ Windows&lt;br /&gt;LINQ to Datasets, LINQ to SQL, LINQ to Entities ก็ใช้ในการติดต่อกับ Relational Database&lt;br /&gt;LINQ to XML ใช้ในการติดต่อกับ XML Document โดยเฉพาะ.&lt;br /&gt;&lt;br /&gt;ประโยชน์ของ LINQ To SQL&lt;br /&gt;&lt;br /&gt;เนื่องจากในการเขียนโปรแกรมเพื่อติดต่อกับ Database ต่างๆ ในปัจจุบัน&lt;br /&gt;เราจะต้องสร้างคำสั่งการสำหรับการ Query ข้อมูลให้เป็นคำสั่ง SQL ที่อยู่ในตัวแปรที่เป็นชนิด String&lt;br /&gt;เพื่อที่นำตัวแปรนั้นไป Execute ใน Database อีกที&lt;br /&gt;แล้วค่อยรับค่าที่ Return กลับมาใส่ใน Result Set ต่างๆ เช่น DataTable หรือ DataReader&lt;br /&gt;&lt;br /&gt;=====================================================================&lt;br /&gt;LINQ To SQL (.NET Language-Integrated Query for Relational Data)&lt;br /&gt;&lt;br /&gt;เปลี่ยนชื่อมาจาก DLINQ และเป็น O/RM (Object-relational mapping) ที่จะ Implement ลงใน Visual Studio Orcas (VS2008).&lt;br /&gt;O/RM - (Object-relational mapping) เป็นเทคนิคในการเขียนโปรแกรมเพื่อทำการแปลงโครงสร้างจาก Database ให้มาอยู่ในรูปของ OO&lt;br /&gt;และในการทำ Mapping ออกมาจะต้องทำให้ Type ทางฝั่ง Database และทางฝั่งของ OO มีความ Compatible กัน.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2JlHaD45W-wvey5eMqZt6mQxKsitFjwBcfkpGjjlJQOeU7Q7qaCo3aPdktE4HxQ_-lpkt6NIpTGPQ6iDPvCUntr0Bcmh3aO9HScGLT0NWV_SkiMYiZjMozWoR8-wfmXdmBEwFZpiuLosH/s1600-h/linqtosql003.png&quot;&gt;&lt;img style=&quot;WIDTH: 446px; HEIGHT: 80px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5377811113271098274&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2JlHaD45W-wvey5eMqZt6mQxKsitFjwBcfkpGjjlJQOeU7Q7qaCo3aPdktE4HxQ_-lpkt6NIpTGPQ6iDPvCUntr0Bcmh3aO9HScGLT0NWV_SkiMYiZjMozWoR8-wfmXdmBEwFZpiuLosH/s320/linqtosql003.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe src=&quot;http://astore.amazon.com/dotnetmagic20-20&quot; width=&quot;82%&quot; height=&quot;1000&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/4681208140973915864/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/linq-part1.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/4681208140973915864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/4681208140973915864'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/linq-part1.html' title='LINQ Part1'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2JlHaD45W-wvey5eMqZt6mQxKsitFjwBcfkpGjjlJQOeU7Q7qaCo3aPdktE4HxQ_-lpkt6NIpTGPQ6iDPvCUntr0Bcmh3aO9HScGLT0NWV_SkiMYiZjMozWoR8-wfmXdmBEwFZpiuLosH/s72-c/linqtosql003.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-4362586931901842363</id><published>2009-09-03T08:44:00.000-07:00</published><updated>2009-11-13T21:34:52.555-08:00</updated><title type='text'>Function Sorting ASP.NET C#</title><content type='html'>&lt;span style=&quot;color:#ff0000;&quot;&gt;Example:Function Sorting ASP.NET C#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;private static SortDirection GridViewSortDirection;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;===== Populate GridView =====&lt;br /&gt;&lt;br /&gt;if (dt.Rows.Count &gt; 0)&lt;br /&gt;        {&lt;br /&gt;            ViewState[&quot;dt&quot;] = dt; //เก็บ Viewstate ไว้ใช้Sorting ในView&lt;br /&gt;            GridView1.DataSource = dt;&lt;br /&gt;            GridView1.DataBind();&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;-------------------------------&lt;br /&gt;&lt;br /&gt;protected void gvDep_Sorting(object sender, GridViewSortEventArgs e)&lt;br /&gt;{&lt;br /&gt;string sortExpression = e.SortExpression;&lt;br /&gt;string direction = &quot;&quot;;&lt;br /&gt;if (GridViewSortDirection == SortDirection.Ascending)&lt;br /&gt;{&lt;br /&gt;GridViewSortDirection = SortDirection.Descending;&lt;br /&gt;direction = &quot; DESC&quot;;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;GridViewSortDirection = SortDirection.Ascending;&lt;br /&gt;direction = &quot; ASC&quot;;&lt;br /&gt;}&lt;br /&gt;DataView dv = new DataView((DataTable)(ViewState[&quot;dt&quot;]));&lt;br /&gt;dv.Sort = sortExpression + direction;&lt;br /&gt;gvDep.DataSource = dv;&lt;br /&gt;gvDep.DataBind();&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/4362586931901842363/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/function-sorting-aspnet-c.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/4362586931901842363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/4362586931901842363'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/function-sorting-aspnet-c.html' title='Function Sorting ASP.NET C#'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-464033822470950627</id><published>2009-09-03T08:42:00.000-07:00</published><updated>2009-09-03T08:43:30.719-07:00</updated><title type='text'>RowDatabound Asp.net</title><content type='html'>&lt;span style=&quot;color:#000066;&quot;&gt;&lt;span style=&quot;color:#993399;&quot;&gt;RowDataBound ASP.NET Example&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;protected void gvDep_RowDataBound(object sender, GridViewRowEventArgs e)&lt;br /&gt;{&lt;br /&gt;if (e.Row.RowType==DataControlRowType.DataRow)&lt;br /&gt;{&lt;br /&gt;((LinkButton)(e.Row.Cells[1].Controls[1])).Text = gvDep.DataKeys[e.Row.RowIndex].Value.ToString();&lt;br /&gt;((ImageButton)(e.Row.Cells[4].Controls[1])).CommandArgument = gvDep.DataKeys[e.Row.RowIndex].Value.ToString();&lt;br /&gt;e.Row.Cells[3].Text = (e.Row.Cells[3].Text == &quot;True&quot;) ? Common.Flag.Activate.ToString() : Common.Flag.InActivate.ToString();&lt;br /&gt;}&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/464033822470950627/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/rowdatabound-aspnet.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/464033822470950627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/464033822470950627'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/rowdatabound-aspnet.html' title='RowDatabound Asp.net'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-6855262131225096065</id><published>2009-09-03T08:40:00.000-07:00</published><updated>2009-09-03T08:41:38.835-07:00</updated><title type='text'>GridView PageIndexChanging</title><content type='html'>&lt;span style=&quot;color:#660000;&quot;&gt;&lt;em&gt;How to use GridView PageIndexChanging &lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#660000;&quot;&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;protected void gvDep_PageIndexChanging(object sender, GridViewPageEventArgs e)&lt;br /&gt;{&lt;br /&gt;   gvDep.PageIndex = e.NewPageIndex;&lt;br /&gt;   gvDep.DataSource = ViewState[&quot;dt&quot;];&lt;br /&gt;   gvDep.DataBind();&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/6855262131225096065/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-pageindexchanging.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/6855262131225096065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/6855262131225096065'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/gridview-pageindexchanging.html' title='GridView PageIndexChanging'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-5965594672256003737</id><published>2009-09-03T08:20:00.000-07:00</published><updated>2009-09-03T08:22:40.565-07:00</updated><title type='text'>Get and  Set in C#</title><content type='html'>public class AdminDetails&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;private string _adminID;&lt;br /&gt;private DateTime _registerDate;&lt;br /&gt;private string _userName;&lt;br /&gt;private string _email;&lt;br /&gt;&lt;br /&gt;public string AdminID { get { return _adminID; } set { _adminID = value; } }&lt;br /&gt;public DateTime RegisterDate { get { return _registerDate; } set { _registerDate = value; } }&lt;br /&gt;public string UserName { get { return _userName; } set { _userName = value; } }&lt;br /&gt;public string Email { get { return _email; } set { _email = value; } }&lt;br /&gt;&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/5965594672256003737/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/set-and-set-in-c.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5965594672256003737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5965594672256003737'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/set-and-set-in-c.html' title='Get and  Set in C#'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-5124279046880498138</id><published>2009-09-03T08:18:00.000-07:00</published><updated>2009-09-03T08:19:04.168-07:00</updated><title type='text'>How to set empty textbox asp.net</title><content type='html'>&lt;span style=&quot;color:#33cc00;&quot;&gt;Code for set empty textbox asp.net c#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public static void setEmptyTextbox( params TextBox[] objtext)&lt;br /&gt;{&lt;br /&gt;for (int i = 0; i &lt;= objtext.Length - 1; i++)&lt;br /&gt;{&lt;br /&gt;objtext[i].Text = string.Empty;&lt;br /&gt;}&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/5124279046880498138/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/how-to-set-empty-textbox-aspnet.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5124279046880498138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5124279046880498138'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/how-to-set-empty-textbox-aspnet.html' title='How to set empty textbox asp.net'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-9123989595475437394</id><published>2009-09-03T08:17:00.001-07:00</published><updated>2009-09-03T08:17:59.441-07:00</updated><title type='text'>Alert Message and Focus Asp.net</title><content type='html'>&lt;span style=&quot;color:#3333ff;&quot;&gt;Alert Message and Focus Asp.net&lt;/span&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;public static void msgAndFocus(string message, Page page, string ctrl_Id)&lt;br /&gt;{&lt;br /&gt;ScriptManager.RegisterStartupScript(page.Page, page.GetType(), Guid.NewGuid().ToString(), string.Format(&quot;alert(&#39;{0}&#39;);document.getElementById(&#39;{1}&#39;).focus();&quot;, message, ctrl_Id), true);&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/9123989595475437394/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/alert-message-and-focus-aspnet.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/9123989595475437394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/9123989595475437394'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/alert-message-and-focus-aspnet.html' title='Alert Message and Focus Asp.net'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-1741016935030890124</id><published>2009-09-03T08:10:00.000-07:00</published><updated>2009-09-03T08:11:42.449-07:00</updated><title type='text'>Bind Dropdownlist with XML</title><content type='html'>&lt;span style=&quot;color:#cc0000;&quot;&gt;How to Bind Dropdownlist with XML&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DataSet dsProvince = new DataSet();&lt;br /&gt;dsProvince.ReadXml(MapPath(&quot;Xml/Province.xml&quot;));&lt;br /&gt;ddlCity.DataTextField = &quot;provinceName&quot;;&lt;br /&gt;ddlCity.DataValueField = &quot;provinceID&quot;;&lt;br /&gt;ddlCity.DataSource = dsProvince;&lt;br /&gt;ddlCity.DataBind();&lt;br /&gt;&lt;br /&gt;ddlCity.Items.Insert(0, new ListItem(SystemMessage.MsgGlobal.G010, &quot;&quot;));</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/1741016935030890124/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/bind-dropdownlist-with-xml.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/1741016935030890124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/1741016935030890124'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/bind-dropdownlist-with-xml.html' title='Bind Dropdownlist with XML'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-5416226929672996954</id><published>2009-09-03T08:08:00.000-07:00</published><updated>2009-09-03T08:09:54.845-07:00</updated><title type='text'>Bind Dropdownlist with Dataset</title><content type='html'>Bind Dropdownlist with Dataset...&lt;br /&gt;&lt;br /&gt;            if (ds != null &amp;&amp; ds.Tables.Count &gt; 0)&lt;br /&gt;            {&lt;br /&gt;                DataTable dt = ds.Tables[0];&lt;br /&gt;                ddlDepCode.DataTextField = &quot;Dep_Name&quot;;&lt;br /&gt;                ddlDepCode.DataValueField = &quot;Dep_Id&quot;;&lt;br /&gt;                ddlDepCode.DataSource = dt;&lt;br /&gt;                ddlDepCode.DataBind();&lt;br /&gt;                &lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            ddlDepCode.Items.Insert(0 , new ListItem(&quot;กรุณาเลือก&quot;, &quot;&quot;));</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/5416226929672996954/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/bind-dropdownlist-with-dataset.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5416226929672996954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/5416226929672996954'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/bind-dropdownlist-with-dataset.html' title='Bind Dropdownlist with Dataset'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8383829918408434216.post-3594752368147485409</id><published>2009-09-03T08:04:00.000-07:00</published><updated>2009-09-03T08:06:31.645-07:00</updated><title type='text'>Java Script IsCheck()</title><content type='html'>function isCheck(){&lt;br /&gt;var frm = document.getElementById(&#39;aspnetForm&#39;);&lt;br /&gt;var IsCheck= &quot;false&quot;;&lt;br /&gt;for (i=0;i&lt;frm.elements.length;i++){&gt; if (frm.elements[i].type == &quot;checkbox&quot;){&lt;br /&gt;if(frm.elements[i].checked == true){&lt;br /&gt;IsCheck = &#39;true&#39;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if(IsCheck==&#39;false&#39;){&lt;br /&gt;&lt;br /&gt;return false;&lt;br /&gt;}else&lt;br /&gt;{&lt;br /&gt;return true;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ตอนเอาไปใช้ที่ Page_Load&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;btnDelete.Attributes.Add(&quot;onclick&quot;, &quot;if(isCheck()){return confirm(&#39;&quot; + SystemMessage.MsgGlobal.G007 + &quot;&#39;);}else{alert(&#39;&quot; + SystemMessage.MsgGlobal.G009 + &quot;&#39;);return false;};&quot;);</content><link rel='replies' type='application/atom+xml' href='http://dotnetmagic2010.blogspot.com/feeds/3594752368147485409/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/java-script-ischeck.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/3594752368147485409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8383829918408434216/posts/default/3594752368147485409'/><link rel='alternate' type='text/html' href='http://dotnetmagic2010.blogspot.com/2009/09/java-script-ischeck.html' title='Java Script IsCheck()'/><author><name>ThEKOB มะนาวสยาม</name><uri>http://www.blogger.com/profile/01380024426523550958</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmk_l1pOlHrTyz90QwZHgCuhtZwyDUqOcmMTGQ_AZppig6QohTHy41qI1OIxuyUxPN33PbyqReC3U9UuVznX73llxEHHKlMAWEwlzJrljCDvqDIJO-RlaRhr9FncnZfg/s220/manowsiam_pic01.jpg'/></author><thr:total>0</thr:total></entry></feed>