15143 0
File I/O in C# (Read, Write, Delete, Copy file using C#)
In this article, I have explained about File input/output (I/O) handling operations in C# with an example to read, write data to a file and delete or copy the file using C# .NET Console application.
Type
Article
14773 2
How to convert HTML text into plain text using C#?

I have a requirement in which I need to render/display plain text from HTML content, so I would like to know how can I do it using C#?

For example, below is my HTML code

...
Type
Question
14771 3
How to remove double quotes from string using C#?

I wanted to remove double quotes from a string using C#, How can I do that easily and efficiently?

For Example, I have string : "-10,20", how to get output -> -10,20

 

...
Type
Question
14716 2
Cannot convert null to a value type JSON error

I am getting error 'Cannot convert null to a value type' when trying to deserialize JSON response into class object
I have the following code in C#

...
Type
Question
14691 3
how to convert UTC time to Local using C#?

Hello, I would like to know how can I convert UTC datetime into local (user's pc) datetime in asp.net MVC razor page using C#?

I thought .ToLocalTime() should work, but I am not getting correct result.

...
Type
Question


14388 2
Error "Maximum request length exceeded" in ASP.NET MVC

When I am trying to upload a pdf file(10 MB) using javascript file upload in my ASP.NET MVC application, I am getting this error as below

Maximum request length exceeded

Here is the image of the error

...

Type
Question
13846 2
How to create XML document using XDocument in C#?

Hello, I need to add some data in XML file by programmatically creating it using C# and XDocument, so how I will create it?

For example, Suppose if I need output like below in XML

...
Type
Question
13637 0
Verify email address exists or not? (With email id validation in C#)
In this tutorial, I am going to provide you, code using C# to verify email address exists or not, you can use this c# validate email address code while registering user.
Type
Article
13490 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
13225 3
How to check if string is number (IsNumeric) in C#?

I have a string "123" and another string "Test", now I want to identify from which you these string conatins number, so How can i check if string is a number or not in C#, is there any method in C# or we need to create custom method for it?

Example :

"11" = true

"Hello"= false

...
Type
Question

Page 3 of 24