<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://geeks.netindonesia.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Andra &amp;amp; my Backbone</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Dispatch, enhanced FTP support</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/04/07/dispatch-enhanced-ftp-support.aspx</link><pubDate>Tue, 07 Apr 2009 21:53:01 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:92152</guid><dc:creator>anwarchandra</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=92152</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/04/07/dispatch-enhanced-ftp-support.aspx#comments</comments><description>&lt;p&gt;Baru hari ini saya kepikiran mencari plugin visual studio untuk FTP upload. Karena sudah bete selama ini mesti bolak-balik VS &amp;amp; FileZilla.&lt;/p&gt;  &lt;p&gt;akhirnya ketemu &lt;a href="http://www.dispatchasp.net/"&gt;ini&lt;/a&gt;. Dispatch, Enhanced FTP Support for ASP.net &amp;amp; Visual Studio&amp;#160; 2008.&lt;/p&gt;  &lt;p&gt;saya bukan salesnya loh. sekedar sharing aja kalau ini murah dan kualitasnya lumayan.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/04/07/dispatch-enhanced-ftp-support.aspx&amp;amp;subject=Dispatch, enhanced FTP support" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/04/07/dispatch-enhanced-ftp-support.aspx&amp;amp;t=Dispatch%2c+enhanced+FTP+support" target="_blank" title="Submit Dispatch, enhanced FTP support to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/04/07/dispatch-enhanced-ftp-support.aspx&amp;amp;title=Dispatch%2c+enhanced+FTP+support" target="_blank" title="Submit Dispatch, enhanced FTP support to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/04/07/dispatch-enhanced-ftp-support.aspx&amp;amp;phase=2" target="_blank" title="Submit Dispatch, enhanced FTP support to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/04/07/dispatch-enhanced-ftp-support.aspx&amp;amp;title=Dispatch%2c+enhanced+FTP+support" target="_blank" title="Add Dispatch, enhanced FTP support to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=92152" width="1" height="1"&gt;</description></item><item><title>Category tree yg expanded &amp; collapsed</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/01/29/category-tree-yg-expanded-amp-collapsed.aspx</link><pubDate>Fri, 30 Jan 2009 04:34:50 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:84053</guid><dc:creator>anwarchandra</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=84053</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/01/29/category-tree-yg-expanded-amp-collapsed.aspx#comments</comments><description>&lt;p&gt;coba bandingkan tampilan menu pada sidebar di gambar ini. (dulu begini)&lt;/p&gt;  &lt;p&gt;&lt;a href="https://geeks.netindonesia.net/blogs/anwarchandra/sidebar_4BC2A739.png"&gt;&lt;img title="sidebar" style="border-top-width:0px;display:inline;border-left-width:0px;border-bottom-width:0px;border-right-width:0px;" height="376" alt="sidebar" src="https://geeks.netindonesia.net/blogs/anwarchandra/sidebar_thumb_50C4E4E8.png" width="190" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;dengan tampilan sidebar yang sama pada gambar ini. (sekarang begini, maunya category-tree tampil collapsed by default)&lt;/p&gt;  &lt;p&gt;&lt;a href="https://geeks.netindonesia.net/blogs/anwarchandra/sidebar_collapsed_127C1A77.png"&gt;&lt;img title="sidebar_collapsed" style="border-top-width:0px;display:inline;border-left-width:0px;border-bottom-width:0px;border-right-width:0px;" height="141" alt="sidebar_collapsed" src="https://geeks.netindonesia.net/blogs/anwarchandra/sidebar_collapsed_thumb_6D122708.png" width="186" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;gw mulai heran mengapa bos lebih memilih kondisi category-tree yang collapsed by default dibandingkan yang expanded. gw khawatir user tidak memperhatikan category-tree yg collapsed tersebut. &lt;/p&gt;  &lt;p&gt;dan jawaban si bos..&lt;/p&gt;  &lt;p&gt;1. jika terlalu banyak pada sidebar, kemungkinan user tidak akan memperhatikan.    &lt;br /&gt;2. jika category-tree expanded, kemungkinan user tidak akan memperhatikan menu yang lain, dalam hal ini adalah &amp;#39;browse shops&amp;#39;.     &lt;br /&gt;3. user bisa bermain-main dengan category-tree ( expand, collapse, expand, collapse, dst). I got the idea! LOL! &lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/01/29/category-tree-yg-expanded-amp-collapsed.aspx&amp;amp;subject=Category tree yg expanded &amp;amp; collapsed" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/01/29/category-tree-yg-expanded-amp-collapsed.aspx&amp;amp;t=Category+tree+yg+expanded+%26amp%3b+collapsed" target="_blank" title="Submit Category tree yg expanded &amp;amp; collapsed to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/01/29/category-tree-yg-expanded-amp-collapsed.aspx&amp;amp;title=Category+tree+yg+expanded+%26amp%3b+collapsed" target="_blank" title="Submit Category tree yg expanded &amp;amp; collapsed to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/01/29/category-tree-yg-expanded-amp-collapsed.aspx&amp;amp;phase=2" target="_blank" title="Submit Category tree yg expanded &amp;amp; collapsed to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2009/01/29/category-tree-yg-expanded-amp-collapsed.aspx&amp;amp;title=Category+tree+yg+expanded+%26amp%3b+collapsed" target="_blank" title="Add Category tree yg expanded &amp;amp; collapsed to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=84053" width="1" height="1"&gt;</description></item><item><title>Stop a postback from javascript</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/12/24/stop-a-postback-from-javascript.aspx</link><pubDate>Wed, 24 Dec 2008 23:59:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:83277</guid><dc:creator>anwarchandra</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=83277</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/12/24/stop-a-postback-from-javascript.aspx#comments</comments><description>&lt;p&gt;&lt;b&gt;Button:&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;asp:Button ID=&amp;quot;BtnDoSomething&amp;quot; OnClientClick=&amp;quot;return verify();&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;BLOCKED SCRIPT&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;function verify() {    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;     &lt;br /&gt;}&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/12/24/stop-a-postback-from-javascript.aspx&amp;amp;subject=Stop a postback from javascript" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/12/24/stop-a-postback-from-javascript.aspx&amp;amp;t=Stop+a+postback+from+javascript" target="_blank" title="Submit Stop a postback from javascript to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/12/24/stop-a-postback-from-javascript.aspx&amp;amp;title=Stop+a+postback+from+javascript" target="_blank" title="Submit Stop a postback from javascript to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/12/24/stop-a-postback-from-javascript.aspx&amp;amp;phase=2" target="_blank" title="Submit Stop a postback from javascript to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/12/24/stop-a-postback-from-javascript.aspx&amp;amp;title=Stop+a+postback+from+javascript" target="_blank" title="Add Stop a postback from javascript to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=83277" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/asp.net/default.aspx">asp.net</category></item><item><title>Menambal jahitan orang lain</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/10/29/menambal-jahitan-orang-lain.aspx</link><pubDate>Wed, 29 Oct 2008 08:36:53 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:70867</guid><dc:creator>anwarchandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=70867</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/10/29/menambal-jahitan-orang-lain.aspx#comments</comments><description>&lt;p&gt;Baju yang mesti saya tambal saat ini, adalah jahitan tangan orang lain. Mesin jahit boleh sama tapi pemilihan bahan dan teknik potongan baju ini sangat berbeda dengan pilihan bahan yang saya rekomendasikan dan teknik potongannya terlalu rumit dan berlapis-lapis untuk dipakai musim panas. Akhirnya yang memakai baju itu panas, saya juga jadi panas. Bukan sok bisa, sok jago, cuma agak sedikit rasis &lt;em&gt;*dasar india gebleg :p*&lt;/em&gt; Mungkin juga saya pernah melakukan demikian, hmm, ada baiknya saya tanyakan kolega saya.&lt;/p&gt;  &lt;p&gt;saya teringat pada nasihat kolega lama tentang penamaan sebuah variable. jika perlu, katanya, luangkanlah waktu beberapa menit untuk menentukan nama variable yang tepat atau diskusikan dengan teman. wah benar-benar klise, tapi saya masih sering memergoki variabel aneh dan akhirnya saya mentok. ternyata ide klise ini patut didengarkan dan dipraktekkan.&lt;/p&gt;  &lt;p&gt;Sebagai penjahit muda yang bersahaja, saya mengajak anda-anda semua belajar untuk mengerjakan segala sesuatu &lt;strong&gt;sesuai standar&lt;/strong&gt;, supaya &lt;strong&gt;terukur&lt;/strong&gt; dan &lt;strong&gt;mudah dimengerti &lt;/strong&gt;orang lain&lt;strong&gt;. &lt;/strong&gt;Itulah sebabnya, 80 tahun yang lalu, ada sumpah pemuda. &lt;/p&gt;  &lt;p&gt;Selamat hari sumpah pemuda.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/10/29/menambal-jahitan-orang-lain.aspx&amp;amp;subject=Menambal jahitan orang lain" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/10/29/menambal-jahitan-orang-lain.aspx&amp;amp;t=Menambal+jahitan+orang+lain" target="_blank" title="Submit Menambal jahitan orang lain to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/10/29/menambal-jahitan-orang-lain.aspx&amp;amp;title=Menambal+jahitan+orang+lain" target="_blank" title="Submit Menambal jahitan orang lain to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/10/29/menambal-jahitan-orang-lain.aspx&amp;amp;phase=2" target="_blank" title="Submit Menambal jahitan orang lain to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/10/29/menambal-jahitan-orang-lain.aspx&amp;amp;title=Menambal+jahitan+orang+lain" target="_blank" title="Add Menambal jahitan orang lain to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=70867" width="1" height="1"&gt;</description></item><item><title>Microsoft support for jQuery</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/09/30/microsoft-support-for-jquery.aspx</link><pubDate>Tue, 30 Sep 2008 11:53:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:64731</guid><dc:creator>anwarchandra</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=64731</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/09/30/microsoft-support-for-jquery.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://asp.net/" title="asp.net"&gt;asp.net&lt;/a&gt; and &lt;a href="http://jquery.com/" title="jQuery"&gt;jQuery&lt;/a&gt; lover will find themselves fantastic++ about this news. *yes, i am*&lt;/p&gt;&lt;p&gt;because in a few weeks, &lt;b&gt;jQuery intellisense support&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.scottgu.com/blogposts/jquery/step3.png" alt="jQuery intellisense support" width="706" align="" border="" height="118" hspace="" /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;will &lt;font&gt;&lt;font size="2" face="arial"&gt;be available as a free web-download, &lt;/font&gt;&lt;/font&gt;&lt;font&gt;&lt;font size="2" face="arial"&gt;ASP.NET MVC download will also distribute it, and add the jQuery library by default to all new projects.&lt;/font&gt;&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx"&gt;http://weblogs.asp.net/&lt;b&gt;scottgu&lt;/b&gt;/archive/2008/09/28/jquery-and-microsoft.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/"&gt;http://&lt;b&gt;jquery.com&lt;/b&gt;/blog/2008/09/28/jquery-microsoft-nokia/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.hanselman.com/blog/jQueryToShipWithASPNETMVCAndVisualStudio.aspx%20"&gt;http://www.&lt;b&gt;hanselman&lt;/b&gt;.com/blog/jQueryToShipWithASPNETMVCAndVisualStudio.aspx &lt;/a&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/09/30/microsoft-support-for-jquery.aspx&amp;amp;subject=Microsoft support for jQuery" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/09/30/microsoft-support-for-jquery.aspx&amp;amp;t=Microsoft+support+for+jQuery" target="_blank" title="Submit Microsoft support for jQuery to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/09/30/microsoft-support-for-jquery.aspx&amp;amp;title=Microsoft+support+for+jQuery" target="_blank" title="Submit Microsoft support for jQuery to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/09/30/microsoft-support-for-jquery.aspx&amp;amp;phase=2" target="_blank" title="Submit Microsoft support for jQuery to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/09/30/microsoft-support-for-jquery.aspx&amp;amp;title=Microsoft+support+for+jQuery" target="_blank" title="Add Microsoft support for jQuery to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=64731" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/jquery/default.aspx">jquery</category></item><item><title>Feed by Instant Messenger?</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/12/feed-by-instant-messenger.aspx</link><pubDate>Tue, 12 Aug 2008 11:56:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:62998</guid><dc:creator>anwarchandra</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=62998</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/12/feed-by-instant-messenger.aspx#comments</comments><description>&lt;p&gt;politik &lt;span style="font-style:italic;"&gt;&amp;quot;Siapa cepat, dia dapat&amp;quot;&lt;/span&gt; atau disingkat FCFS laku keras&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:bold;"&gt;Jaman dulu kalla&lt;/span&gt;, distribusi pengetahuan baru hanya menggunakan email atau pantengin website berita. Tapi kini sudah ada RSS feed reader, bahkan dibantu Instant Messaging.&lt;/p&gt;&lt;p&gt;Yang senang bila di&lt;span style="font-weight:bold;font-style:italic;text-decoration:underline;"&gt;buzz&lt;/span&gt; dengan beberapa pengetahuan segar (baca: feed), seharusnya senang dengan &lt;a href="http://www.imfeeds.com/" title="feeds your im"&gt;imfeeds&lt;/a&gt;. Barusan saya ngedaftarin isi otak kalian, supaya di&lt;span style="font-weight:bold;font-style:italic;text-decoration:underline;"&gt;buzz&lt;/span&gt; ke saya. sekarang saya &lt;span style="text-decoration:line-through;"&gt;ngeblog&lt;/span&gt; ngetes &lt;a href="http://www.imfeeds.com/" title="feeds your im"&gt;imfeeds&lt;/a&gt; ini.&lt;/p&gt;&lt;p&gt;*update: +/- 25 menit setelah posting, baru muncul di &lt;a href="https://geeks.netindonesia.net/blogs/MainFeed.aspx"&gt;https://geeks.netindonesia.net/blogs/MainFeed.aspx&lt;/a&gt;, 15 menit kemudian nungguin reaksi YM, belum ada apa-apa dari imfeeds :( &lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/12/feed-by-instant-messenger.aspx&amp;amp;subject=Feed by Instant Messenger?" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/12/feed-by-instant-messenger.aspx&amp;amp;t=Feed+by+Instant+Messenger%3f" target="_blank" title="Submit Feed by Instant Messenger? to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/12/feed-by-instant-messenger.aspx&amp;amp;title=Feed+by+Instant+Messenger%3f" target="_blank" title="Submit Feed by Instant Messenger? to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/12/feed-by-instant-messenger.aspx&amp;amp;phase=2" target="_blank" title="Submit Feed by Instant Messenger? to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/12/feed-by-instant-messenger.aspx&amp;amp;title=Feed+by+Instant+Messenger%3f" target="_blank" title="Add Feed by Instant Messenger? to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=62998" width="1" height="1"&gt;</description></item><item><title>Sulitnya hostingan dotnet</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/07/sulitnya-hostingan-dotnet.aspx</link><pubDate>Thu, 07 Aug 2008 09:38:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:61840</guid><dc:creator>anwarchandra</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=61840</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/07/sulitnya-hostingan-dotnet.aspx#comments</comments><description>&lt;p&gt;Tadi pagi ketemu hosting windows indonesia. eh tapi saya gak kasih link ah, mahal sih. &lt;/p&gt;&lt;p&gt;Hosting 100MB, Rp.350rb/thn tapi gak dapet SQL Server.&lt;/p&gt;&lt;p&gt;Hosting 500MB, dapet SQL Server tapiRp.650rb/thn.&lt;/p&gt;&lt;p&gt;Mau demo-demo asp.net , mahal ya.. *ngarep ada petinggi microsoft kasih saran &amp;amp; petunjuk, kalo perlu ngasih hostingan gratis*&lt;/p&gt;&lt;p&gt;:D &lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/07/sulitnya-hostingan-dotnet.aspx&amp;amp;subject=Sulitnya hostingan dotnet" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/07/sulitnya-hostingan-dotnet.aspx&amp;amp;t=Sulitnya+hostingan+dotnet" target="_blank" title="Submit Sulitnya hostingan dotnet to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/07/sulitnya-hostingan-dotnet.aspx&amp;amp;title=Sulitnya+hostingan+dotnet" target="_blank" title="Submit Sulitnya hostingan dotnet to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/07/sulitnya-hostingan-dotnet.aspx&amp;amp;phase=2" target="_blank" title="Submit Sulitnya hostingan dotnet to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/08/07/sulitnya-hostingan-dotnet.aspx&amp;amp;title=Sulitnya+hostingan+dotnet" target="_blank" title="Add Sulitnya hostingan dotnet to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=61840" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/asp.net/default.aspx">asp.net</category></item><item><title>SSMS, filter by date modified?</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/29/ssms-filter-by-date-modified.aspx</link><pubDate>Tue, 29 Jul 2008 21:57:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:59469</guid><dc:creator>anwarchandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=59469</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/29/ssms-filter-by-date-modified.aspx#comments</comments><description>&lt;p&gt;&lt;b&gt;Object Explorer Filter Settings&lt;/b&gt; di Microsoft SQL Server Management Studio terbatas pada &lt;i&gt;Name&lt;/i&gt;, &lt;i&gt;Schema&lt;/i&gt; &amp;amp; &lt;i&gt;Creation Date&lt;/i&gt;.&lt;/p&gt;&lt;p&gt;Seperti biasanya jika ada perubahan, kita test dulu di lokal atau laptop. Setelah sukses, perubahan tersebut saya apply di database server lain, katakanlah si MAWAR. Tapi karena si MAWAR lagi dipake bos untuk ngetes-ngetes, saya cuma bisa ALTER satu-satu. &lt;/p&gt;&lt;p&gt;Nah, seiring dengan meningkatnya frekuensi perubahan skema basisdata per hari, dokumentasi perubahan yang berantakan &amp;amp; MAWAR yang nan jauh di ujung bumi, rasanya saya perlu sebuah fitur untuk melakukan &lt;b&gt;Filter by Modified Date&lt;/b&gt;. &lt;/p&gt;&lt;p&gt;&lt;i&gt;Apa saja yang kita ubah hari ini, terkadang kita lupa kan&lt;/i&gt;&lt;i&gt;?&lt;br /&gt;
&lt;/i&gt;&lt;/p&gt;

