12771 2
Read file in C# (Text file .NET and .NET Core example)
In this article, I have explained and provided code to read text file in C# ( line by line or complete text file into string) using Console application example in .NET Framework and .NET Core.
Type
Article
12554 5
Count and Group by multiple columns in a foreach statement in C#

Hello,

I need to write a foreach statement (I don't have it yet) in which to group by and count the departments.

This is what I have done so far. How can I take the count of each column?

thank you

...
Type
Question
12525 5
How to convert png image to jpg with white background in C#?

How to convert png image to jpg with white background using C# or jQuery ?

...
Type
Question
12414 3
Error : Keyword not supported: 'metadata'

I was trying to use Hangfire.IO in my MVC ASP.NET boilerplate application and pasted this code in Startup.cs as explained here in tutorial

...
Type
Question
12382 0
How to write to excel in C#? ( Text, adding images / styling in Excel)
In this article, I have explained how you can create excel or write to excel file using C# and EPPlus library, which also show how to add images in excel, merge columns, style text, using EPPlus
Type
Article


12253 2
How can I sort alphanumeric string list in C# (With & Without LINQ)?

I have a requirement in my project, in which I need to sort the string which has alphanumeric data like below

...
Type
Question
12233 3
Useful Visual Studio Shortcuts (comment, remove comment, Collapse code etc )
In this article, I have provided many useful shortcut keyboard keys to use while coding in Visual Studio, for example shortcut to comment a code, collapse a code region, edit multiple lines etc
Type
Article
12011 2
How to convert a positive number to negative number and negative to positive in C#?

Hello, I would like to know, How can I convert a positive number ( int type) to a negative number in C# and vice-versa ( negative to positive number using C#)?

 

 

...
Type
Question
12009 1
Error : An asynchronous operation cannot be started at this time

When I am trying to call async method in Class from controller, I am getting the error as below

An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that the Page is marked <%@ Page Async="true" %>

How can I resolve this error, here is my Current code

...
Type
Question
11972 3
Multiple actions were found that match the request: in web api C# ?

HI, I am trying to work with the Web API in C#, and when calling it using jquery I am getting the error "Multiple actions were found that match the request: in web API C#", so how to resolve this issue, here is my current code

...
Type
Question

Page 4 of 24