Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        
            
                
                    
                        
                            
                                | Author | 
                                
                                 Topic  | 
                             
                            
                                    | 
                                         creizi 
                                        Starting Member 
                                         
                                        
                                        1 Post  | 
                                        
                                        
                                            
                                            
                                             Posted - 2011-03-28 : 02:37:04
                                            
  | 
                                             
                                            
                                            | Hy there!For the past few weeks, I am trying to learn the ASP.NET MVC platform. Right now, I am working on displaying a table which can be sorted, filtered, and paged.During the weekend, I managed to stumble upon a keyword (I think) in an example which got me very very puzzled. Here is the snippet:[code]return this.SortAscending ? "it.["+ this.SortBy + "]" + "asc" : "it.[" + this.SortBy + "]" + "desc".My simple question is: what does "it" stand for?Thank you very much for your answers!Per aspera ad astra! (and a bit of luck, too) | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     sunitabeck 
                                    Master Smack Fu Yak Hacker 
                                     
                                    
                                    5155 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2011-03-28 : 07:07:42
                                          
  | 
                                         
                                        
                                          | I don't think it is a keyword. It is a table name (or an alias for a table name) in your database.  If you print out the SQL statement that is generated by the code that calls this, you will see something like "it.AColumnName asc" or it.AColumnName desc".  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |