Blog Archives

Why use ASP.NET MVC instead of Web Forms?

I have been asked this question so many times.  Why use ASP.NET MVC instead of Web Forms? My answer is simple, because it’s better. If you are not convinced please see below, ASP.NET MVC is a completely new framework for building

Posted in ASP.NET, C#, MVC

How to do ASP.NET MVC Pagination in 30 minutes?

I needed web content pagination in my ASP.NET MVC 3 project. I found few solutions on the web, but end up accessing the first two below. Telerik Telerik has ASP.NET MVC extensions which I think is free and cool. To

Tagged with: , ,
Posted in MVC

Keep you MVC Razor view DRY!

Always keep your view DRY (do not repeat). Suppose your website has any of the following, Top menu Left menu Right menu Or you have some HTML which is repeated in different view, then you could use the following, @Html.Partial(“ViewFile”)

Tagged with:
Posted in MVC