&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/29/ssms-filter-by-date-modified.aspx&amp;amp;subject=SSMS, filter by date modified?" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/29/ssms-filter-by-date-modified.aspx&amp;amp;t=SSMS%2c+filter+by+date+modified%3f" target="_blank" title="Submit SSMS, filter by date modified? to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/29/ssms-filter-by-date-modified.aspx&amp;amp;title=SSMS%2c+filter+by+date+modified%3f" target="_blank" title="Submit SSMS, filter by date modified? to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/29/ssms-filter-by-date-modified.aspx&amp;amp;phase=2" target="_blank" title="Submit SSMS, filter by date modified? to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/29/ssms-filter-by-date-modified.aspx&amp;amp;title=SSMS%2c+filter+by+date+modified%3f" target="_blank" title="Add SSMS, filter by date modified? to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=59469" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/SQL+Server/default.aspx">SQL Server</category></item><item><title>My Next Reading</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/17/my-next-reading.aspx</link><pubDate>Fri, 18 Jul 2008 06:46:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:56870</guid><dc:creator>anwarchandra</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=56870</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/17/my-next-reading.aspx#comments</comments><description>&lt;p&gt;Buku-buku ini baru nyampe tadi siang ke kantor. dan akan menemani kopi pagi gw di kantor untuk 3 bulan, eh 6 bulan, eh 1 tahun, eh 1 tahun setengah, eh 1 tahun 7 bulan 2 minggu ke depan. &lt;/p&gt;&lt;p&gt;&lt;img src="http://anwarchandra.files.wordpress.com/2008/07/dsc_1497.jpg" alt="t-sql" align="" border="" width="429" height="285" hspace="" /&gt;&lt;img src="http://anwarchandra.files.wordpress.com/2008/07/dsc_1498.jpg" alt="" align="" border="" width="429" height="285" hspace="" /&gt;&lt;img src="http://anwarchandra.files.wordpress.com/2008/07/dsc_1494.jpg" alt="" align="" border="" width="429" height="285" hspace="" /&gt;&lt;img src="http://anwarchandra.files.wordpress.com/2008/07/dsc_1496.jpg" alt="" align="" border="" width="429" height="285" hspace="" /&gt;&lt;img src="http://anwarchandra.files.wordpress.com/2008/07/dsc_1495.jpg" alt="" align="" border="" width="429" height="285" hspace="" /&gt;&lt;/p&gt;&lt;p&gt;SQL Server 2005? kenapa gak yang 2008?&lt;/p&gt;&lt;p&gt;Ya karena saat ini yg dipake di kantor masih SQL Server 2005. Dan sampai sekitar 2, 3 bulan ke depan gw berjibaku dengan SQL Server 2005. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Kalau ada yang menarik dari ASP.NET AJAX in Action dan gw gag lagi males, mungkin nanti akan gw tulis di sini atau dari buku lainnya di &lt;a href="http://anwarchandra.wordpress.com" title="blog wordpress" target="_blank"&gt;blog wordpress gw&lt;/a&gt;. &lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/17/my-next-reading.aspx&amp;amp;subject=My Next Reading" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/17/my-next-reading.aspx&amp;amp;t=My+Next+Reading" target="_blank" title="Submit My Next Reading to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/17/my-next-reading.aspx&amp;amp;title=My+Next+Reading" target="_blank" title="Submit My Next Reading to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/17/my-next-reading.aspx&amp;amp;phase=2" target="_blank" title="Submit My Next Reading to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/07/17/my-next-reading.aspx&amp;amp;title=My+Next+Reading" target="_blank" title="Add My Next Reading to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=56870" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/SQL+Server/default.aspx">SQL Server</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/asp.net/default.aspx">asp.net</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/ajax/default.aspx">ajax</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/jquery/default.aspx">jquery</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/web+design/default.aspx">web design</category></item><item><title>Website baru lagi, arabic lagi</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/29/website-baru-lagi-arabic-lagi.aspx</link><pubDate>Mon, 30 Jun 2008 02:12:36 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:54292</guid><dc:creator>anwarchandra</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=54292</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/29/website-baru-lagi-arabic-lagi.aspx#comments</comments><description>Disuruh bikin website baru lagi, arabic lagi. Kali ini gw dibebaskan untuk memakai teknologi apa saja di ASP.Net. Ini artinya kesempatan gw belajar banyak hal baru. Kalau memang diperbolehkan pake dotNet 3.5, mungkin gw akan ninggalin &lt;a href="http://subsonicproject.com/"&gt;Subsonic&lt;/a&gt; dan memulai gaya baru: LINQ. Setelah itu, apa lagi ya yang baru yang mudah untuk dicoba?
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/29/website-baru-lagi-arabic-lagi.aspx&amp;amp;subject=Website baru lagi, arabic lagi" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/29/website-baru-lagi-arabic-lagi.aspx&amp;amp;t=Website+baru+lagi%2c+arabic+lagi" target="_blank" title="Submit Website baru lagi, arabic lagi to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/29/website-baru-lagi-arabic-lagi.aspx&amp;amp;title=Website+baru+lagi%2c+arabic+lagi" target="_blank" title="Submit Website baru lagi, arabic lagi to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/29/website-baru-lagi-arabic-lagi.aspx&amp;amp;phase=2" target="_blank" title="Submit Website baru lagi, arabic lagi to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/29/website-baru-lagi-arabic-lagi.aspx&amp;amp;title=Website+baru+lagi%2c+arabic+lagi" target="_blank" title="Add Website baru lagi, arabic lagi to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=54292" width="1" height="1"&gt;</description></item><item><title>SQL Server 2005's CLR Integration</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/26/sql-server-2005-s-clr-integration.aspx</link><pubDate>Thu, 26 Jun 2008 11:18:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:53887</guid><dc:creator>anwarchandra</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=53887</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/26/sql-server-2005-s-clr-integration.aspx#comments</comments><description>&lt;p&gt;*Untuk membuat treeview dari &amp;#39;kategori&amp;#39; yang memiliki 2000 record pada tabel, adalah sebuah ide yg buruk apabila selalu mengambil data dari database. Masalah yang kedua adalah si developer make php, jadi saya hanya batasi bantuan saya di trigger di SQL Servernya saja. Bermaksud untuk ningkatin kinerja, saya membangun html, dan mengupdate jikka ada perubahan terjadi. html ini akan disimpan di tabel juga sih.*&lt;/p&gt;&lt;p&gt;Saya putuskan untuk membuat stored procedure pake C#. yaitu dengan memanfaatkan fitur CLR Integration yang ada di SQL Server 2005. Saya baca dokumen &lt;a href="http://download.microsoft.com/download/4/7/a/47a548b9-249e-484c-abd7-29f31282b04d/SQLCLRforDBAs.doc"&gt;ini&lt;/a&gt; karena mau tahu lebih lengkap.

