Index | Code2night.com

Latest Blog

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:

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

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:

Constructors

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

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.

Attribute of table in HTML

In HTML, the table tag is used to create tables to display data in a structured grid format. The table tag can contain several attributes that help in defining and customizing the behavior and appearance of the table.

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:

Tag or mention people like WhatsApp & Skype by using @ in Angular

Hello guys, often while working with angular js you sometimes have requirement of implementing chat functionality where user can press @ and select users from the list , similar to what we do on skype or all big chatting platforms. For that purpose we can use Angular-mentions which is a package in Angular js for skype like @ chat functionality. We will see how to use that in detail.

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.

A non-fatal error occured during cluster initialisation in Postgre SQL

Hello guys in this video you'll see how to solve issue A non-fatal error occured during cluster initialisation in Postgre SQL on Postgre installation. You will often see this issue while installing Postgre. We have a workaround for you to solve this issue. Just follow the steps and your issue will solve.

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.

Tables In HTML

Creating tables in HTML is a way to display tabular data in a structured format. HTML provides several elements for building tables, including the,,, and elements.

Create and publish a package using Visual Studio (.NET Framework, Windows)

Creating a NuGet package from a .NET Framework Class Library involves creating the DLL in Visual Studio on Windows, then using the nuget.exe command-line tool to create and publish the package.

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.

Access Modifiers in Java

In Java, access modifiers are keywords that control the visibility and accessibility of classes, fields, methods, and other members within a class or package.

Integrate Razorpay Payment Gateway in ASP.NET Core 8.0

We will discover how to integrate the Razorpay payment gateway with ASP.Net Core in this tutorial. Here, we go over Razor Pay and show you how to incorporate it into ASP.Net Core MVC. Please read through my earlier post, "Build CRUD REST APIs with EF Core." You can view the result of our integration of Razorpay with ASP.Net Core MVC at the conclusion of this post.

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.

Image Compression in Asp.net 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 Asp.net MVC.

Chapter-4 (Operators in C)

In the C programming language, operators are special symbols or keywords that perform operations on operands. Operands are the values or variables that operators act upon

Access Modifiers

Access modifiers in C# are used to specify the scope of accessibility of a member of a class or type of the class itself.

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.

Using Ajax in Asp.Net MVC

Hello guys, in this article we will tell you about what is Ajax? and how it can help you create better projects with better performance.Ajax basically used for Asynchronous Javascript and XML. As the name defines it helps you make server side operation asynchronously or you can say without reloading the page. So we will see few examples of using Ajax in Asp.Net MVC.

Implicit wait V/s Explicit wait In Java

In Selenium WebDriver, both implicit wait and explicit wait are mechanisms to control the timing of interactions with web elements, especially when elements might not be immediately available due to various reasons such as dynamic content loading, AJAX requests, etc. Both techniques help in synchronizing your tests with the actual behavior of the web application.

Method Overriding in Java

Overriding methods is a key idea in Java object-oriented programming. It enables a subclass to provide a particular implementation of a method defined in the superclass. When you override a method, you replace the superclass's inherited implementation with your own version in the subclass. This allows for polymorphism and dynamic method dispatch.

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

Automating Keyboard and Mouse Events.

Selenium automation of keyboard and mouse events is an essential ability for efficient web testing. Knowing how to imitate user interactions is crucial whether you're performing repetitive activities or testing web apps. This in-depth guide will go through how to utilise Java's Selenium WebDriver to automate keyboard and mouse events.

Blogs

318

Views

1,128,579

Downloads

2625

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