Fizz Buzz game C#

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.

Update List from another list C#.

To update a list from another list, Here is the Syntax. Syntax Example 1. Create Student model 2. Create Student List as listStudents 3. Create Student Marks as listMarks 4. Now Update listStudents from listMarks

Convert a list of string to comma separated string C#.

Convert a list of string to Comma Separated String. String.join method is used to concatenate a list of string, Using a specified separator between each string. Syntax : String.Join(string Separator, String[] Values); Example :

Multiple actions were found that match the request Web API.

When we create a Web API, it creates a default route “api/{controller}/{id}” in WebApiConfig.cs file. Action name is not defined in the route. Web API by default serves to HTTP verbs Get, Post, Put, Delete with optional parameters. Web API identifies the action with http verbs. If we have more than one action method with Continue Reading…

What is WCF Reliable Messaging?

WCF Reliable Messaging makes web services more reliable. It addresses the following problems: A call to a web service does not make because the networks are not perfectly reliable as they suffer congestion and may drop signals. OR the service response does not make it back to the client. If I make multiple calls to Continue Reading…

CRUD Operations using WCF Rest API

This Tutorial will explain how to implement crud operations using WCF Rest API. Open Visual Studio 2012. Go to create new project tab. Select “WCF Service Application” from WCF templates and name it WCFCrudService. using WCF Rest API Crud operation are performed by GET – To Get data from database POST – To Insert data Continue Reading…

@Html.Action vs @Html.RenderAction in Asp.Net MVC

@Html.Action @Html.Action returns string. Syntax : @Html.Action(“Action”,”Controller”). Pass parameter with Action method Syntax : @Html.Action(“Action”,”Controller”, new {ParameterName=ParameterValue}). It is slower as compared to @Html.RenderAction. It’s result can be manipulated before rendering to the output stream. Manipulation : @{ var data= Html.Action(“Action”,”Controller”, new {ParameterName=ParameterValue}); } @data I am Software Developer. Use when data length is small or need to manipulate result Continue Reading…

@Html.Partial vs @Html.RenderPartial in Asp.Net MVC

@Html.Partial @Html.Partial returns string. Syntax : @Html.Partial(“Partial View Name”). Pass model with Partial method Syntax : @Html.Partial(“Partial View Name”, Model). It is slower as compared to @Html.RenderPartial. It’s result can be manipulated before rendering to the output stream. Manipulation : @{ var data= Html.Partial(“Partial View Name”); } @data I am Software Developer. Use when data length is Continue Reading…

Soap vs Rest API

Soap SOAP stands for Simple Object Access Protocol. SOAP is a protocol. SOAP uses HTTP and SMTP transport protocol. SOAP supports only XML format. Using HTTP, SOAP model can tunnel to across firewalls and proxies without any modification to the SOAP protocol. SOAP is more secure as compare to REST because it uses own security Continue Reading…

Call action from button click event in Asp.Net MVC

We can call action from button click event using location.href.