&lt;/p&gt;&lt;p&gt;pertama, saya enable&lt;a href="http://www.c-sharpcorner.com/UploadFile/dsdaf/CLRSQL20507292006084224AM/CLRSQL205.aspx?ArticleID=9af0b69a-5a10-44c8-8578-aa8c6f55c448" target="_blank"&gt; CLR integration di SQL Server 2005&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;Kedua, saya tulis sebuah stored procedure pake C#. &lt;/p&gt;&lt;p&gt;
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
System;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
System.Data;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
System.Data.SqlClient;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
System.Data.SqlTypes;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
Microsoft.SqlServer.Server;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
System.Collections;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;partial&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;class&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;StoredProcedures&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;[Microsoft.SqlServer.Server.&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlProcedure&lt;/font&gt;&lt;font color="#000000"&gt;]&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;void&lt;/font&gt;&lt;font color="#000000"&gt;
Category_BuildTreeView()&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
tree&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;.Empty;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;tree&amp;nbsp;=
Ul(0);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
clear&amp;nbsp;html&amp;nbsp;tree&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
(&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;
connection&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;context
connection=true&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;))&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
get&amp;nbsp;category&amp;nbsp;name&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Open();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;
command&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;DELETE
FROM&amp;nbsp;category_tree&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;,
connection);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;command.ExecuteNonQuery();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Close();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;
part&amp;nbsp;=&amp;nbsp;1;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
(&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;
connection&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;context
connection=true&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;))&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
get&amp;nbsp;category&amp;nbsp;name&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Open();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;
command&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;INSERT
INTO&amp;nbsp;category_tree&amp;nbsp;(part,tree)&amp;nbsp;VALUES(@part,@tree)&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;,
connection);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;command.Parameters.Add(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;@part&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;,
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlDbType&lt;/font&gt;&lt;font color="#000000"&gt;.Int);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;command.Parameters.Add(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;@tree&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;,
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlDbType&lt;/font&gt;&lt;font color="#000000"&gt;.NVarChar,
1001);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;while&lt;/font&gt;&lt;font color="#000000"&gt;
(tree.Length&amp;nbsp;&amp;gt;&amp;nbsp;1000)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&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;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
partstring&amp;nbsp;=&amp;nbsp;tree.Substring(0,&amp;nbsp;1000);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&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;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;command.Parameters[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;@part&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].Value
=&amp;nbsp;part;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&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;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;command.Parameters[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;@tree&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].Value
=&amp;nbsp;partstring;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&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;&lt;/font&gt;&lt;font size="2"&gt;command.ExecuteNonQuery();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&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;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
cut&amp;nbsp;a&amp;nbsp;tree&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&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;&lt;/font&gt;&lt;font size="2"&gt;tree&amp;nbsp;=&amp;nbsp;tree.Substring(1000);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&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;&lt;/font&gt;&lt;font size="2"&gt;part++;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
the&amp;nbsp;last&amp;nbsp;one.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;command.Parameters[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;@part&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].Value
=&amp;nbsp;part;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;command.Parameters[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;@tree&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].Value
=&amp;nbsp;tree;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;command.ExecuteNonQuery();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Close();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
Li(&lt;/font&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;
categoryId)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
return&amp;nbsp;empty&amp;nbsp;if&amp;nbsp;invalid&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt;&lt;font color="#000000"&gt;
(categoryId&amp;nbsp;==&amp;nbsp;0)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;.Empty;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
li&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;&amp;lt;li&amp;gt;&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;
children&amp;nbsp;=&amp;nbsp;0;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
Connect&amp;nbsp;through&amp;nbsp;the&amp;nbsp;context&amp;nbsp;connection.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
(&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;
connection&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;context
connection=true&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;))&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
get&amp;nbsp;category&amp;nbsp;name&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Open();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;
command&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;SELECT
*&amp;nbsp;FROM&amp;nbsp;category&amp;nbsp;WHERE&amp;nbsp;ID=&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
+&amp;nbsp;categoryId.ToString(),&amp;nbsp;connection);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;SqlDataReader&lt;/font&gt;&lt;font color="#000000"&gt;
reader&amp;nbsp;=&amp;nbsp;command.ExecuteReader();&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt;&lt;font color="#000000"&gt;
(reader.Read())&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&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;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;li
+=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;&amp;lt;a href=\&amp;quot;Default.aspx?cat=&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;+
categoryId&amp;nbsp;+&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;\&amp;quot;&amp;nbsp;&amp;gt;&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
+&amp;nbsp;reader[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;category_name&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].ToString()
+&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;(&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
+&amp;nbsp;reader[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;count_items&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].ToString()
+&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;)&amp;lt;/a&amp;gt;&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&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;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;children
=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;.Parse(reader[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;count_child&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].ToString());&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;reader.Close();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Close();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt;&lt;font color="#000000"&gt;
(children&amp;nbsp;&amp;gt;&amp;nbsp;0)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;li
+=&amp;nbsp;Ul(categoryId);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;li
+=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;&amp;lt;/li&amp;gt;&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt;&lt;font color="#000000"&gt;
li;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;private&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
Ul(&lt;/font&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;
categoryId)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
ul&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;&amp;lt;ul&amp;gt;&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;ArrayList&lt;/font&gt;&lt;font color="#000000"&gt;
children&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;ArrayList&lt;/font&gt;&lt;font color="#000000"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
Connect&amp;nbsp;through&amp;nbsp;the&amp;nbsp;context&amp;nbsp;connection.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;using&lt;/font&gt;&lt;font color="#000000"&gt;
(&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;
connection&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlConnection&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;context
connection=true&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;))&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
get&amp;nbsp;children&amp;nbsp;ids&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Open();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;
command&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;SqlCommand&lt;/font&gt;&lt;font color="#000000"&gt;(&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;SELECT
DISTINCT&amp;nbsp;ID&amp;nbsp;FROM&amp;nbsp;category&amp;nbsp;WHERE&amp;nbsp;category_parent=&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
+&amp;nbsp;categoryId.ToString(),&amp;nbsp;connection);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;SqlDataReader&lt;/font&gt;&lt;font color="#000000"&gt;
reader&amp;nbsp;=&amp;nbsp;command.ExecuteReader();&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;while&lt;/font&gt;&lt;font color="#000000"&gt;
(reader.Read())&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&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;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;children.Add(reader[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;ID&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].ToString());&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;reader.Close();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;font size="2"&gt;connection.Close();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;foreach&lt;/font&gt;&lt;font color="#000000"&gt;
(&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;id
&lt;/font&gt;&lt;font color="#0000ff"&gt;in&lt;/font&gt;&lt;font color="#000000"&gt;
children)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;ul
+=&amp;nbsp;Li(id);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;ul
+=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;&amp;lt;/ul&amp;gt;&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt;&lt;font color="#000000"&gt;
ul;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
Li(&lt;/font&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
categoryId)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt;&lt;font color="#000000"&gt;
Li(&lt;/font&gt;&lt;font color="#0000ff"&gt;int&lt;/font&gt;&lt;font color="#000000"&gt;.Parse(categoryId));&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;};&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;Ketiga, SAYA GAK MAU BIKIN TRIGGER PAKE CLR INTEGRATION, karena saya memerlukan fitur ini pada bagian yang memerlukan teknik reksursif
tingkat tinggi *ceileeeeh* saja dan supaya bisa &amp;#39;didaur ulang&amp;#39;, tetapi dari trigger saya bisa panggil stored procedure.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Semoga membantu. &lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/26/sql-server-2005-s-clr-integration.aspx&amp;amp;subject=SQL Server 2005's CLR Integration" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/26/sql-server-2005-s-clr-integration.aspx&amp;amp;t=SQL+Server+2005%27s+CLR+Integration" target="_blank" title="Submit SQL Server 2005's CLR Integration to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/26/sql-server-2005-s-clr-integration.aspx&amp;amp;title=SQL+Server+2005%27s+CLR+Integration" target="_blank" title="Submit SQL Server 2005's CLR Integration to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/26/sql-server-2005-s-clr-integration.aspx&amp;amp;phase=2" target="_blank" title="Submit SQL Server 2005's CLR Integration to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/26/sql-server-2005-s-clr-integration.aspx&amp;amp;title=SQL+Server+2005%27s+CLR+Integration" target="_blank" title="Add SQL Server 2005's CLR Integration to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=53887" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/SQL+Server/default.aspx">SQL Server</category></item><item><title>Multilanguage ASP.Net Website tips (part 3)</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/22/multilanguage-asp-net-website-tips-part-3.aspx</link><pubDate>Sun, 22 Jun 2008 07:45:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:53266</guid><dc:creator>anwarchandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=53266</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/22/multilanguage-asp-net-website-tips-part-3.aspx#comments</comments><description>&lt;p&gt;*Eh ternyata seru juga ngeblog disini, saya jadi bikin hattrick hari ini.* &lt;/p&gt;&lt;p&gt;&lt;b&gt;Part 3: Mengubah culture pada ASP.Net&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Pada part 1 saya membuat masterpage &lt;b&gt;Anonymous.master&lt;/b&gt;. Lalu di part 2 saya mulai mengatur resource file untuk &lt;b&gt;en-US&lt;/b&gt; dan &lt;b&gt;ar-KW&lt;/b&gt;, dan saya beritahu juga bagaimana cara memetakan value pada setiap ASP.Net control ke resource yang mana. Eh tapi saya lupa memberitahukan cara saya untuk mengubah culture, uiculture di halaman ASP.Net. &lt;/p&gt;&lt;p&gt;Pertama, user ingin mengubah bahasa ke arabic (Kuwait). Mungkin setelah itu ingin kembali lagi ke English, terus bisa balik lagi ke arabic (Kuwait). Kalau begitu saya simpan kode culture ini di session sajalah, misalnya di &lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; Sehingga saya dapat melakukannya demikian.. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
lang&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].ToString();&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;Thread&lt;/font&gt;&lt;font color="#000000"&gt;.CurrentThread.CurrentCulture
=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;CultureInfo&lt;/font&gt;&lt;font color="#000000"&gt;(lang);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;Thread&lt;/font&gt;&lt;font color="#000000"&gt;.CurrentThread.CurrentUICulture
=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;new&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;CultureInfo&lt;/font&gt;&lt;font color="#000000"&gt;(lang);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Saya punya 2 resource file untuk &lt;b&gt;Anonymous.master&lt;/b&gt;, yaitu &lt;b&gt;Anonymous.master.ar-KW.resx &lt;/b&gt;dan &lt;b&gt;Anonymous.master.resx&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Jika lang = &amp;quot;ar-KW&amp;quot;, maka resource file yang dipilih adalah &lt;b&gt;Anonymous.master.ar-KW.resx&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Jika lang = &amp;quot;en-US&amp;quot;, maka resource file yang dipilih adalah &lt;b&gt;Anonymous.master.resx&lt;/b&gt; (default&lt;b&gt;, &lt;/b&gt;karena gak ada &lt;b&gt;Anonymous.master.en-US.resx&lt;/b&gt;)&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Jika lang = &amp;quot;id&amp;quot; pun resource file yang dipilih adalah &lt;b&gt;Anonymous.master.resx&lt;/b&gt; (default&lt;b&gt;, &lt;/b&gt;karena gak ada &lt;b&gt;Anonymous.master.id.resx&lt;/b&gt;)&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;Potongan kode tersebut wajib dieksekusi pada fase &lt;b&gt;InitializeCulture&lt;/b&gt;, oleh sebab itu saya override InitializeCulture pada &lt;b&gt;Page Class&lt;/b&gt;&lt;br /&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;protected&lt;font color="#000000"&gt;
&lt;/font&gt;override&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;void&lt;font color="#000000"&gt;
InitializeCulture()&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;base&lt;/font&gt;&lt;font color="#000000"&gt;.InitializeCulture();&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font color="#000000"&gt;
lang&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;en-US&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
	&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
