This publication provides an example of how to perform an asynchronous request to the server without reloading the current page, using JQuery on .NET Core. So let's get started. First, we need to create a Web site project on .NET Core, for example...
This publication was written as a simple instruction for myself, for memory, so as not to forget. The proposed option was used for authorization through a VK token in a server application. First, let's create a method to send an HTTP request and get a response from the server:…
To add support for CorsPolicy in a .NET Core application, open the Startup.cs file and modify the ConfigureServices and Configure methods as follows: ConfigureServices public void ConfigureServices(IServiceCollection services) { // Add...
To set the quality when saving an image using the SixLabors.ImageSharp library, you can do the following: image.SaveAsJpeg(path_add, new SixLabors.ImageSharp.Formats.Jpeg.JpegEncoder { Quality = 100 });
In this example, we will demonstrate how to make a dropdown menu select only the month, without the day, using bootstrap-datetimepicker. To implement this, we will need the following components: bootstrap - the bootstrap library jquery - the jQuery library moment - the moment library for working with time, in this example we will use moment-with-locales bootstrap-datetimepicker - the datetimepicker library for selecting dates. In addition, we will use the respond.js and html5shiv.min.js libraries to ensure that our example works correctly in IE.
В данной публикации приведен пример генерации Excel файла при помощи библиотеки OpenXML. Отличие этой библиотеки OpenXML от Microsoft.Office.Interop.Excel в быстродействии которое на порядок выше. Для работы с Excel документами необходимо у…
This article provides an example of getting user information in a domain AD using C#. To make it work, you need to add the following library: using System.DirectoryServices.AccountManagement; Then you can get user parameters.
In the previous part, we considered the installation of Bottle: Python Bottle Guide (Translation) Part 1 - Installation. In this part, we will go further and consider a simple example of a "Hello World" website application. 2. Simple example ("Hello World!") Here it is assumed that you have already installed Bottle, or the library has been copied to the project folder.
This guide will introduce you to the concepts and features of the Bottle framework. This guide can be read from start to finish as a tutorial for familiarization. It can also be used as a reference guide for familiarization with the features of the Bottle framework.
In this publication, an example of how to use Bootstrap and a simple JavaScript code to create a web page that can solve quadratic equations is demonstrated. Here, a more interesting example of code will be presented, which implements a very simple online calculator.