Index | Code2night.com

Latest Blog

Chapter1 CSS

CSS (Cascading Style Sheets) is a style sheet language used to describe the display of an HTML or XML document. It allows web developers to control the appearance and layout of multiple web pages at once. Here's a detailed overview of some fundamental CSS properties:

java.lang.IndexOutOfBoundsException

The java.lang.IndexOutOfBoundsException is an exception class in Java that is thrown when an index used to access an array, list, or other collection is either negative or greater than or equal to the size of the collection. This usually indicates an attempt to access an element at an invalid index that does not exist in the collection.

How to upload Image file using AJAX and jquery

So starting of from the beginning Ajax is used for Asynchronous Javascript and XML. We can use it for many purposes. Few basic uses of Ajax are:- Update page without reloading the page providing better performance. Request data from a server - after the page has loaded which can be used in loading Partial Views. Send data to a server without reload - in the background making it easier to performance Save, Delete operations smoothly. Ajax in Asp.Net MVC

TreeSet In Java

TreeSet is a Java Collections Framework class that implements the SortedSet interface. It returns a set that is sorted in natural order or by a provided comparator. TreeSet, unlike HashSet, does not allow duplicate elements and delivers fast performance for simple operations like adding, removing, and searching for elements.

Inheritance

Inheritance is the concept that is used for code reusability and changeability purpose.

Form Design In HTML

You can design forms in HTML that let users enter data and send it to a server for processing. You can create forms using a variety of form elements and HTML tags. Here's a simple illustration of how to make a straightforward form in HTML:

Implement Stripe Payment Gateway In ASP.NET

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET 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. There are four steps: Create the project and configure dependencies Create the payment Web Form Create a page to perform the charge Run the application

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.

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.

How to fix CWE-23 Path Traversal vulnerability (Snyk)

Hello guys, in this article we will see how to fix CWE-23 Path Traversal vulnerability Unsanitized input from an HTTP parameter flows into global::System.IO.Directory.CreateDirectory, where it is used as a path. This may result in a Path Traversal vulnerability and allow an attacker to create arbitrary directories when we scan our code with snyk.

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:

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.

How to refund payment using Paypal in Asp.Net MVC

Hello guys, we often want to integrate payment gateways in our Asp.Net applications. Some of the most popular payment gateways are payumoney,paypal,stripe and razorpay. We have already covered payumoney and stripe in our blogs. In this article we will see How to refund payment using Paypal in Asp.Net MVC. For this we will use paypal sale api.

Registration Form In HTML

Creating an HTML registration form entails the use of numerous form elements, such as text inputs, radio buttons, checkboxes, and buttons. Here's a simple HTML registration form example:

Parameterised constructor in java

A parameterized constructor in Java is a constructor that accepts one or more parameters when creating a class object. These parameters are used to set the values of the object's instance variables.

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

Destructor

Destructor is opposite of constructor.It is used to destructs automatically the instance of the constructor class.it is defined one time in the class.

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.

How to Integrate Linkedin Login With Open Id Connect in Asp.Net MVC

So, nowadays it is really important while developing applications that users don't have to waste a lot of time trying to register or go inside your web application. So, keeping in mind the need of today's world we have few Social Login available that are getting used mostly. These include Google Login, Linkedin, and Microsoft. In this article we will see How to Integrate Linkedin Login With Open Id Connect in Asp.Net MVC.

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.

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.

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#.

Assignment To Merge Column And Rows In a table

To merge columns and rows in an HTML table, you can use the colspan and rowspan attributes within the or elements. These attributes allow you to span a cell across multiple columns (colspan) or rows (rowspan). Here's an example demonstrating how to merge cells in an HTML table:

Call By Value

when a copy of the original value is passed to the function, then it is known as Call by value in C#

Blogs

314

Views

831,820

Downloads

2231

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