default&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt;&lt;font color="#000000"&gt;
(&lt;/font&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;]
!=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;null&lt;/font&gt;&lt;font color="#000000"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;lang
=&amp;nbsp;&lt;/font&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].ToString();&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;this&lt;/font&gt;&lt;font color="#000000"&gt;.Culture
=&amp;nbsp;lang;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;this&lt;/font&gt;&lt;font color="#000000"&gt;.UICulture
=&amp;nbsp;lang;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Eh tapi saya gak mau copy-paste potongan kode ini di semua halaman loh, makanya saya bikin Page Class baru, katakanlah AndraPage. Supaya terlihat rapih, saya pindahkan potongan kode sebenearnya ke Class Utilities &lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;class&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#2b91af"&gt;AndraPage&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;:
System.Web.UI.&lt;/font&gt;&lt;font color="#2b91af"&gt;Page&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;protected&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;override&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;void&lt;/font&gt;&lt;font color="#000000"&gt;
InitializeCulture()&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;base&lt;/font&gt;&lt;font color="#000000"&gt;.InitializeCulture();&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; &lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
saya pindahin, tapi gak harus, supaya rapih aja buat yang baca tutorial&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;Utilities&lt;/font&gt;&lt;font color="#000000"&gt;.InitLanguage(&lt;/font&gt;&lt;font color="#0000ff"&gt;this&lt;/font&gt;&lt;font color="#000000"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&amp;nbsp;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Karena saya akan menyimpan informasi culture code di Session, berarti saya perlu fungsi untuk mengubah informasi ini pada Session&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Saya letakkan saja di Utilities&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;font color="#000000"&gt;
&lt;/font&gt;class&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af"&gt;Utilities&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;void&lt;/font&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;InitLanguage&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;(&lt;font color="#2b91af"&gt;Page&lt;/font&gt;
page)&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;[....]&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;/font&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;void&lt;/font&gt;&lt;font color="#000000"&gt;
SwitchLanguage()&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt;&lt;font color="#000000"&gt;
(&lt;/font&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;]
!=&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&amp;amp;&amp;amp;
&lt;/font&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;].ToString()
==&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;ar-KW&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;]
=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;en-US&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;//
if&amp;nbsp;arabic,&amp;nbsp;switch&amp;nbsp;to&amp;nbsp;en&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;else&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Session[&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;lang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;]
=&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515"&gt;&amp;quot;ar-KW&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt; //
if not arabic,&amp;nbsp;switch&amp;nbsp;to arabic&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;// refresh&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Response.Redirect(&lt;/font&gt;&lt;font color="#2b91af"&gt;HttpContext&lt;/font&gt;&lt;font color="#000000"&gt;.Current.Request.CurrentExecutionFilePath);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Informasi pada Session memang sudah berubah, tapi event &lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;b&gt;InitializeCulture&lt;/b&gt; di &lt;b&gt;Page&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; sudah dipanggil sebelum Session ini berubah. &lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Makanya saya refresh lagi halaman yang dipanggil user.
Supaya informasi yang baru ini disertai dengan tampilan yang baru.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Dan saya ingin &lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;b&gt;SwitchLanguage()&lt;/b&gt; dipanggil, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;ketika user menekan &lt;b&gt;LinkButton&lt;/b&gt; yang saya buat di masterpage Anonymous.master&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;&amp;lt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;:&lt;font color="#a31515"&gt;LinkButton&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;=&amp;quot;BtnLang&amp;quot;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ValidationGroup&lt;/font&gt;=&amp;quot;Language&amp;quot;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;:&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;=&amp;quot;btnLang&amp;quot;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;=&amp;quot;server&amp;quot;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;OnClick&lt;/font&gt;=&amp;quot;btnLang_Click&amp;quot;&lt;font color="#000000"&gt;
&lt;/font&gt;/&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;protected&lt;font color="#000000"&gt;
&lt;/font&gt;void&lt;font color="#000000"&gt;&amp;nbsp;btnLang_Click(&lt;/font&gt;object&lt;font color="#000000"&gt;
sender,&amp;nbsp;&lt;/font&gt;&lt;font color="#2b91af"&gt;EventArgs&lt;/font&gt;&lt;font color="#000000"&gt;
e)&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font size="2"&gt;Utilities.SwitchLanguage();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Jangan lupa menggunakan AndraPage, instead of &lt;font style="font-weight:bold;" color="#000000"&gt;&lt;font size="2"&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;System.Web.UI.&lt;font color="#2b91af"&gt;Page&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/22/multilanguage-asp-net-website-tips-part-3.aspx&amp;amp;subject=Multilanguage ASP.Net Website tips (part 3)" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/22/multilanguage-asp-net-website-tips-part-3.aspx&amp;amp;t=Multilanguage+ASP.Net+Website+tips+(part+3)" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 3) to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/22/multilanguage-asp-net-website-tips-part-3.aspx&amp;amp;title=Multilanguage+ASP.Net+Website+tips+(part+3)" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 3) to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/22/multilanguage-asp-net-website-tips-part-3.aspx&amp;amp;phase=2" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 3) to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/22/multilanguage-asp-net-website-tips-part-3.aspx&amp;amp;title=Multilanguage+ASP.Net+Website+tips+(part+3)" target="_blank" title="Add Multilanguage ASP.Net Website tips (part 3) to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=53266" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/localization/default.aspx">localization</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/multi-language/default.aspx">multi-language</category></item><item><title>Multilanguage ASP.Net Website tips (part 2)</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-2.aspx</link><pubDate>Sun, 22 Jun 2008 05:05:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:53254</guid><dc:creator>anwarchandra</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=53254</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-2.aspx#comments</comments><description>&lt;p&gt;*saya sadar judul diatas tidak tepat, berhubung postingan saya agak spesifik untuk website arabic, untuk menebus dosa ini saya berusaha menuliskan tidak terlalu spesifik ke sana*&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Part 2: Memakai resource file (.resx)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Pada &lt;a href="https://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx"&gt;postingan sebelumnya&lt;/a&gt;, saya mengatakan kalau saya membuat sebuah master page dan menempatkan menu seperti pada gambar dibawah ini. tapi hanya beberapa tips untuk membuatnya, saya sendiri tidak memberitahukan bagaimana cara membuatnya. Pada part 2 ini pun masih belum, bahkan tidak. Karena &lt;span style="text-decoration:line-through;"&gt;agak males motong-motongnya&lt;/span&gt; saya anggap anda lebih tahu kode HTML dan CSS dibandingkan saya ini.&lt;/p&gt;&lt;p&gt;Pada part ini saya ingin membahas cara menggunakan resource files (.resx) dan localization pada ASP.Net terlebih dahulu. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Coba diperhatikan menu ini, &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/menuarabic.png" alt="" width="" align="" border="" height="" hspace="" /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;dengan kode HTML seperti berikut ini:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;
	
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;&amp;lt;!-- Menu + language button --&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;div&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;id&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;interior_top&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;div&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;id&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;text-on-top&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;LinkButton&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;BtnLang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ValidationGroup&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;Language&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;btnLang&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;OnClick&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;btnLang_Click&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;div&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;div&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;id&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;menu_interior&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;ul&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;HyperLink&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;LinkHome&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;Home&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;NavigateUrl&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;~/Default.aspx&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;Text&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;Home&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;HyperLink&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;LinkRegister&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;Register&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;NavigateUrl&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;~/Register.aspx&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;HyperLink&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;LinkLogin&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;Login&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;NavigateUrl&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;~/Login.aspx&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;HyperLink&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;LinkSearch&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;Search&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;NavigateUrl&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;~/Login.aspx&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;HyperLink&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;LinkHelp&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;Help&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;NavigateUrl&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;~/Help.aspx&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;font color="#000000"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;li&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;ul&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;div&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;br&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;class&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;clear&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515"&gt;div&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;font color="#008000"&gt;&amp;lt;!--
/&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;Menu + language button &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#008000"&gt;--&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Ah sekali lagi, soal cssnya, &lt;span style="text-decoration:line-through;"&gt;agak males motong-motongnya&lt;/span&gt; saya anggap anda lebih tahu dibandingkan saya ini&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Selanjutnya saya harus membuat resource file untuk halaman master ini.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Saya menambahkan asp.net folder App_LocalResource, dan menempatkan semua resource files (.resx) disitu.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/local_resources.png" alt="" width="" align="" border="" height="" hspace="" /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Saya mau folder saya terlihat rapih, makanya saya membuat 2 folder lagi yaitu &lt;span style="font-weight:bold;"&gt;ar-KW&lt;/span&gt; dan &lt;span style="font-weight:bold;"&gt;en-US&lt;/span&gt; &lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Untuk memetakan value pada control dan resource file bisa dengan cara membuat explisit expression dalam atribut sebuah contol. contoh saja demikian&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;
	
	
&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;lt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;:&lt;font color="#a31515"&gt;Label&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;=&amp;quot;Label2&amp;quot;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;Runat&lt;/font&gt;=&amp;quot;server&amp;quot;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;Text&lt;/font&gt;=&amp;quot;&lt;font color="#000000"&gt;&lt;span style="-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;&amp;lt;%&lt;/span&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;$
Resources:LocalizedText,&amp;nbsp;Msg1&amp;nbsp;&lt;/span&gt;&lt;span style="-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;%&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background:transparent none repeat scroll 0% 0%;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;&amp;quot;&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Value dari Msg1 akan dicari di file resource. File resource yang mana itu tergantung culture code dan nama resource.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Misalnya &lt;span style="font-weight:bold;"&gt;LocalizedText.fr.resx&lt;/span&gt;, apabila culture code adalah fr (france) atau &lt;span style="font-weight:bold;"&gt;LocalizedText.ar.resx&lt;/span&gt; apabila arabic (ar)&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Kalo ga ada yang cocok, default file yang dipilih adalah &lt;span style="font-weight:bold;"&gt;LocalizedText.resx&lt;/span&gt;&lt;/p&gt;&amp;nbsp;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Eh tapi saya ga mau repot-repot mapping file resource mana untuk control ini dan itu. Oleh sebab itu, saya pilih cara yang implisit saja &lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515"&gt;asp&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#a31515"&gt;HyperLink&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;ID&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;LinkRegister&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#a31515"&gt;meta&lt;/font&gt;&lt;font color="#0000ff"&gt;:&lt;/font&gt;&lt;font color="#ff0000"&gt;resourcekey&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;LinkRegister&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;NavigateUrl&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;~/Register.aspx&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#ff0000"&gt;runat&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font color="#000000"&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Value dari LinkRegister.Text dan LinkRegister.ToolTip akan didapat dari file &lt;span style="font-weight:bold;"&gt;Anonymous.master.resx&lt;/span&gt; berikut ini&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/registre.png" alt="" width="" align="" border="" height="" hspace="" /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Katakanlah master page anda bernama &lt;span style="font-weight:bold;"&gt;Kokotello.master&lt;/span&gt;, namakanlah resource anda &lt;span style="font-weight:bold;"&gt;Kokotello.master.resx&lt;/span&gt; (default) atau &lt;span style="font-weight:bold;"&gt;Kokotello.master.fr.resx &lt;/span&gt;(france) atau &lt;span style="font-weight:bold;"&gt;Kokotello.master.ar-KW.resx &lt;/span&gt;(kuwait) atau dan lain sebagainya&lt;span style="font-weight:bold;"&gt;, &lt;/span&gt;file resource akan dipilih sesuai dengan culture code.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Sedangkan saya juga butuh resource yang bahasa arab (kuwait), oleh sebab itu saya juga membuat&amp;nbsp; &lt;span style="font-weight:bold;"&gt;Anonymous.master.ar-KW.resx &lt;/span&gt;di folder &lt;span style="font-weight:bold;"&gt;ar-KW&lt;/span&gt;. Tidak penting sih saya letakkan dimana, diletakkan di folder &lt;span style="font-weight:bold;"&gt;en-US&lt;/span&gt; pun&lt;span style="font-weight:bold;"&gt; &lt;/span&gt;tidak masalah asalkan namanya tetap &lt;span style="font-weight:bold;"&gt;Anonymous.master.ar-KW.resx&lt;/span&gt;.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/arkw.png" alt="" width="" align="" border="" height="" hspace="" /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Apabila code culture saat itu adalah&lt;span style="font-weight:bold;"&gt;&amp;#39;ar-KW&amp;#39; &lt;/span&gt;maka menu tersebut menjadi seperti ini. &lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/menunormal.png" alt="" width="730" align="" border="" height="49" hspace="" /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Karena saya sudah anggap anda lebih jago css, seharusnya anda bingug dong kok dari yang tadinya left-to-right, menjadi right-to-left. Untuk melakukan ini saya wajib &lt;span style="font-weight:bold;"&gt;membalik&lt;/span&gt; beberapa atribut css seperti &lt;span style="font-weight:bold;"&gt;float&lt;/span&gt;, &lt;span style="font-weight:bold;"&gt;direction&lt;/span&gt;.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Saya bisa saja memetakan nama &lt;span style="font-weight:bold;"&gt;css class&lt;/span&gt; di resource files juga, misalnya &lt;span style="font-weight:bold;"&gt;LinkRegister.CssClass&lt;/span&gt; yang nilainya berbeda di setiap kelompok resource files.&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Tapi dengan cara itu, lebih repot, masa semua resourcekey file harus dipetakan ke class ini dan itu lewat resource files juga?&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Saya pakai cara lain, tapi entar aja &lt;span style="text-decoration:line-through;"&gt;minggu depan atau tahun depan&lt;/span&gt; deh dibahasnya. &lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;text-decoration:line-through;"&gt;Tuh kan sudah saya bilang agak males ngebahasnya disini, jadi ga fokus.&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Oke, saya harap sekarang anda mengerti bagaimana menggunakan resource file dan localization pada ASP.Net 2.0 &lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top:0in;margin-bottom:0in;"&gt;Seharusnya, anda tidak menemukan cara untuk mengubah culture code pada part ini dan part sebelumnya. Saya akan lanjutkan di bab selanjutnya.&lt;br /&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-2.aspx&amp;amp;subject=Multilanguage ASP.Net Website tips (part 2)" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-2.aspx&amp;amp;t=Multilanguage+ASP.Net+Website+tips+(part+2)" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 2) to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-2.aspx&amp;amp;title=Multilanguage+ASP.Net+Website+tips+(part+2)" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 2) to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-2.aspx&amp;amp;phase=2" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 2) to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-2.aspx&amp;amp;title=Multilanguage+ASP.Net+Website+tips+(part+2)" target="_blank" title="Add Multilanguage ASP.Net Website tips (part 2) to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=53254" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/localization/default.aspx">localization</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/multi-language/default.aspx">multi-language</category></item><item><title>Multilanguage ASP.Net Website tips (part 1)</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx</link><pubDate>Sun, 22 Jun 2008 04:16:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:53234</guid><dc:creator>anwarchandra</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=53234</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx#comments</comments><description>&lt;p&gt;*ngetes scribe fire*

