Tutorials on ASP.NET Core, Blazor, jQuery, JavaScript, Entity Framework, Identity, WordPress, SQL, HTML & more


jQuery hasClass() Method

Last Updated: June 4, 2021

jquery hasclass

In jQuery, if you want to find out whether some elements (or a single element) are assigned a particular CSS Class then use the .hasClass() method. It returns true when it finds the CSS class else returns false.

Syntax of jQuery hasClass

$(selector).hasClass("classname");

The selector can either be an element or a group of elements.

(more…)

ASP.NET MVC – Client Side Validation of Controls like Textbox, Dropdownlist, Checkbox, Radiobutton with jQuery

Last Updated: June 7, 2021

client side validation

In ASP.NET MVC, the Client Side Validation of controls are done using jQuery and 2 plugins called jQuery Validation & jQuery Unobtrusive Validation.

Download jQuery, jQuery Validation & jQuery Unobtrusive Validation from NuGet

The first thing is to include all these 3 in your project, which you can do easily through NuGet.

(more…)

ASP.NET MVC Data Annotation – Server Side Validation of Controls like Textbox, Dropdownlist, Checkbox, Radiobutton & more

Last Updated: June 7, 2021

server side validation

Whenever a form is submitted then you should ensure to do the Server Side Validation of every control so that the received data is correct and valid.

Some developers provide only client side validation and leave the server side validation. This is a wrong practice as users can disable JavaScript on their browser and bypass the Client Side Validation. Therefore always make sure to do Server Side Validation in your project.

(more…)

jQuery Selector – The Complete Usage & Tutorial Guide

Last Updated: June 4, 2021

jquery selector

The jQuery Selector starts with the dollar sign and parentheses - $(), and finds one or more HTML elements in the DOM. We can use name, id, CSS Class, type, attribute, etc to find elements using the jQuery Selector.

The below jQuery Selector finds all the div elements in the DOM.

(more…)

Implementing TheMovieDB (TMDB) API with jQuery AJAX

Last Updated: June 4, 2021

Implementing TheMovieDB (TMDB) API with jQuery AJAX

The TheMovieDB (TMDB) API provides all the information of movies, actors and series, free of charge. You can integrate this API in your Website using only jQuery AJAX.

Introduction

In this tutorial I will allow user to search for any actor (like Tom Cruise, Nicole kidman, Tom Hanks, etc). The actor results will be shown in a grid structure created with a div element. On clicking on any actor in this result, the whole information of that actor is shown to the user.

(more…)

Implementing TheMovieDB (TMDB) API in ASP.NET MVC – [with full codes]

Last Updated: June 7, 2021

TheMovieDB api

Introduction to TheMovieDB API

The Movie Database (TMDb) is a community built movie and TV database. Every piece of data has been added dating back to 2008. TMDb's strong international focus and breadth of data is largely unmatched and available through the mean of TheMovieDb API. You can use this API to create different sort of features like searching movie, actors, TV series, companies, reviews and much more.

(more…)

Quickly understanding the jQuery Document Ready – $(document).ready() method

Last Updated: June 4, 2021

jquery document ready

The jQuery Document Ready makes sure the page DOM is ready for the jQuery codes to execute. Remember to put all your jQuery Codes inside it.

(more…)

How to Create Bootstrap Modal in your Website

Last Updated: June 8, 2021

bootstrap modal

A Bootstrap Modal is used to show important information to site’s visitors. This can be some sort of confirmation (like cookies information, updating or deleting profile), session time out or a new product launch. You will also find that these Bootstrap Modals are used by website owners to collect email addresses for newsletter subscription.

(more…)

How to Restore Database in SQL Server

Last Updated: June 8, 2021

restore database sql server

If you have the Database Backup File then you can easily restore it to your SQL Server. I will use SQL Server Management Studio (SSMS) to restore the database.

(more…)

How to Backup SQL Database using SSMS

Last Updated: June 8, 2021

backup sql database

In this tutorial I will teach you how to Backup SQL Database with your SQL Server Management Studio (SSMS). This will save you from losing your data in case of any SQL Server problem.

SQL Database Backup Steps

The following steps explain how to do Full Backup of your database using SSMS.

STEP 1: Expand the Database node

Click the plus sign in-front of the Databases node. This will show all the databases.

(more…)