Index | Code2night.com

Latest Blog

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.

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:

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.

How to set Date and time format in IIS Manager

Many times you might have got requirement of changing DateTime Format Of your IIS Hosted Web Application.Sometime Date format changes work on LocalHost but on IIS the date format remains same. Select Application Pool Select Project and click on Advanced settingsExpand Process Modal and Select Identity Select Custom Account and Click on set and enter UserName Password(System Credentials) and ok

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.

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.

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

Control Statements in C

In C, control statements are used to control the flow of program execution based on certain conditions or loops. These statements allow you to make decisions and repeat actions in your code

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

TreeMap in Java

The Treemap is a component of the Java Collections Framework that implements the SortedMap interface. It keeps its elements ordered according to the natural ordering of keys or a defined comparator.

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.

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.

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 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded. We will see how to solve that.

Java Arrays

An array is a sort of data structure in Java that allows you to store numerous values of the same type. It allows you to easily organise and manipulate data collections.

Polymorphism

Polymorphism means many forms. This allows us to perform a single action in different ways.

Integrating Google reCAPTCHA Validation in ASP.NET MVC

In today's digital landscape, security is paramount for any web application. One effective way to enhance security and protect against bots is by integrating Google reCAPTCHA. reCAPTCHA is a free service provided by Google that helps to distinguish between human and automated traffic on websites. In this article, we'll explore how to integrate Google reCAPTCHA into an ASP.NET MVC application.

Inheritance

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

Hangfire in ASP.NET Core 3.1 – Background Jobs

Hangfire is an open-source library to schedule and execute background jobs in .NET applications. You'll be able to create a simple background process inside the same application pool or thread without creating separate applications. Hangfire creates background jobs in persistence storage, like MS SQL Server, Redis, MongoDB, and others, that may prevent you from losing the job on recycling IIS pools or exception prevalence.

Real Time Chat using SignalR with .Net core and Vue.js

Hello guys, We often found ourself in the need of a realtime chat app . For two way communication in your webapp. We will see how to implement real time chat using SignalR with .Net core and Vue.js. SignalR is basically used for any sort of realtime functionalities. We will use .Net core for managing chathub . You can see complete steps in the article.

How to Encrypt and Decrypt Password in Asp.Net

Hello guys, we all need to secure our applications against unwanted user attacks, for saving privacy and maintaining application security. So for that purpose, we have to keep our passwords Encrypted in the Database. So, we will see how to Encrypt and Decrypt Passwords in Asp.Net.

Chapter-5 (format specifier in c)

In C, format specifiers are used to specify the type of data being read or displayed when using functions like printf and scanf. These are a few frequently used C format specifiers:

Classes in C++

In C++, classes are the building blocks of object-oriented programming (OOP). They serve as blueprints or templates for creating objects. Classes define the structure and behavior of objects, encapsulating data (attributes) and functions (methods) that operate on that data.

foreach Loop

The foreach loop in C# executes a block of code on each element in an array or a collection of items. When executing foreach loop it traversing items in a collection or an array. The foreach loop is useful for traversing each item in an array or a collection of items and displayed one by one. the foreach loop when working with arrays and collections to iterate through the items of arrays/collections. The foreach loop iterates through each item hence called foreach loop.

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.

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.

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:

Upcast and Downcast in Java

Type conversions between classes in an inheritance hierarchy are referred to as "upcasting" and "downcasting" in Java. When working with polymorphism and inheritance, these conversions are frequently required. Let's look at both ideas:

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.

Hashmap in Java

HashMap is a component of the Java Collections Framework that implements the Map interface. It offers a key-value pair data structure in which elements are stored as a combination of keys and their corresponding values. HashMap does not support duplicate keys, but it does support mapping multiple values to the same key. It provides constant-time performance for simple operations like as element addition, removal, and retrieval.

Functions In C++

Because there are no library functions with predetermined definitions, a user-defined function is one that is written by the user when writing any application. To fulfill the user's individual needs, the user must create his or her own functions. Such functions must be appropriately defined by the user. There is no such necessity to include any specific library in the program.

How to implement Authorize.Net Payment gateway 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 Authorize net, payumoney,paypal,stripe and razorpay. We have already covered payumoney and stripe in our blogs. In this article we will see How to implement Authorize.Net Payment gateway in asp.net mvc.

Constructors

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

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

LINQ

LINQ (Language Integrated Query) is a feature in C# that allows us to perform queries against data sources, which can be arrays, collections, or any type of databases, using a SQL-like syntax. In this article, we will cover some basic concepts and functionalitites of LINQ and learn how to use it in your C# application

Blogs

318

Views

1,113,756

Downloads

2584

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