Bekerja di timur tengah memang banyak dukanya, ya panas, ga ketemu pacar, udah gitu disuruh bikin website yang multi-language. Tahu sendiri kan gaya membaca website arab yang kidal (baca: dari kanan ke kiri). 

&lt;/p&gt;&lt;p&gt;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/normal.png" alt="" /&gt;

&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/arabic.png" alt="" /&gt;

&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Repot, bukan cuma terjemahin kata demi kata, tapi harus menyediakan banyak waktu untuk otak-atik css. Sambil asik sendiri mencari cara mengatasi kerepotan ini, saya mencoba membagikan tips-tips yang saya sudah coba sendiri. dan terbukti maknyooos..

&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Part 1:Siapin MasterPage.&lt;/b&gt;
&lt;/p&gt;&lt;p&gt;Saya ingin website ini memiliki layout yang konsisten, tapi tidak mau melakukan copy-paste beberapa kali ke semua halaman. Makanya saya membuat Master Page.
Jika belum pernah coba Master Page, bisa lihat tulisan rekan kita di &lt;a href="https://geeks.netindonesia.net/blogs/fackhry/archive/2008/06/11/progress-number-3-pembuatan-lay-out-dengan-master-page.aspx"&gt;sini&lt;/a&gt;.

Di website yang saya kerjakan, sebuah button untuk mengganti bahasa dari bahasa inggris ke arab dan sebaliknya, wajib hukumnya, kalo gak mau dihukum sama bos ;p
Oleh sebab itu, button ini mesti ada di master page.

