Tag: ASP.NET MVC
How to display a View from different controller in ASP.NET MVC 4 ?
Sometimes , it might be required to display a view from a different controller when developing website using ASP.NET MVC . How to display a View from different controller in ASP.NET MVC 4 ? This can be achieved by simply passing the view name along with the controller name to the return type of ActionResult like the wasy shown below. In the above example ,…
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…
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 –…
How to Redirect To Action between Areas in ASP.NET MVC?
There are times when you want to redirect to a specific area from different area. In this, one can use the RedirectToAction method to achieve it and pass the parameter area. How to Redirect between Areas in ASP.NET MVC?
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 who have some basic knowledge of .NET Framework 3.5 and higher as well as Visual…
Optional URL Segments in ASP.NET MVC
The developer can define the optional URL segment which need not be specified by the user when entering the URL. For example , assume the URL pattern “Abundantcode/{controller}/{action}/{id}” . In this pattern , the developer can make the id segment as optional by specifying them in the MapRoute method . Optional URL Segments in ASP.NET MVC Below is a code snippet demonstrating the usage of…
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…