Get random number in asp.net C#
Get random number in asp.net C#
Get random number in asp.net C#
The break statement is used to terminate the loop or statement in which it present. This statement is used to skip over the execution part of the loop on a certain condition.
Here we will implement export to Excel functionally in an Angular application with the help of the ExcelJS library. This is an awesome library to convert JSON data into formatted and customized Excel files.
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
Publish in local folder
Hello guys, sometimes we need to consume web api from c# or Asp.Net core.So in this article we will see Calling Web api from Server Side using Asp.Net Core . We will use HttpClient for this.
In this article, we'll explore how to send calendar events via email using .ICS files in an ASP.NET application. We'll walk through the process step-by-step and explain the provided code snippet along the way.
Hello guys often when working in Asp.Net core application , we sometimes need to schedule some process or task on regular interval. So we will see how to create task scheduler in Asp.Net core for recurring jobs.
Hello guys, sometimes while working with Devexpress tools you may have found one issue with dropdown when you use that on a popup. The items of dropdown gets overlapped by popup. We will see how to fix DevExpress Dropdown Items Overlapped by Popup.
Creating and displaying SSRS Report in ASP.NET MVC
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.
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.
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.
How to upload files to Azure Blob Storage in an ASP.NET Core Web
Hello guys in this article we will learn about basics of ChatGpt and how chatgpt can help people with lots of things.
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.
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.
If statement will execute a block of code if the given condition is true. The if statement checks a Boolean expression and executes the code based on if the expression is true
How to create a read-only MySQL user
Hello guys, in this article we will see how to create new branch and merge old branches into new branches on github. While working with many people on same projects we have to create different branches to manage code. We will see how to do that.
A NumberFormatException is produced in Java when you try to convert a string to a numeric type (such as int, double, float, etc.) but the string's format is incompatible with the required format for that numeric type. This is common when using parsing techniques such as Integer.parseInt(), Double.parseDouble(), or Float.parseFloat().
To obtain the IP address of a device using C#, you can use the Dns class from the System.Net namespace. Here's an example of how you can retrieve the IP address:
The java.lang.IllegalStateException with the message "The driver executable does not exist" typically occurs in the context of automated testing using web automation frameworks such as Selenium WebDriver.
Java Type Casting
To check if a character is a vowel or a consonant in C, you can write a simple program that evaluates whether the character is one of the vowels (a, e, i, o, u) or not. Here's a basic example of how to do this:
how to use Web Api in Asp.net MVC
Hello guys, now a days world is fastely moving forward for AI. And for that python is getting used a lot. In this article we will see how we can implement realtime face detection on web cam in python using OpenCV library.
Hello guys, we all would have used cookies in our Asp.Net Core web projects. If you have used httpcookies in Asp.Net core 2.1 project and you are trying to update your .Net core version to 3.1 . You will notice your HttpCookies are not working there. So, we will see how to fix HttpCookies Issue with Asp.Net Core 3.1.
Hello guys , we often need to integrate twillio sms functionality in our asp.net web application. Sometimes we need to get Sms logs or history for all sent sms from twillio. So we will see how to get sms logs from twillio in Asp.Net MVC .
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
What is C?
Hello guys, sometimes while working with sql server we often create tables with wrong columns names and we often need to rename those columns. So we will see how to rename table column in sql server.
Changes link using CSS
It is collection of character or char type array.
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
Hello guys, sometimes while working with sql server, we sometimes face the need of working with json data . For that purpose we have to be able to read json data in sql which is quite a difficult task, so we will see how to read json in sql server in simple steps.
Hello, guys sometimes we need to implement a Facebook login in our application. We will see how to implement Facebook login in Asp.net MVC.
Hello guys sometimes while creating asp.net mvc web project. We often need to post files to the web api and the receive the files in the api. So we will see posting files to Web API in Asp.Net MVC.
Hello guys, sometimes we need to allow users to type only alphanumeric in the textboxes. For that purpose , we will see how to apply alphanumeric validation in javascript
Hello guys, sometimes while working in your asp.net web project . We face the need of converting our html to image on in other words we want to save our html output as image in your system. So, we will see how to Convert HTML String To Image In C# Asp.net.
An ArrayIndexOutOfBoundsException is a runtime exception in Java that happens when you attempt to access an array element with an index that is outside the array's valid range of indices. In other words, you're attempting to access an element in the array at an index that doesn't exist.
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.
Hello guys in this tutorial , we will learn the first step of using sql server. We will see how we can create database and perform crud operation using sql queries.
Hello guys, now a days we always want to implement Google authentication login using Google Api . In this article we will learn how to Integrate Google SignIn in Asp.Net mvc.
Record Screen In asp.net MVC using RecordRTC
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#.
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.
In this tutorial, we'll explore how to integrate the ChatGPT API into an ASP.NET MVC application. The ChatGPT API, provided by OpenAI, allows developers to interact with the powerful language model for various applications like chatbots, content generation, and more.
Hello guys, sometimes we need to put validations on textboxes to accept certain type of data. For that purpose , we have to apply validation to stop backSlash on keypress and also on copy/paste. So we will see how to apply Input validation on keypress and copy paste using javascript.
we will learn Microsoft Outlook Add Appointment and Get Appointment using Asp.Net MVC. There are two ways for that one is Microsoft.Interop library and second is Microsoft Exchange service. We will learn how to add and get appointments using Microsoft Exchange Service.
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.
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.
A NullPointerException is a runtime exception in Java that happens when you attempt to perform an operation on a null object reference. In other words, you're attempting to access a member (such as a method or field) of an object that hasn't yet been initialized, which results in a null reference.
So basically in a MVC Project we often use many controllers for making our web project functional.So one way is to handle exception separately on all of them or we can simple use a Base Controller. A Base controller can be told as a parent controller from which all other controller will inherit.So in that way Exception handling performed on Base Controller will get applied on all controllers which inherits from this controller.
When the variable of one data type is changed to another data type is known as the Type Casting.
In this tutorial on ASP.NET Core, you will delve into executing CRUD operations using Entity Framework Core right from the start. This guide aims to facilitate your understanding of Entity Framework Core, enabling you to seamlessly integrate it into your web applications.
JWT Token Authentication And Authorizations In .Net Core Web API
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.
Editor is important for visible Test Results. We can use Eclipse and Intellij here we use Eclipse Editor.
Hello guys, we often need to implement user authentication and validate user authentication for all actions. We will see how we can create custom filter attribute and use that for user authentication.
In Method Overloading we have two or more than two methods those have the same name but different parameters.
Hello guys, sometimes we need to import data from excel file in asp.net MVC using OLE DB. So we will use OLE DB Connection for that as that is really fast and effective while reading large excel files. You can check the steps on using that with asp.net MVC project.
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 implement paypal in Asp.Net Core 8.0.
In Java, the LinkedList class implements the List interface and provides a doubly-linked list data structure. It provides a versatile means of storing and manipulating a collection of items. A LinkedList, unlike an ArrayList, uses references to connect components rather than contiguous memory allocation.
Hello guys while working with Asp.Net Core we often need to read values from appsettings.json file. In today’s article, we will see how to read values from appsettings.json in ASP.NET Core.
Hello guys while using Asp.Net MVC you can sometime face error while uploading large file . It can even occure while posting files on Web API. So we will see how to fix error Status Code 413 Request Entity Too Large.
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.
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.
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
Hello guys, we often have to implement realtime chat functionality in our Asp.net web application. So we will see how to build real-time application with SignalR in Asp.Net Core
Access modifiers in C# are used to specify the scope of accessibility of a member of a class or type of the class itself.
Hello guys, often while dealing with project where we need to implement payment systems and need user to enter card number and show them the card number format properly. So for that purpose we have to use controls from payment gateways which are bit harder to manage on custom websites. So we will see how to implement Input Box Card Number Formatting using jquery.
Hello guys we often need to import csv file and load into datatable in asp.net mvc. So we will see how you can load datatable from csv file or how to import csv in asp.net mvc.
To find the biggest number in a 1D array in C, you can iterate through the array and keep track of the maximum value encountered.
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.
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.
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
Inheritance is a fundamental concept in object-oriented programming, and it allows you to create new classes (derived or subclass) that inherit properties and behaviors from existing classes (base or superclass). In C++, inheritance is a key feature, and it enables you to establish a hierarchy of classes.
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.
Hello guys, you might have noticed while working with .Net core 3.1 that whenever you make any client side change(html,css,js). It doesn't reflect in browser even after reload. So we will learn how to solve the issue Visual studio not refreshing changes in browser on reload.
Never study to be successful, study for self-efficiency. Don’t run behind success. Follow behind excellence, success will come all way behind you.