&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Button, jangan combobox.&lt;/b&gt;
&lt;/p&gt;&lt;p&gt;Sebaiknya anda gunakan button saja dibandingkan combobox.
Jika anda menggunakan combobox, entah kenapa, orang arab bisa bingung mencari cara mengubah bahasanya.
Karena jika anda memakai combobox, bisa jadi halaman di bahasa inggrisnya tidak akan terlihat adanya tulisan arab, dan sebaliknya. (coba dipikirin kenapa)
&lt;/p&gt;&lt;p&gt;
&lt;b&gt;Tempatkan button agak menyendiri dan berlawanan arah.&lt;/b&gt;
&lt;/p&gt;&lt;p&gt;Jika digabung-gabungkan dengan menu lain, tentu orang arab jadi ragu, gak ngeh atau takut salah pencet.
Dari penerawangan saya selama ini, sudah ada di mindset orang arab bahwa kalau menu di kiri, tombol &amp;#39;ganti-ke-bahasa-arab&amp;#39; ada di kanan, dan sebaliknya. Mungkin karena memang gaya membaca mereka kidal, atau memang website arab hampir semuanya begitu. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;

menu ini,anda tahu kan harus mencet yang mana kalau mau ganti ke bahasa arab?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/menuarabic.png" alt="" /&gt;
&lt;/p&gt;&lt;p&gt;
dalam arabic seharusnya begini, anda tahu kan harus mencet apa kalau mau ganti ke bahasa inggris?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="https://geeks.netindonesia.net/blogs/anwarchandra/menunormal.png" alt="" /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;LinkButton lebih baik daripada Button&lt;/b&gt;
&lt;/p&gt;&lt;p&gt;Saya rekomendasikan anda untuk memakai LinkButton daripada Button.
Ada kemungkinan anda bingung untuk mencari font yang bagus dan tegas sehingga anda memutuskan menggunakan gambar daripada pusing mencari Font arabic yang tepat. Pada cuplikan menu saya diatas, tulisan arab itu bukan text, melainkan gambar.

