Last Updated:
May 23, 2013

ASP.NET
Per Page :

ASP.NET MVC Tutorials

The ASP.NET MVC Tutorials section in the Abundantcode.com will help the developers understand the ASP.NET MVC Framework. The ASP.NET MVC Tutorials section will explain some of the basic stuffs related to the ASP.NET MVC and also provides sample sourecode , demo explaining the functionality of the MVC Framework. Any developer Read more...
0 Views : 1124

What is the Difference between Repository and Service Layer in ASP.NET MVC?

Repository pattern, Unit of Work and Service Layer is one of the most commonly used word or technique especially when you are working on the ASP.NET MVC project. What is the Difference between Repository and Service Layer in ASP.NET MVC? These are the common Design pattern terms used in the Read more...
0 Views : 179

Retrieve Data from the Request Object in ASP.NET MVC

In ASP.NET MVC, the Request property defined within the controller can be used to retrieve the data about the request. They can be accessed easily in the controller. Some of the useful properties within the Request objects includes Request.QueryString – This is a NameValueCollection which can be used to access Read more...
0 Views : 251

IController in ASP.NET MVC

Every Controller in ASP.NET MVC is extended from the Controller abstract class which in turn implements the IController interface. The IController interface is defined in the System.Web.Mvc namespace of the .NET Framework. The IController interface contains the method Execute which is called when the user enter the URL which involves Read more...
0 Views : 201

How to define MaxLength property for a textbox in ASP.NET MVC Razor View?

Below is a sample code snippet which demonstrates how to define MaxLength property for a textbox in ASP.NET MVC Razor View. @{ if (@ViewContext.ViewData.ModelState.IsValid) { ViewBag.Title = "Index"; } } <h2>Abundant Code</h2> @Html.TextBoxFor (model => model.FirstName, new { maxlength = "100" }); Read more...
0 Views : 206

Browser Plugins (Adobe Flash) Detection Toolkits

This article will cover some of the browser detection plugins. There are scenarios where the web developer might want to find out if the Plugin is installed in the browser. The Web developers can use browser plugin detection toolkits/plugins to do it. Browser Plugins (Adobe Flash) Detection Toolkits Jqplugin This Read more...
0 Views : 182

How to Generate Links to Action Method in different Areas in ASP.NET MVC?

The ActionLink helper method has 9+ overloads to generate links based on various scenarios. Generally, the “Action Name” is passed as the 2nd parameter to the ActionLink which points to the current Controller and the specified Action method. @Html.ActionLink ("Abundant Code", ActionName") What do we do when the Action method Read more...
0 Views : 286

RegisterArea in ASP.NET MVC

In the previous article, we provided you an overview of the areas in ASP.NET MVC. When a new area is created in ASP.NET MVC, a file with the area name suffixed by AreaRegistration will be created. In the example as described in the previous article, the AbundantcodePayrollAreaRegistration.cs contains the following Read more...
0 Views : 130

Creating Areas in ASP.NET MVC Application

The ASP.NET MVC Framework has the concept of “Areas” which allows the developers to organize the functional module of the web application. For Example, the modules like administration, student’s data, exam/test, results can be each area in the Application. The Area in the ASP.NET MVC project has a folder structure Read more...
0 Views : 148

How to Populate the DropDownList in ASP.NET MVC Razor View?

The DropDownList is one of the most useful controls that can be used in various scenarios that involves selecting the data from the list. The ASP.NET MVC Framework provides the Html.DropDownList and Html.DropDownListFor helper methods which can be used to create DropDownList. How to Populate DropDownList in ASP.NET MVC Razor Read more...
0 Views : 1537

CS1502: The best overloaded method match for System.Web.WebPages.WebPageExecutingBase.WriteSystem.Web.WebPages.HelperResult)’ has some invalid arguments Error in ASP.NET MVC

If you are getting the below error message in ASP.NET MVC Web Application, you can resolve it by looking at the methods that renders the partial view in the screen. “Server Error in ‘/’ Application. ——————————————————————————– Compilation Error Description: An error occurred during the compilation of a resource required to Read more...
0 Views : 217

Url.Action in ASP.NET MVC

The Url.Action method in ASP.NET MVC allows the developers to generate the fully qualified URL to an action method. It is defined in the namespace System.Web.Mvc. The Url.Action generates only the URL unlike the Html.ActionLink. Url.Action in ASP.NET MVC Below is a code snippet of the View demonstrating the Url.Action Read more...
0 Views : 150

How to Specify CSS Class Name for the ActionLink in ASP.NET MVC?

Below is a sample soucrecode demonstrating how to specify the CSS class Name for the ActionLink helper method in ASP.NET MVC. How to Specify CSS Class Name for the ActionLink in ASP.NET MVC? @model MvcApplication1.Models.EmployeeVM @{ if (@ViewContext.ViewData.ModelState.IsValid) { ViewBag.Title = "Index"; } } <h2>Abundant Code</h2> @Html.ActionLink(“Abundantcode.com – Primary source Read more...
0 Views : 153

Passing Parameters to the ActionLink in ASP.NET MVC

There are times when the parameter has to be passed along with the URL from an ActionLink control in ASP.NET MVC. This can be done easily using the anonymous type which can be passed as the third parameter for the ActionLink helper method. Passing Parameters to the ActionLink in ASP.NET Read more...
0 Views : 172

UrlHelper.GenerateUrl in ASP.NET MVC

The UrlHelper.GenerateUrl in ASP.NET MVC can be used to return a string which contains the URL. UrlHelper.GenerateUrl in ASP.NET MVC The UrlHelper.GenerateUrl takes 7 parameters (overloaded). These parameters include RouteName ActionName ControllerName Route Values Route Collection Request Context Include Implicit Mvc Values Below is a sample code snippet demonstrating the Read more...
0 Views : 194

iText Library for Creating PDF documents in C# and Java

iText is a PDF Library or API (Application Programming Interface ) that allows the developers to generate PDF documents based on the data from database or XML file. iText is available in Java as well as .NET (C#) and uses LDF’s many interactive features. iText library allows the developers to Read more...
0 Views : 138

Difference between RenderBody, RenderPage and RenderSection in ASP.NET MVC

Difference between RenderBody, RenderPage and RenderSection in ASP.NET MVC The RenderBody can generally be found in the Layout page which is a kind of master page. Each Layout page can contain only one RenderBody method. It is like a Content Placeholder in ASP.NET WebForms. With the RenderPage, the content of Read more...
0 Views : 194

Multiple types were found that match the controller Error in ASP.NET MVC

There are times when you get the error similar to the below message when you type the URL “Multiple types were found that match the controller named ‘Employee’. This can happen if the route that services this request (‘Abundantcode/{controller}/{action}/{id}’) does not specify namespaces to search for a controller that matches Read more...
0 Views : 536

How to Access ModelState Property within the View of ASP.NET MVC ?

Most of the times , the ModelState property is used within the controller to verify if the model has valid data or not. But there are sometimes where you want to access the ModelState Property within the View in ASP.NET MVC Application. How to Access ModelState Property within the View Read more...
0 Views : 135

Specifying Text for Html.LabelFor in ASP.NET MVC Application

The Html.LabelFor helper method can be used to display label in the ASP.NET MVC View . The LabelFor takes the parameter of the property defined in the model to display the text . Specifying Text for Html.LabelFor in ASP.NET MVC Application The developers can use the DisplayAttribute for the property Read more...
0 Views : 131