Category: MVC

Posted in MVC

Create a custom autocomplete control in ASP.NET MVC

How to create a custom HTML control in ASP.NET MVC? using System; using System.Web.Mvc; namespace MvcApplication1.Helpers {…

Posted in MVC

Put/Delete http verb not working server

Please add following code in web.cofig file. <system.webServer> <modules> <remove name="WebDAVModule"/> <remove name="FormsAuthentication" /> <remove name="ApplicationInsightsWebTracking" />…

Posted in Asp.Net c#.net MVC Uncategorized

Generate and Download PDF file on Ajax Post method, C#

Requirements: On ajax post, save data to database, generate invoice and download as PDF file. There are…

Posted in MVC Uncategorized

Selected value not set on DropDownListFor() in MVC

Let me tell you small story. There is a ‘title’ column name for salutation in database. Based…

Posted in c#.net MVC Uncategorized

UnitOfWork Generic Repository

The repository and unit of work patterns are intended to create an abstraction layer between the data…

Posted in JavaScript MVC Uncategorized

how to read resource file in jquery or javascript or js file

As generally we do in asp.net project, I have created a global resource file for storing common…

Posted in MVC Uncategorized

How to add reference System.Web.Optimization

The Microsoft.Web.Optimization package is now obsolete. With the final release of ASP.NET (MVC) 4 you should install…