&lt;/p&gt;&lt;p&gt;Wah ini part pertama, gak tau deh bakalan ada berapa part. Kayaknya semakin saya bego, semakin banyak. Ummh... kalo gitu bakalan banyak bener nih..&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx&amp;amp;subject=Multilanguage ASP.Net Website tips (part 1)" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx&amp;amp;t=Multilanguage+ASP.Net+Website+tips+(part+1)" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 1) to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx&amp;amp;title=Multilanguage+ASP.Net+Website+tips+(part+1)" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 1) to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx&amp;amp;phase=2" target="_blank" title="Submit Multilanguage ASP.Net Website tips (part 1) to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/06/21/multilanguage-asp-net-website-tips-part-1.aspx&amp;amp;title=Multilanguage+ASP.Net+Website+tips+(part+1)" target="_blank" title="Add Multilanguage ASP.Net Website tips (part 1) to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=53234" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/master+page/default.aspx">master page</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/localization/default.aspx">localization</category><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/multi-language/default.aspx">multi-language</category></item><item><title>php &amp; aspx altogether</title><link>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/05/11/php-amp-aspx-altogether.aspx</link><pubDate>Sun, 11 May 2008 11:33:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:47208</guid><dc:creator>anwarchandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/anwarchandra/rsscomments.aspx?PostID=47208</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/05/11/php-amp-aspx-altogether.aspx#comments</comments><description>&lt;p&gt;Kemarin saya telah berhasil menginstall PHP di Windows Vista saya
dengan fast cgi, tetapi sedang malas untuk membuat blog tentang
instalasi tersebut. Jika tertarik, baca how-to nya di &lt;a href="http://blogs.iis.net/bills/archive/2006/10/31/PHP-on-IIS.aspx" title="bill&amp;#39;s blog" target="_blank"&gt;sini&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Sekarang
saya menjajal si php handler dengan membuat sebuah web tak berguna yang
terdiri dari halaman .php dan .aspx. Dari halaman php yang saya buat
akan memanggil fungsi Ajax yang ditangani oleh tetangganya aspx. Untuk
itu, saya akan membutuhkan Ajax.dll versi jaman dulu racikan &lt;i&gt;Michael Schwarz &lt;/i&gt;yang penggunaannya bisa dilihat di &lt;a href="https://geeks.netindonesia.net/controlpanel/blogs/Michael%20Schwarz" title="Michael Schwarz" target="_blank"&gt;sini&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Berikut ini saya tunjukkan lokasi websitenya kedua halaman tersebut.&lt;/p&gt;&lt;p&gt;&lt;img src="http://img110.imageshack.us/img110/2856/1chooselocationzx6.jpg" alt="lokasi" align="" border="" height="454" hspace="" width="577" /&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Tidak lupa, menambahkan referensi Ajax.dll yang membantu saya ber-ajax ria.&lt;/p&gt;&lt;p&gt;&lt;img src="http://img375.imageshack.us/img375/8531/2ajaxdlllq3.jpg" alt="ajax.dll" align="" border="" height="" hspace="" width="" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sekarang saya akan membuat sebuah fungsi sangat sederhana di Default.aspx.cs, yaitu mengambil waktu server&lt;/p&gt;&lt;p&gt;&lt;img src="http://img246.imageshack.us/img246/7090/3ajaxmethodtn7.jpg" alt="ajax method" align="" border="" height="" hspace="" width="" /&gt;&lt;/p&gt;&lt;p&gt;Register
Type For Ajax ini bermaksud untuk membangkitkan javascript yang
membungkus method di atas. Berarti sampai saat ini, kita telah membuat &lt;i&gt;method&lt;/i&gt;
yang mengembalikan waktu di server dan telah membangkitkan javascript
yang mengenal fungsi _Default.AmbilWaktuServer() yang akan
mengembalikan waktu di server.&lt;/p&gt;&lt;p&gt;Rencananya, pada kedua halaman
yang akan saya buat, katakanlah Default.aspx dan test.php akan memiliki
body yang sama. Saya hanya membutuhkan sebuah elemen div untuk
menampilkan waktu di server. Saya buat sesederhana mungkin seperti ini&lt;/p&gt;&lt;p&gt;&lt;img src="http://img50.imageshack.us/img50/9517/4bodyjd6.jpg" alt="body" align="" border="" height="" hspace="" width="" /&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sesuai pedoman penggunaan Ajax.dll dari &lt;i&gt;Michael Schwarz&lt;/i&gt;, maka script pada halaman aspx akan menjadi seperti ini&lt;/p&gt;&lt;p&gt;&lt;img src="http://img207.imageshack.us/img207/5183/5headaspxhx1.jpg" alt="head aspx" align="" border="" height="" hspace="" width="" /&gt;&lt;/p&gt;&lt;p&gt;Bagi yang tidak terbiasa dengan &lt;a href="http://jquery.com/" title="jquery" target="_blank"&gt;jquery&lt;/a&gt;, intinya web browser akan menjalankan 2 baris script pada saat halaman ini &lt;i&gt;loaded&lt;/i&gt;:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Memanggil fungsi Ajax AmbilWaktuServer untuk meminta data waktu dari server.&lt;/li&gt;&lt;li&gt;menampilkan response dari server ke dalam elemen div dengan id=&amp;quot;timelabel&amp;quot;. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Tembak layar hasilnya adalah seperti ini&lt;/p&gt;&lt;p&gt;&lt;img src="http://img329.imageshack.us/img329/7039/6posturlnx1.jpg" alt="hasil" align="" border="" height="" hspace="" width="" /&gt;&lt;/p&gt;&lt;p&gt;hasilnya adalah 10/05/2008 18:04:50. Ini adalah waktu server yang didapatkan dengan memanggil fungsi Ajax pada saat &lt;i&gt;loaded&lt;/i&gt;.
Dengan memanfaatkan addons di suatu browser, saya dapat mengetahui url
yang dipanggil dengan _Default.AmbilWaktuServer untuk meminta data
waktu di server. Untuk kepentingan halaman tetangganya, php, saya copy
url tersebut beserta query stringnya sehingga saya dapat memanggilnya
pula. Ini adalah tembak layar dari kodingan php tersebut&lt;/p&gt;&lt;p&gt;&lt;img src="http://img145.imageshack.us/img145/6954/7headphpni7.jpg" alt="halaman php" align="" border="" height="" hspace="" width="" /&gt;&lt;/p&gt;&lt;p&gt;Sekali lagi saya dibantu oleh jquery untuk memanggil url yang barusan.&amp;nbsp; Dan hasilnya pun keluar &lt;/p&gt;&lt;p&gt;&lt;img src="http://img229.imageshack.us/img229/483/8resultphpig6.jpg" alt="hasilnya php" align="" border="" height="" hspace="" width="" /&gt;&lt;/p&gt;&lt;p&gt;Wah ketahuan deh selang waktunya 7 menit kurang 7 detik.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Bagaimana jika mengujinya dengan session?&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Satu
hal yang membuat saya penasaran adalah bagaimana kedua halaman ini
(aspx dan php) menangani session. Sehingga, di atas elemen div
&amp;quot;timelabel&amp;quot; tersebut, saya akan menampilkan session[&amp;quot;views&amp;quot;]. Kedua
halaman ini akan membuat dan menampilkan informasi &lt;i&gt;views&lt;/i&gt; di session ( session[&amp;quot;views&amp;quot;] ) yang di&lt;i&gt;increment&lt;/i&gt; setiap halaman tersebut dipanggil.&lt;/p&gt;&lt;p&gt;(upload gambar kelamaan ah)&lt;/p&gt;&lt;p&gt;&lt;b&gt;test.php:&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;nbsp;&amp;nbsp;  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; session_start();&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset($_SESSION[&amp;#39;views&amp;#39;]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $_SESSION[&amp;#39;views&amp;#39;] = $_SESSION[&amp;#39;views&amp;#39;]+ 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $_SESSION[&amp;#39;views&amp;#39;] = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &amp;quot;views = &amp;quot;. $_SESSION[&amp;#39;views&amp;#39;]; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &amp;#39;&amp;lt;div id=&amp;quot;timelabel&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;#39;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&amp;nbsp;&amp;nbsp;  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;body @ Default.aspx:&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; views = &amp;lt;asp:Label ID=&amp;quot;Views&amp;quot; runat=&amp;quot;server&amp;quot; &amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;timelabel&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Default.aspx.cs&lt;/b&gt;&lt;/p&gt;public partial class _Default : System.Web.UI.Page &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ajax.Utility.RegisterTypeForAjax(typeof(_Default));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Session[&amp;quot;views&amp;quot;] == null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; Session[&amp;quot;views&amp;quot;] = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; Session[&amp;quot;views&amp;quot;] = 1 + Convert.ToInt32(Session[&amp;quot;views&amp;quot;].ToString());&lt;br /&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Views.Text = Session[&amp;quot;views&amp;quot;].ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Ajax.AjaxMethod()]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static string AmbilWaktuServer()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return DateTime.Now.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dan ternyata informasi &lt;i&gt;Views&lt;/i&gt;
session yang tersimpan di session pada kedua halaman berbeda. Apakah
karena proses yang menghandle masing-masing halaman berbeda sehingga
httpcontext yang disimpan juga berbeda?&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/05/11/php-amp-aspx-altogether.aspx&amp;amp;subject=php &amp;amp; aspx altogether" target="_blank" title="Send via email"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/05/11/php-amp-aspx-altogether.aspx&amp;amp;t=php+%26amp%3b+aspx+altogether" target="_blank" title="Submit php &amp;amp; aspx altogether to DotNetKicks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/05/11/php-amp-aspx-altogether.aspx&amp;amp;title=php+%26amp%3b+aspx+altogether" target="_blank" title="Submit php &amp;amp; aspx altogether to del.icio.us"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/05/11/php-amp-aspx-altogether.aspx&amp;amp;phase=2" target="_blank" title="Submit php &amp;amp; aspx altogether to digg.com"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/anwarchandra/archive/2008/05/11/php-amp-aspx-altogether.aspx&amp;amp;title=php+%26amp%3b+aspx+altogether" target="_blank" title="Add php &amp;amp; aspx altogether to Live Bookmarks"&gt;&lt;img src="https://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=47208" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/anwarchandra/archive/tags/php+fastcgi+jquery/default.aspx">php fastcgi jquery</category></item></channel></rss>