Filters are used to perform logic either before an action method is called or after an action method runs. Filters are custom classes that provide both a declarative and programmatic means to add pre-action and post-action behaviour to controller action methods. Prior to ASP.NET MVC 5, there are 4 types of filters: Authorization filters (IAuthorizationFilter)…
ASP.NET MVC
This blog post explains how to change the default location of Views in an ASP.NET MVC project. public class HomeController : Controller { public ActionResult Index() { ViewBag.Message = “View Engine Demo!”; return View(); } } If we look at the above code snippet, we have a HomeController inside we have an Index action method…
This is the third article in series of Windows Azure Web Sites, In this article I am going to discuss about continuous deployment from source control to windows azure web sites using local git repository. Windows Azure Web Sites supports continuous deployment from source control and repository tools like Team Foundation Service, CodePlex, GitHub, Dropbox,…
This is the second article in series of Windows Azure Web Sites, In this article I am going to discuss about creating a Hello World ASP.NET MVC Web Site & publishing it on Windows Azure Web Site. To start with Windows Azure Web Sites login to https://manage.windowsazure.com, then go to bottom left corner of portal,…
Last week on April 27th I presented in Global Windows Azure Bootcamp – Hyderabad on Windows Azure Web Sites. In this article I am going share my points on Windows Azure Web Sites, for more information visit Windows Azure Site. Currently Windows Azure provides 3 different options for hosting applications on cloud. Virtual Machines Cloud…
In one my recent application (HTML 5 static mobile app) I have a requirement to persist couple of JSON objects across the application. Earlier, this was done with cookies. With HTML5, web pages can store data locally within the user’s browser using Web Storage. Web Storage is more secure and faster compare to cookies. The…
LESS is the dynamic style sheet language LESS extends CSS with dynamic behaviour such as variables, mixins, operations and functions. LESS runs on both the client-side (Chrome, Safari, Firefox) and server-side, with Node.js and Rhino. .less is the LESS JavaScript library implementation for .NET, Find more info about .less at http://www.dotlesscss.org/. This article is going…
The bundling and minification feature enables you to reduce the number of HTTP requests that a Web page needs to make by combining individual files into a single, bundled file for scripts and CSS. It can then reduce the overall size of those requests by minifying the contents of the bundle. Minifying can include activities…
This is my first article after the availability of ASP.NET MVC 4 RTM & Visual Studio 2012 RTM. Here is the brand new Visual Studio 2012 logo: ASP.NET MVC 4 includes set of features for mobile development, one of them is Display Modes. The new Display Modes feature lets an application select views depending on…
Any public method in a controller class is an action method. Every action method in a controller class can be invoked via an URL from web browser or a view page in application. My scenario is some dynamic information (data) need to displayed on couple pages in my application. Generally we end up in adding…