Blog results for Tags - #c#

Create JSON String in C#

JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between multiple systems, mostly in Web APIs and client applications. JSON is a text-based format that is easy for humans to read and write and also easy for machines to parse and generate. It is language-independent, meaning it can be used with any programming language that has the capability to parse JSON data.

C# Regex Examples

The Regex class in C# is part of the System.Text.RegularExpressions namespace. It provides a way to work with regular expressions, allowing you to perform pattern matching and manipulation of text. Here are some common operations you can perform using the Regex class:

C# collection

For many applications, you want to create and manage groups of related objects. There are two ways to group objects: by creating arrays of objects, and by creating collections of objects. Arrays are most useful for creating and working with a fixed number of strongly typed objects. For information about arrays, see Arrays.

Image Compression in MVC

Hello guys , now a days we often provide users the ability to upload images in our web projects. But we have to sometimes utilize the memory for big size images as they can easily full up the memory of server. So for that we can use image compression while uploading image. In this article we will see how to perform Image Compression in MVC.

The report definition is not valid or is not supported by this version of reporting

Hello guys in this article we will see how to solve an exception when you try to use old rdlc report and make changes into that . You will see you will get an exception ReportProcessingException: The report definition is not valid. Details: The report definition has an invalid target namespace '' which cannot be upgraded. We will see how to solve that.

Implement Stripe Payment Gateway In ASP.NET Core

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core application built with C# and Web Forms. The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Implement Stripe Payment Gateway In ASP.NET Core

ConfigurationBuilder does not contain a definition for SetBasePath

In this article we will see how to solve issue 'ConfigurationBuilder' does not contain a definition for 'SetBasePath' and no extension method 'SetBasePath' accepting a first argument of type 'ConfigurationBuilder' could be found (are you missing a using directive or an assembly reference? in .Net Core 3. We will see how to ready json files in .Net core 3.