  | 
              
	              
	                
  
    
	 
        Client-side Paging without JavaScript & ALLALLALL     | 
   
  
    |   | 
   
 
 
 
              
  
          
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 ไหน ตย. ขอชมหน่อย จะได้เพิ่มรอยหยักในสมองอันน้อยนิด   
 
#Edit1 : เจอล่ะ ขอไปศึกษา ทำความเข้าใจก่อน                        
               
               | 
             
            
              
			                
  ประวัติการแก้ไข 2014-03-25 12:06:00 2014-03-25 12:06:00              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-25 12:04:23 | 
                        By :
                            apisitp | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                                          
               
               | 
             
            
              
			  			  
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-25 12:34:48 | 
                        By :
                            mr.win | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 ผมเห็นหลายฯคนพูดถึง BootStrap กัน(บ่อยมาก)  แต่ผมไม่ได้สนใจ วันนี้ผมลอง Download BootStrap 3 มาลองเล่นดู 
ผมไม่อยากจะอุทานออกมาเลยแต่ก็อดไม่ได้ "พระเจ้า" มันช่างวิเศษอะไรเช่นนี้ มนุษย์หลังเขาอย่างผม งงไปเลยครับ 
 
BootStrap 3  
1. มีข้อดีเกินกว่าคำบรรยายใดฯ  
2. ข้อเสียเท่าที่เห็น อาจทำให้การโหลดหน้าเวปเพจ ช้าลงได้ ( ใช้ CSS + JavaScript ในการจัดรูปแบบ) 
 
สรุปว่า ข้อดีมีมากเกินจะบรรยาย ข้อเสียแทบจะไม่มีเลย                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-25 20:36:21 | 
                        By :
                            love9713 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 ครั้งแรกในชีวิตกับ BootStrap 
 
  
 
Code (PHP) 
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../assets/ico/favicon.ico">
    <title>Sticky Footer Navbar Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="sticky-footer-navbar.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <!-- Fixed navbar -->
    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
    <!-- Begin page content -->
    <div class="container">
      <div class="page-header">
        <h1>Sticky footer with fixed navbar</h1>
      </div>
      <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added with <code>padding-top: 60px;</code> on the <code>body > .container</code>.</p>
      <p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
	  <table class="table">
        <thead>
            <tr>
                <th>#</th>
                <th>First Name</th>
                <th>Last Name</th>
                <th>Address</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>สมปอง</td>
                <td>น้องสมชาย</td>
                <td>บนฟ้า</td>
            </tr>
            <tr>
                <td>2</td>
                <td>สมหญิง</td>
                <td>ยิงกระต่าย</td>
                <td>บนดิน</td>
            </tr>
            <tr>
                <td>3</td>
                <td>บนฟ้า</td>
                <td>มีเฆมลอย</td>
                <td>บนดอยมีเฆมบัง</td>
            </tr>
        </tbody>
    </table>
    </div>
    <div id="footer">
      <div class="container">
        <p class="text-muted">Place sticky footer content here.</p>
      </div>
    </div>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
  </body>
</html>
                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-25 20:50:55 | 
                        By :
                            love9713 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 System.Dynamic คือของใหม่สำหรับ .NET 4 (2010) 
 
ผมก็ไม่เคยได้ใช้งานมันเลย วันนี้ขอลองดูสักตั้งหนึ่ง และจะทดสอบบนสภาพแวดล้อมจริง (ผมเช่า Host ราคาอนาถาเอาไว้) 
จะลองโหลดข้อมูลครั้งละ สองแสนระเบียนผ่านเวป โดย Host ที่มีข้อจำกัดมากมายเหลือเกิน 
 
 
แม้แต่ตัวของมันเองยังเป็น Dynamic ก็ไม่ต้องให้คำนิยามอะไรอีกแล้ว 
 
Code (VB.NET) 
        Dim lstEpdObj As New List(Of ExpandoObject)
        Dim DynColumns As Integer = 10 'สร้าง 10 Columns
        For r As Integer = 0 To 200000 'สร้าง 2 แสนระเบียน (Rows)
            Dim epdObj As New ExpandoObject()
            Dim p = TryCast(epdObj, IDictionary(Of String, Object))
            For c As Integer = 0 To DynColumns - 1
                p("dynColumn" & c) = "dynValue-" & r & c
            Next
            lstEpdObj.Add(epdObj)
        Next
        'แปลง Dynamic Object ให้เป็น DataTable ที่เราเราท่านท่านคุ้นเคยกัน
        Dim lst = lstEpdObj.Cast(Of IDictionary(Of String, Object))()
        If (Not lst.Any()) Then
            Dim dtTemp As New DataTable()
            lst.First().Keys.ForEach(Function(c) dtTemp.Columns.Add(c)) 'สร้างคอลัมภ์ (10 Columns)
            lst.ForEach(Sub(r) dtTemp.Rows.Add(r.Values.ToArray())) 'สร้างแถว (200,000 Rows)
            GridView1.DataSource = dtTemp
            GridView1.DataBind()
        End If
                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-26 05:23:46 | 
                        By :
                            love9713 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 จาก #NO 7 ไหนฯก็ไหนแล้ว ฉวยหยิบเอา #NO 107037 มาทดสอบด้วย 
 
