March 2017 - Coding Sharp

Month: March 2017

Bind DropDownList in Asp.MVC using Range/Fixed value

Bind DropDownList in Asp.MVC using Range/Fixed value

Asp.Net, Asp.Net MVC, C#.Net
In most of the application we are using dropdown to select some value from predefined list of value. Some of them are getting bind from the database table, some of are getting bind using Enum value while some of them are getting bind using some fix value like 1 to 10, or month drop-down 1 to 12. In this article post we will see how to bind drop-down using range value in MVC. Below if the sample code which will bind 2000 to 2014 in year drop-down. above code will produce output as below image. In the above code we have just write a code in view only, there is no server side code. Now in some cases we need to bind some data which are not in particular range like "2000, 2002, 2004, 2006, 2008" or some string type fixed data then we can not use "Enumerable.Range", so how can w...
How to install and configure NopCommerce application?

How to install and configure NopCommerce application?

Nop-Commerce, Special Posts
How to install and configure NopCommerce shopping cart application. First you need to go to http://www.nopcommerce.com website. On the home page you can find a link to “Download for Free”, see the below Figure 1 for the reference. Figure 1 Now click on the download for free button and it will lead you to the http://www.nopcommerce.com/downloads.aspx page. On the download page you can see various option to download as displayed in the below Figure 2   Figure 2 Here we need to download source code (highlighted option) which is around 115 MB of the code. It is a full working source code. Now if you go to download folder once it is completed you will see a zip file for source code. In this article we will use NopCommerce version 3.80 If you extract .rar file t...
How to integrate SagePay payment form using Asp.Net MVC

How to integrate SagePay payment form using Asp.Net MVC

Asp.Net, C#.Net, SagePay, Special Posts
Introduction In Europe Sage Pay is independent payment service provider. It is one of the most trusted payment brands in Europe. Sage Pay makes payments safe and secure. Payment security and fraud prevention are two of their top priorities. Sagepay provides various integration option for your e-commerce website. Like 1. Form Integration 2. Server Integration 3. Server Iframe integration 4. Direct Integration In Direct integration, only your server will be save card data and host checkout page, while in all other 3 integration it will be save card data to the SagePay server and checkout pages will be there only. You do not need to create checkout page for that. Today we are going to understand how Form Integration will work. Setting in Web.Config Let's first list ...