Custom Paging with ASPNET MVC2 and HTML Table

ASP.NET MVC provide many features to generate clean HTML that is search engine friendly and look less cluttered then Web forms. There is no data grid control present in the framework but it helps you build in every possible way to create one on your own with basic HTML table.

Today, we will see how to create Paging along with table footer to navigate through the pages. [More]

Tags: , , ,

ASP.NET | LINQ | MVC

Weather Information from Google Weather using ASP.NET and LINQ to XML

Today, we will take advantage of Google Weather API to retrieve weather information for a given zip code and show it on our ASP.NET page. Google weather (http://www.google.com/ig/api?weather=96715) API return data in XML format and we will parse this data on our page using LINQ to XML and traverse through nodes to retrieve the returned information. This is a very basic example but once we know how to fetch one node information rest all is a piece of cake. [More]

Tags: , , , ,

ASP.NET | LINQ | XML

GridView Custom Paging Using LINQ and Object Data Source

Retrieving large set of data from database is common need for any data driven website and if you have one you know how much effort it take to maintain the performance of that website. We all have used GridView to present data on web pages. For small chunk of data Gridview's inbuilt paging technique can work just fine but for large data using inbuilt technique is going to have huge impact on performance. Custom paging is an efficient technique to only send number of records that are visible on the page rather than loading whole data in server's memory.

Today we will see how to implement custom paging using LINQ to SQL and object data source. For demo purposes we will use northwind database. [More]

Tags: , , , ,

ASP.NET | LINQ