และปรับปรุงบัก (Bug) นิดหน่อย 
LonglexTo.cs  บรรทัดที่ 165                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-26 06:06:55 | 
                        By :
                            love9713 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 วันนี้ผมรู้สึกแปลกฯ (เหงา และ อวดรวย)  
ผมรู้สึกว่าผมเป็น User ในคราบ Programmer (ประโยคนี้ผมเอามาจาก Internet) 
... 
... 
... 
วันนี้ภรรยาของผม ไปโน่นแหล่ว "เกาหลี" (2014-03-30 01:00 AM +7) 
วันนี้ผมก็เลยมานั่งดู และทำความเข้าใจกับมัน  "JSON" 
... 
... 
... 
 
JSON คืออะไร? 
 
Code (VB.NET) 
    Public Shared Function ExpandoObjectToJson(ByVal expandoObj As ExpandoObject) As String
        Dim sz As New JavaScriptSerializer() ' Json.NET (www.codeplex.com/json.NET)
        Dim json As New StringBuilder()
        Dim lstkv As New List(Of String)()
        Dim tmpDog As IDictionary(Of String, Object) = TryCast(expandoObj, IDictionary(Of String, Object))
        json.Append("{")
        For Each kv As KeyValuePair(Of String, Object) In tmpDog
            lstkv.Add(If(TypeOf kv.Value Is ExpandoObject, String.Format("""{0}"": {1}", kv.Key, TryCast(kv.Value, ExpandoObject).ToList()), String.Format("""{0}"": {1}", kv.Key, sz.Serialize(kv.Value))))
        Next
        json.Append(String.Join(",", lstkv.ToArray()))
        json.Append("}")
        Return json.ToString()
    End Function
                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-30 11:39:47 | 
                        By :
                            love9713 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                                          
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-03-31 22:08:15 | 
                        By :
                            deawx | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 มันคืออะไรหาอ่านได้ที่ colorcode.codeplex.com  
เป็นโปรเจคที่ดีตัวหนึ่งเลยทีเดียวครับ เขียนด้วยภาษา C# เหมาะสำหรับผู้ที่ใฝ่รู้ 
 
Project Description 
ColorCode is a library for colorizing source code (also known as syntax highlighting).  
 
Language Support 
ColorCode supports the following languages: 
XML  
Java  
JavaScript  
SQL  
C#  
VB.NET  
ASPX (C#)  
ASPX (VB.NET)  
C++  
PHP  
PowerShell  
Typescript  
FSharp  
 
 
ลองเข้าไปอ่านดูครับ หวังว่าคุณจะได้ประโยชน์กับมันบ้าง 
https://www.thaicreate.com/php/forum/107306.html                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-04-01 08:08:19 | 
                        By :
                            love9713 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 จาก #NO 7 System.Dynamic   
 
สิ่งที่ขาดหายไปนั่นคือ ตัวอย่างการค้นหาข้อมูลใน List(Of Dynamic) 
 
Code (VB.NET) 
Dim list = lstEpdObj.Cast(Of IDictionary(Of String, Object))().ToList()
Dim c0 = list.FindAll(Function(key) key.Item("dynRow0") = "Value-00") 
Dim c1 = list.FindAll(Function(key) key.Item("dynRow0").ToString().EndsWith("0"))
Dim c2 = list.FindAll(Function(key) key.Values()(0).ToString().EndsWith("0")) 
Dim c3 = list.FindAll(Function(key) key.Values()(1).ToString().StartsWith("V")) 
Dim c4 = list.FindAll(Function(key) key.Values()(2).ToString().EndsWith("2")) 
Dim c5 = list.FindAll(Function(key) key.Values()(3).ToString().Contains("00"))
 
 
มาถึงตรงนี้ผมคงจบบทเรียน ทบทวนวิชา VB.NET/C#.NET/SQL Qeury/ & ทบทวนตัวเอง... 
 
วันนี้ตั้งใจว่าจะไปดาวโหลด Yii มาลองศึกษาดูครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2014-04-01 08:29:25 | 
                        By :
                            love9713 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |