Posts

Showing posts from May, 2015

Infinite Scroll In ASP.Net MVC4 Using Jquery Ajax

Image
             The infinite scroll pattern is simply a different kind of pagination. In this article, we will see how to implement an infinite scroll using HTML,CSS,ASP.NETMVC4, Jquery and Ajax.    Infinite Scroll is a web design technique that prevents the browser scroll bar from scrolling to the bottom of the page, causing the page to grow with additional content instead. Here, We have implemented Infinite Scroll with ASP.NET MVC, Ajax post and JSON result. With rendering Partial View to  string , it makes it easy to use Ajax post and JSON result to display any complex view. STEP1: XML Data     Here is the xml file with book items STEP 2: Book Class       Here is the Book class file with the properties to load xml data. STEP 3: DataManager Class         Here is the DataManager Class get the book data from xml file and generate as a ...

Get Last Running Query Based on SPID

Image
           Put a trigger on the table that checks if the anonymous action has occured, and in this case log the output of DBCC INPUTBUFFER(@@spid) to a table. Then find the beginning of this statement in your application and fix the injection hole