Tag: ASP.NET MVC

IHttpHandler.IsReusable in ASP.NET MVC

The IHttpHandler includes the IsReusable property which is generally to used to retrieve the value which indicates if another request can use IHttpHandler or not. In simple terms , the property IsReusable get the value that indicates if the multiple requests can be processed with the same IHttpHandler instance.

DotnetOpenAuth – OpenId API for ASP.NET MVC Application

DotnetOpenAuth is a open source library that allows the developers to add the OpenId and OAuth capabilities to their ASP.NET Web Application. It allows the developers to include the OpenId support by just dragging and dropping a ASP.NET control to the Web Page. The DotnetOpenAuth has a classic ASP support and also support for custom extensions. Know more about DotnetOpenAuth – OpenId API for ASP.NET…

How to create RadioButton in ASP.NET MVC ?

The ASP.NET MVC Framework provides the helper method RadioButton and RadioButtonFor to create radio button in ASP.NET MVC web page. How to create RadioButton in ASP.NET MVC ? Below is a sample sourecode snippet demonstrating how to create RadioButton in ASP.NET MVC . View @model MvcApplication1.Models.EmployeeVM @{ ViewBag.Title = “Index”; } <h2>@ViewBag.ApplicationTitle</h2> @Html.Label(“AbundantCode-a Programming Directory”) @Html.RadioButtonFor(Model => Model.IsActive, true) @Html.RadioButtonFor(Model => Model.IsActive, false)

What are files with _ in ASP.NET MVC ?

When a new ASP.NET MVC Project is created , one might observe files that start with _ specially in the Views folder. What are files with _ in ASP.NET MVC ? The files that starts with _ are generally the Layouts which is normally placed in the /Views/Shared of the ASP.NET MVC project.

Files and Folders in ASP.NET MVC 4 Project

Below are some of the files and folders that are created by default when creating a new ASP.NET MVC Project. App_Data – The developers can add the databases like SQLite or SQL Server Express database file or XML files to this folder App_Start – This contains the core settings of the ASP.NET MVC Project. Content – Contains contents like CSS file and images. Controllers –…

Difference between Web.Debug.config and Web.Release.Config in ASP.NET MVC Project

When creating a ASP.NET MVC Project in Visual Studio 2010 , one might notice the Web.config file has additional 2 files Web.Debug.config Web.Release.Config What are the difference between Web.Debug.config and Web.Release.Config in ASP.NET MVC Project ? This is something new in Visual Studio 2010 and higher versions . It is called “Web Deployment’s Web.Config Transformation” feature. You could have the settings specific for an environment…

No parameterless constructor defined for this object error in ASP.NET MVC Project

If you are getting an error similar to the one shown below in your ASP.NET MVC Project , you could verify your Model. No parameterless constructor defined for this object error in ASP.NET MVC Project Server Error in ‘/’ Application. No parameterless constructor defined for this object. An unhandled exception occurred during the execution of the current web request. Please review the stack trace for…

Liked this content?. Please spread the word :)