Category: ASP.NET

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…

How to read connection string from web.config in ASP.NET and C# ?

Here’s a sample code snippet demonstrating how to get the connection string from your ASP.NET web.config file so that you can make a connection to the database. How to read connection string from web.config in ASP.NET and C# ? Assume that the connection string name defined in the web.config file is “conn1” , you would get the connection string using the ConnectionManager class.

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…