Monthly Archives: January 2013

Difference between IEnumerable vs IQueryable in .NET C#

Yes both will give you the same result but deferred execution. The difference is that IQueryable<T> is the interface that allows LINQ-to-SQL (LINQ.-to-anything really) to work. So if you further refine your query on an IQueryable<T>, that query will be … Continue reading

Posted in C#.NET | Tagged , | Leave a comment

Dynamically Load Image in ASP.NET-MVC3 with jQuery

This article will demonstrate you how to load images dynamically, fast at runtime on button click without post back. Many approaches to do this but I will prefer load image using Ajax call. Usually in such case we put Ajax … Continue reading

Posted in jQuery, MVC | Tagged , | Leave a comment

What is ASP.NET MVC APIController ?

ASP.NET Web API is a framework for building and consuming HTTP services that can reach a broad range of clients including browsers, phones and tablets. You can use XML or JSON or something else with your API. JSON is nice … Continue reading

Posted in MVC | Tagged | 1 Comment

document.ready function()

Posted in jQuery | Tagged | Leave a comment

Load Data while Scrolling Page Down with jQuery in ASP.NET

Load Data while Scrolling Page Down with jQuery Load Content While Scrolling With jQuery Now days you can see many web sites loading page data as user scroll down. This is very easy and useful trick to load images as … Continue reading

Posted in jQuery, MVC | Tagged , | 7 Comments

Cascading dropdownlist in ASP.NET MVC with jQuery

One of the very common task when you are working in web is cascading dropdowns. In asp.net web forms it was commonly done by AutoPostBack property of Dropdown List controller. The problem page does full post back. A better approach … Continue reading

Posted in jQuery, MVC | Tagged , | 1 Comment

Convert List to Json Result in ASP.NET MVC

Convert List to Json result, return type as JsonResult. Now to consume same result in Ajax responce we have to use JSON.parse on the same, How two return multiple list in Json. Controller method Now get two list in ajax response

Posted in jQuery, MVC | Tagged , | Leave a comment