There is no need to use OnRowEditing & OnRowUpdating events of GridView when updating records from it as it can be easily done using jQuery. In this tutorial I will teach you how to use jQuery to do the update of records from inside the GridView itself so that there is No Page Postback.
(more…)JavaScript is a powerful programming language and I will now Call Web API from it. To be precise, I will use XMLHttpRequest (XHR) object to call the web api from JavaScript. I already have created my Web API built in ASP.NET Core, it is in RESTful pattern and has all the CRUD operations like providing flight reservations data to clients in JSON, searching the reservations with their ids, updating and deleting reservations and so on.
This tutorial is a part of the ASP.NET Core API series which contains 5 tutorials to master this area:
Portable Object files also known commonly as PO files are text based files containing the entry holding the relation between an original untranslated string and its corresponding translation. They are a substitute for resource files to perform localization of a website built in asp.net core.
(more…)Page Contents
Page Contents
The GridView by default shows the data from ‘top to bottom’. If you want to show the data from left to right then you can use JavaScript to do this work. Here in this tutorial I will use JavaScript to swap the GridView’s Rows and Columns to bring 2 changes:
(more…)When working with GridView in ASP.NET Web Forms, there are requirements to show the sum of all the columns in the footer of the GridView. Well, let me tell you don’t write lengthy C# codes in .aspx.cs for these simple things, instead you can achieve this by using only a few lines of jQuery.
(more…)Page Contents
JWT authentication is a popular standard to secure the Web API. In my last tutorial I explained in full details about ASP.NET Core JWT Authentication and Authorization of Web API, if you haven’t read it make sure you do it now.
(more…)Page Contents
What is JWT in .NET - JWT which stands for "JSON Web Tokens" is an open standard method for securely transmitting information between parties as a JSON object (commonly known as ‘Token’). The token is digitally signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA. Since the token is signed with a public/private key pairs, the signature certifies that only the party holding the private key is the one that signed it. The JWT is generated by the authentication server when a client successfully logs in. This token contains the user’s identity and access rights and is then sent with every API request (which the client makes) as a bearer token in the authorization header.
(more…)