Monday, October 29, 2007

วิธีการใช้ Visual Studio สร้าง Data Access Layer ด้วย DataSet Designer ซึ่งง่ายและรวดเร็วในการสร้างสไตล์วิชวล ไม่ต้อง coding

http://www.theserverside.net/tt/articles/showarticle.tss?id=DataSetDesigner

 

posted on Monday, October 29, 2007 7:09:25 PM (SE Asia Standard Time, UTC+07:00)  #    Comments [0]

เทคนิคการทำ Data Paging กับ Data List ของ Scott Gu

http://weblogs.asp.net/scottgu/archive/2006/01/07/434787.aspx

 

posted on Monday, October 29, 2007 7:05:53 PM (SE Asia Standard Time, UTC+07:00)  #    Comments [0]
 Thursday, October 25, 2007

เทคนิคเล็กๆน้อย ด้วยภาษา C#

byte[] ascii = System.Text.Encoding.GetEncoding("windows-874").GetBytes("สวัสดี");
posted on Thursday, October 25, 2007 7:46:24 PM (SE Asia Standard Time, UTC+07:00)  #    Comments [0]
posted on Thursday, October 25, 2007 7:42:50 PM (SE Asia Standard Time, UTC+07:00)  #    Comments [0]
 Wednesday, October 24, 2007
โปรแกรมส่งค่า HTTP POST ด้วย C#
using System.Net;
...
string HttpPost (string uri, string parameters)
{ 
   // parameters: name1=value1&name2=value2    
   WebRequest webRequest = WebRequest.Create (uri);
   //string ProxyString = 
   //   System.Configuration.ConfigurationManager.AppSettings
   //   [GetConfigKey("proxy")];
   //webRequest.Proxy = new WebProxy (ProxyString, true);
   //Commenting out above required change to App.Config
   webRequest.ContentType = "application/x-www-form-urlencoded";
   webRequest.Method = "POST";
   byte[] bytes = Encoding.ASCII.GetBytes (parameters);
   Stream os = null;
   try
   { // send the Post
      webRequest.ContentLength = bytes.Length;   //Count bytes to send
      os = webRequest.GetRequestStream();
      os.Write (bytes, 0, bytes.Length);         //Send it
   }
   catch (WebException ex)
   {
      MessageBox.Show ( ex.Message, "HttpPost: Request error", 
         MessageBoxButtons.OK, MessageBoxIcon.Error );
   }
   finally
   {
      if (os != null)
      {
         os.Close();
      }
   }
 
   try
   { // get the response
      WebResponse webResponse = webRequest.GetResponse();
      if (webResponse == null) 
         { return null; }
      StreamReader sr = new StreamReader (webResponse.GetResponseStream());
      return sr.ReadToEnd ().Trim ();
   }
   catch (WebException ex)
   {
      MessageBox.Show ( ex.Message, "HttpPost: Response error", 
         MessageBoxButtons.OK, MessageBoxIcon.Error );
   }
   return null;
} // end HttpPost 
posted on Wednesday, October 24, 2007 7:25:05 PM (SE Asia Standard Time, UTC+07:00)  #    Comments [0]

เพื่อให้การแสดงผล Enterprise Manager เร็วขึ้นถ้ามี database เยอะๆ
ให้ทำการ ซ่อน Database อันที่ user คนนั้นไม่มีสิทธิใช้งานออกไป

http://support.microsoft.com/kb/889696/en-us

posted on Wednesday, October 24, 2007 5:49:34 PM (SE Asia Standard Time, UTC+07:00)  #    Comments [0]

หลังจาก download มาใช้นานแล้วแต่ยังไม่ได้ setup กับ Blog ตัวเองในที่สุดก็ได้ฤกษ์เปลี่ยนเป็น dasBlog version 2 ซะที เดิมใช้ dasBlog 1.9 อยู่ (bug เพียบ)
คิดว่าจะเปลี่ยนไปใช้ WordPress เหมือนคนอื่นบ้างแต่ก็ไม่ค่อยจะรู้ php มาก เลยเอาว่ะ dasBlog ก็ได้เพราะถนัด C# อยู่แล้ว แกะ Code พอได้อยู่ สงสัยต้องทำ Localize เป็นภาษาไทยเองมั๊ง ไม่เห็นมีคนทำ (จะทำเองก็ขี้เกียจ งานตัวเองก็เยอะอยู่แล้ว)

posted on Wednesday, October 24, 2007 3:53:38 AM (SE Asia Standard Time, UTC+07:00)  #    Comments [0]