I recently updated entity framework version 5, afterwards whenever tried to add a controller with the entity framework template I got this error message.
Entity framework 6 or above version is not supported for asp.net MVC. So we need to uninstall it by using Package manager console.
I got this error that the web.config was referencing System.Web.WebPages.Razor, Version=2.0.0.0. Later I changed it to System.Web.WebPages.Razor, Version=3.0.0.0.
In this example, I will show you how to load an html page in asp.net MVC view. You can call an html page from your view using Html.Action helper method.
Go to tool menu in visual studio and select Library package manager and click Package manager console. If you want to check whether new updates are available for the installed package
I found the cause of this error that the web.config was referencing System.Web.WebPages.Razor, version=2.0.0.0. Later I changed it to System.Web.WebPages.Razor, version=3.0.0.0 it works fine problem was resolved.
We can retrieve data from URL to controller action method by two methods in asp.net mvc such as parameter of action method function and Query string. We can get Query string value just like web forms as Request.QueryString.
The function is expecting an id parameter it was not supplied. Otherwise we need to change the parameter function as optional like below function; it will not throw an error.
In this example I will show you how to bind viewbag value to an html control using jQuery in mvc.
Radio button allows user to select one option from series of choices. In this example I will show you how to generate a radiobuttonlist in mvc using Html.RadioButtonFor.