A place for coders

How to host a website on local IIS?

Prerequisites You already have installed IIS on your system.If IIS is not installed then go to Control Panel -> Programs and features -> Turn on windows features on or off Steps Add a new MVC Web application.Here I have added it to the path E:\ Open the IIS by pressing Windows+R and then type inetmgr. Right click on folder Sites and click Add Website Enter the site name as you want and the host name as per your requirement.

String conversions in C#

Introduction This post will contain small code snippets that will convert a string to different types like a datetime,enum etc… string to enum The below snippet will convert string to an enum value. string to DateTimeOffset The below snippet will convert string to DateTimeOffset object. If the string cannot be converted then return current DateTimeOffset.

How to integrate CcAvenue payment gateway in ASP.NET MVC ?

Prerequisites You should have a ccavenue account. Problem The second step is the problem I faced while integrating the ccavenue page.I found out that most of the people were finding the same.As we are developing something we need to first test it in development environment. Inside your ccavenue account they have already given you the access code,merchant Id and access key for a url.But those credentials will only work if you are redirecting to the ccavenue page from that url only.

How to send push notification to your android device using C# code?

Introduction Push notification is like a message that hits the users device.Its a modern way of engaging users in the app.Each app can have their own push notification enabled. This article is going to cover how we can send a push notification to your mobile using a C# code. The core things we need to send is Token generated from the device which we want to send push notification to Type of the device (Android,IOS,Windows)