Index | Code2night.com

Latest Blog

Hashset In Java

HashSet is a Java Collections Framework class that implements the Set interface. It gives a collection with no duplicate elements and no set order for its elements. HashSet is built on a hash table data structure, which allows it to add, remove, and search for elements in constant time (O(1)).

How to To Resolve ArithmeticException occur in java

In Java, the ArithmeticException is a subclass of the RuntimeException class. It is thrown when an arithmetic operation fails or produces an incorrect result. One of the most common causes of an ArithmeticException is attempting to divide by zero.

Swich Statement in C

A control structure in C called a switch statement is used to make decisions based on the value of a variable or expression. It enables you to run a block of code connected to the first matching case after testing a variable against a set of values (cases). The switch statement's fundamental grammar is as follows:

Chapter-1 (Introduction of C)

C is a general-purpose, procedural programming language created by Dennis Ritchie at Bell Labs in the early 1970s. It was designed to be a system programming language and eventually became widely used due to its power, flexibility, and efficiency. Here are some key aspects and features of the C programming language:

Integrate Stripe Payment Gateway In ASP.NET Core 7.0

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core 7.0 application built with C# . 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 Integrate Stripe Payment Gateway In ASP.NET Core 7.0

If Else Statement

In C# if-else statement also tests the condition. It executes the if block if the condition is true otherwise else block, is executed. the else statement to specify a block of code to be executed if the condition is False. the if-else statement checks a Boolean expression and executes the code based on if the expression is true or false. The if part of the code executes when the value of the expression is true. The else part of the code is executed when the value of the expression is false.

Constructors

Constructor is a special method which is invoked automatically at the time of object creation.

Slick Slider

In this tutorial we’ll use slick Slider , A Slick Slider is a popular jQuery plugin, to build an attractive responsive image gallery. Slick.js is a well-known jQuery plugin created by Ken Wheeler that lets you build beautiful responsive carousels. so what I going to do is to create a custom slider one of my favorite slider is the slick slider. You can create a custom slider by following the steps below.

App Trim in .NET Core

In ASP.NET Core, App Trim refers to a feature that automatically removes unused assemblies from the application's memory during runtime. This helps to reduce the memory footprint of the application and improve its overall performance.

Implement JWT Token Authentication with Validate and Refresh Token in asp.net mvc

Hello guys in this article we will see how to implement JWT Token Authenticate with Validate Token and Refresh Token automatically . We will create one action filter attribute that will automatically validate all the request and if the token is expired it will refresh the token again.

String Buffer in Java

The String Buffer class in Java provides a modifiable sequence of characters. It is commonly used when you need to dynamically edit strings without continuously generating new objects.

How to use api with proxy url in Asp.Net for CORS

In modern web development, it's common to interact with external APIs or services to retrieve data for your application. However, when your web application runs in a browser and makes requests to a different domain or origin, you may encounter Cross-Origin Resource Sharing (CORS) restrictions. We will see how to use api with proxy url in Asp.net website. This also helps us to resolve CORS errors.

How to reload child components in vue.js

Hello guys, in this article we will learn how to reload vue js child component. Sometime we need to reset child components or just re-render them. There few ways to reset child components but for beginner and those who have just started with vue js it can become a tough task to understand the flow to reset child components. So we will see how to reload child component.

Linked Hashset In Java

The Java Collections Framework's LinkedHashSet is an implementation of the Set interface. It combines the advantages of LinkedList and HashSet. The order in which the elements were added to the set is the iteration order that the LinkedHashSet preserves. It offers constant-time performance for fundamental operations and disallows duplicate elements, just like HashSet.

How to implement JWT Token in Asp.Net core 7

Hello, readers, and welcome to Code2Night! In this blog post, we will focus on the latter and explore how to implement JWT Token Authentication in ASP.NET Core 7.0 Web api and .net core 7 web application. So we will see how we will generate jwt token and how we will verify the token using authorize attribute.

Implement Stripe Payment Gateway In ASP.NET MVC

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

User-defined data types in java

By defining your own classes, you can produce user-defined data types in Java. These classes let you create unique data structures that encapsulate data and action. Here is how to make a Java user-defined data type:

External CSS in HTML

In HTML, you can use external CSS (Cascading Style Sheets) to separate the style from the HTML content. This is achieved by creating a separate CSS file and linking it to your HTML document. Here are the steps to use external CSS in HTML:

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

Introduction in C++

C++ is a powerful, high-level programming language that is widely used for developing a wide range of applications, from system software to video games and web applications. It was developed as an extension of the C programming language and introduced several features that make it a versatile and efficient language for software development.

Integrating Google Translate into ASP.NET Webpage

Expanding the reach of your ASP.NET webpage by making it accessible to users from diverse linguistic backgrounds is essential for enhancing user experience and increasing engagement. One effective way to achieve this is by integrating Google Translate into your Asp.Net webpage, enabling users to translate the content into their preferred language effortlessly.

Operator Overloading in C++

Operator overloading in C++ allows you to define how operators behave when used with objects of user-defined classes. You can customize the behavior of operators, such as +, -, *, /, ==, and many others, to work with your own classes, making your code more intuitive and expressive.

Lists

C# List<T> class is used to store and fetch elements. It can also have duplicate elements. It is found in System.Collections.Generic namespace. List<T> class in C# represents a strongly typed list of objects. List<T> provides functionality to create a list of objects, find list items, sort list, search list, and manipulate list items. In List<T>, T is the type of object. What is the ‘T’ in List<T>? List<T> class represents a strongly typed list of objects. List<T> provides functionality to create a list of objects, find list items, sort list, search list, and manipulate list items. In List<T>, T is the type of objects. How to create List in C#? List is a generic class and is defined in the System.Collections.Generic namespace. You must import this namespace in your project to access the List<T> class. using System.Collections.Generic; The List<T> is a generic collection, so you need to specify a type parameter for the type of data it can store. The following example shows how to create a list and add elements.

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.

Error-An error occurred while processing your request in .Net core IIS

Hello guys we will see how to fix Error An error occurred while processing your request.Swapping to Development environment will display more detailed information about the error that occurred.The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development. In asp.net core IIS

NoSuchwindowException in Java

The NoSuchWindowException in Java is an exception that's thrown when a WebDriver (typically from a Selenium framework) tries to switch to a window that does not exist. This usually occurs in web automation scenarios when you're working with multiple browser windows or tabs

Input/Output Statements in C++

In C++, input and output operations are commonly performed using the Standard Input/Output Library, which includes the <iostream> header. This library provides the 'cin' and 'cout' objects for reading input and displaying output, respectively.

DataReader in ADO.NET

There are two common objects in ADO.NET to read data, DataSet, and DataReader. C# DataSet and C# DataReader classes represent these objects. In this article, we'll learn about ADO.NET DataReader and how to use a DataReader in C#.

Blogs

315

Views

850,282

Downloads

2331

Never study to be successful, study for self-efficiency. Don’t run behind success. Follow behind excellence, success will come all way behind you.

3 Idiots