<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>films-araigun</title>
	<atom:link href="http://films.araigun.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://films.araigun.com</link>
	<description>watch movie in your vacation</description>
	<lastBuildDate>Thu, 29 Jul 2010 03:46:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>filter เอาแต่ตัวเลขเท่านั้น</title>
		<link>http://films.araigun.com/?p=411</link>
		<comments>http://films.araigun.com/?p=411#comments</comments>
		<pubDate>Thu, 29 Jul 2010 03:46:03 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=411</guid>
		<description><![CDATA[filter เอาแต่ตัวเลขเท่านั้น ถ้ามีตัวหนังโผล่มาหล่ะก็ ฝันไปเถอะ แกอย่าอยู่เลย เอิ๊กๆๆ
private string filternumber(string mobile)
{
if( mobile == string.Empty)
return mobile;
string output = string.Empty;
foreach (char c in mobile.ToCharArray())
{
if (char.IsDigit(c))
output += c.ToString();
}
return output;
}
]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=411</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Invoke Server-Side method from Client-Side using jQuery</title>
		<link>http://films.araigun.com/?p=408</link>
		<comments>http://films.araigun.com/?p=408#comments</comments>
		<pubDate>Sat, 19 Jun 2010 04:21:25 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=408</guid>
		<description><![CDATA[บางครั้งที่เราต้องการให้ Html Control เรียก method ที่ฝั่ง server เราอาจจะเลือกที่จะใช้ json เข้ามาช่วย(จริง ๆ มันเป็นแค่รูปแบบของข้อมูลที่ประกอบด้วย [, }, : เพื่อเปลี่ยนให้เป็นข้อมูลที่ computer สามารถอ่านได้) โดยพระเอกของเราก็คือ jQuery นั้นเอง ตัวผมเองก็พึ่งที่จะหัดที่จะใช้มัน (ไม่รู้ว่าช้าไปไหม) พนวกกับมี project ที่ต้องทำงานในลักษณะนี้พอดีเลยได้ลองเขียนออกมาได้อย่างที่เห็น
หลัก ๆ ที่จะมีคือ
Server-Side method จะต้องเป็น static และ มี attribute ของ method เป็น WebMethod
data ของ $.ajax คือชื่อของ parameter ของ method ฝั่ง Server-Side (ในที่นี้ผมตั้งว่า e)
test-ajax.aspx
&#60;%@ Page Language="C#" AutoEventWireup="true" CodeFile="test-ajax.aspx.cs" Inherits="backend_test_ajax" %&#62;&#60;!DOCTYPE html [...]]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=408</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASP.NET UploadPanel กับ FileUpload</title>
		<link>http://films.araigun.com/?p=406</link>
		<comments>http://films.araigun.com/?p=406#comments</comments>
		<pubDate>Tue, 15 Jun 2010 03:15:02 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=406</guid>
		<description><![CDATA[FileUpload คร๊า&#8230; ไม่ว่าจะเป็น input ของ html หรือว่า .net ก็ตามก็เจอปัญหาเหมือนกันเวลาที่มันอยู่ใน Update Panel เรื่องมันก็เกิดตอนที่กด Submit From หน่ะซิน๊า  Request.Files มันเกิดไม่มีข้อมูลซะงั้นงี้เราจะทำยังไงกันดีละเนี๊ย ! ข้อมูลของไฟล์ที่เราจะอัพโหลดมันหายไปไหนกัน (FileUpload.HasFile = false) มีพี่เค้าบอกว่าใน web เค้ามีวิธีแก้ไขกันมากมายเลยน๊า แต่เค้าไปเจอวิธีที่สะดวกที่สุดก็คือ ให้ Register Control ที่จะเป็น Trigger ในการ save ข้อมูลลงใน Page Load ดังนี้
C#
ScriptManager.GetCurrent(this).RegisterPostBackControl(btnSave);
vb
ScriptManager.GetCurrent(Me).RegisterPostBackControl(upload)
ขอบคุณพี่กบที่แนะนำครับ
]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=406</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If Condition in C# by p&#8217;kob</title>
		<link>http://films.araigun.com/?p=388</link>
		<comments>http://films.araigun.com/?p=388#comments</comments>
		<pubDate>Fri, 04 Jun 2010 09:05:26 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=388</guid>
		<description><![CDATA[มีเรื่องน่าสนใจของif condition c# มาฝากกัน เป็น note ที่พี่กบเขียนเอาไว้กั๊บ
string iAm;
if (otherPerson == null)
iAm= &#8220;KOB&#8221;;
else
iAm= otherPerson ;
ทุกคนคงรู้ว่าสามารถเขียนแทนได้ด้วย&#8230;
string iAm= (otherPerson == null) ? &#8220;KOB&#8221; : otherPerson ;
แต่จะมีสักกี่คนรู้ว่าเขียนแบบนี้ก็ได้&#8230;
string iAm= otherPerson ?? &#8220;KOB&#8221; ;
เอาเม้นมาฝากกันด้วย อ่านแล้วอาจจะทำให้เข้าใจขึ้นนะ


]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=388</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML Designer Tip by p&#8217;kob</title>
		<link>http://films.araigun.com/?p=383</link>
		<comments>http://films.araigun.com/?p=383#comments</comments>
		<pubDate>Wed, 26 May 2010 03:37:44 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Designer]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Designer]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=383</guid>
		<description><![CDATA[ข้อควรระวังในขั้นตอนการเปลี่ยนจาก Design เป็น html
เนื่องจากลูกค้า เวลา Test จะใช้ ทุก Browser (IE, FF, Chrome) ข้อควรระวังคือ
1. ใน CSS ไม่ควรใช้
-webkit-&#8230;&#8230;.
-moz&#8230;&#8230;.

เพราะมันจะทำงานได้เฉพาะ FF กับ Chrome เท่านั้น
ซึ่งตอนนี้ตัว Render Web จะมีหลัก ๆ 3 อันคือ

1. Webkit ใช้กับ Chrome, Safari
2. Gecko สำหรับ FF
3. IE Render (ขึ้นอยู่กับแต่ละ Version)

ซึ่งถ้าจะใช้ควรหาอันที่มันรองรับทั้ง 3 Render Engine เช่น การลงสีแบบงไล่สี สามารถทำให้แสดงผลได้ทั้ง 3 Browser (IE6 ใช้ ไม่ได้อยู่ดี)
 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=&#8217;#fe7575&#8242;, endColorstr=&#8217;#ffb0b0&#8242;); /* for IE */
background: [...]]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=383</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use HTML Meta Tag</title>
		<link>http://films.araigun.com/?p=372</link>
		<comments>http://films.araigun.com/?p=372#comments</comments>
		<pubDate>Fri, 02 Apr 2010 05:13:31 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=372</guid>
		<description><![CDATA[Metadata Elements หรือ Meta Tag คือ  ส่วนของซอร์สโค๊ดที่อยู่ใน Head (ส่วนหัว) ของเอกสาร HTML  โดยปกติเมื่อเราเปิดหน้าเว็บไซต์หนึ่ง ๆ ขึ้นมา ส่วนของ Head  จะถูกประมวลผลก่อน ดังนั้น Meta  Tag จึงเป็นส่วนที่บอกคุณลักษณะของเว็บนั้น ๆ  ว่าเป็นเว็บเกี่ยวกับอะไร แสดงผลด้วยภาษาอะไร ใครเป็นผู้เขียน  มีคำค้นที่ใช้ว่าอะไร เป็นต้น
ตัวอย่าง Meta Tag ในไฟล์ html เป็นดังนี้
&#60;head&#62;
&#60;title&#62;How to use HTML Meta Tags at            [...]]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=372</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>popup message กับ scriptmanager ajax</title>
		<link>http://films.araigun.com/?p=370</link>
		<comments>http://films.araigun.com/?p=370#comments</comments>
		<pubDate>Fri, 26 Feb 2010 05:58:12 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=370</guid>
		<description><![CDATA[ใช้บ่อยเหลือเกินแต่ลืมทุกทีเลย จนได้พี่ยุทธมาช่วยไว้ ที่จริงการเรียก js ใน .net มีหลายวิธีไม่ว่าจะเป็น Response.Write(js) หรือจะใช้ registerStartupScript(type,id, js, true) แล้วก็ยังมีวิธีอื่นๆอีก เอาไว้คราวหน้าจะเอามาเสนอก็แล้วกันนะ แต่เมื่อพวกนี้มาเจอกับ scriptmanager ของ ajax แล้วก็เจอปัญหาขึ้นมาซะงั้น js มักจะไม่ทำงาน หว่าอย่างนี้ก็แย่เลยซินะ อิอิ แต่ไม่ต้องห่วงมีวิธีมาช่วยเราแล้ว ตามนี้เลยนะ อ่ะอันนี้ขอให้เครดิตพี่ยุทธที่ใจดีให้คำตอบนะก๊าบ ขอบคุณกั๊บ
string   js  =  &#8220;&#8221;;
js = &#8220;alert(&#8217;ข้อความ&#8217;);&#8221;;
if(ScriptManager.GetCurrent(base.Page).IsInAsyncPostBack)
{
ScriptManager.RegisterStartupScript(this, this.GetType(),&#8221;Rating_Scritp_&#8221;+this.ClientId.ToString(),js,true);
}else{
this.Page.ClientScript.RegisterStartupScript(this.GetType(),this.ClientId,js,true);
}
]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=370</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET Contains ()</title>
		<link>http://films.araigun.com/?p=368</link>
		<comments>http://films.araigun.com/?p=368#comments</comments>
		<pubDate>Fri, 26 Feb 2010 04:45:32 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=368</guid>
		<description><![CDATA[คุณMethod Contains ()   มีความสามารถค้นหาว่าข้อความมีอยู่จริงหรือไม่มีค่าเป็น Trueหรือ False

เราสามารถนำไปประยุทต์ใช้ได้กับการ searchหรือการตรวจสอบคำซ้ำ โดยไม่ได้ queryจากฐานข้อมูล ไม่ว่าจะใช้กับ String หรือ Arrayหรือว่า ArrayListเอาไปช่วยในการค้นหาคำ เอาไปใช้ในการสร้างเงื่อนไขต่าง มันก็ชั่งง่ายได้ไปหมด อิอิชักอยากจะรู้แล้วซิว่ามันทำอะไรได้บ้าง 


Method: String. Contains (find-string)
 ArrayList.Contains(Data) //ใช้ตรวจว่ามี dataที่เราค้นหาอยู่ใน array หรือไม่
Return: Boolean
ตัวอย่างการตรวจสอบข้อมูลซ้ำใน asp.net (vb)

Try
คำสั่ง 

Catch ex As Exception
If (ex.Message.Contains(&#8221;Violation of PRIMARY
KEY&#8221;)) Then
TextBox4.Text = &#8220;ข้อมูลซ้ำกรุณาตรวจสอบ&#8221;
End If
End Try

ตัวอย่าง

Dim a As New ArrayList
a.Add(&#8220;Bob&#8221;)
a.Add(&#8220;Jack&#8221;)
a.Add(&#8220;Jane&#8221;)
a.Add(&#8220;Jany&#8221;)
 
If a.Contains(&#8220;Jack&#8221;) Then
MsgBox(&#8220;Jack is in array&#8221;)
Else
MsgBox(&#8220;Jackisn&#8217;t in array&#8221;)
End [...]]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=368</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Amazing IndexOf() Method</title>
		<link>http://films.araigun.com/?p=361</link>
		<comments>http://films.araigun.com/?p=361#comments</comments>
		<pubDate>Fri, 26 Feb 2010 03:05:48 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=361</guid>
		<description><![CDATA[Amazing IndexOf() Method
คุณmethod IndexOf ช่างน่าประทับจริงๆ มีความสามารถในการค้นหาตำแหน่งของสิ่งที่เราต้องการได้ อิอิเราสามารถนำไปประยุทต์ใช้ได้หลายๆงานเลย ไม่ว่าจะใช้กับ String หรือ Array หรือว่า ArrayListเอาไปช่วยในการค้นหาคำ เอาไปใช้ในการสร้างเงื่อนไขต่าง มันก็ชั่งง่ายได้ไปหมด อิอิชักอยากจะรู้แล้วซิว่ามันทำอะไรได้บ้าง
ค้นหาได้ทั้ง  char, string ทั้งกำหนดจุดเริ่มหา และ จุดสิ้นสุดการหาได้

method: indexOf(search, start ); 
indexOf(search); 
indexOf(search, start, numberOfChars);  

 return type:number 
 
ข้อเสียนิดหน่อย string ที่ใช้ในการค้นหาจะเป็น case sensitive หน่ะจิน๊า อันนี้ก็ต้องระวังหน่อย

ตัวอย่างจ้า

Dim str As String
str = &#8220;veeza.exteen.com&#8221;
Response.Write(&#8220;str = &#8220; &#38; str)
Response.Write(&#8220;str.IndexOf(&#8221;exteen&#8221;, 0) = &#8221; &#38; str.IndexOf(&#8220;exteen&#8221;, [...]]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=361</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vb VS c# :หาจำนวนวันที่ผ่านไปแล้วว่ามีกี่วันกี่เดือนกี่ปี</title>
		<link>http://films.araigun.com/?p=355</link>
		<comments>http://films.araigun.com/?p=355#comments</comments>
		<pubDate>Wed, 13 Jan 2010 04:06:04 +0000</pubDate>
		<dc:creator>katicks</dc:creator>
				<category><![CDATA[knowledge]]></category>

		<guid isPermaLink="false">http://films.araigun.com/?p=355</guid>
		<description><![CDATA[
อันนี้ของติ๊กก๊าบ เป็นcode vb.net
หารับค่าวันเวลามาเป็นสตริง  แล้วหาว่าผ่านมาแล้วเป็นเวลาเท่าไหร่ กี่วัน กี่เดือน กี่ปี
ตัวอย่างเวลาที่รับมาต้องมีformat (yyyy/mm/dd)
ได้เวลามาแล้วก็แปลงให้เป็นชนิดข้อมูลแบบวันที่ แล้วนำมาลบกับเวลาปัจจุบัน โดยใช้ DateInterval.Day เพื่อลบให้ได้เป็นจำนวนวันออกมา
  Protected Function FindTime(ByVal time As Date) As String
    Dim tmp As String = String.Empty
        Dim today As Date = Date.Now
        'Dim today As Date = [...]]]></description>
		<wfw:commentRss>http://films.araigun.com/?feed=rss2&amp;p=355</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
