.NET Archives

Nuget packages update – Scripts bundle error caused by Bootstrap 5.x in .net mvc application

Author - Webner
|
0 Comments
|

I recently updated my installed packages from nuget to work with the latest packages, but my .net application stopped working by throwing ‘object reference not set to an instance of an object’. It was displaying the red coloured text indicating the error line which was pointing to the ‘scripts’ bundle Read more…

Blazor in .NET

Author - Webner
|
0 Comments
|

Blazor is a new DOT NET web framework for building client applications using C # / Razor and HTML-enabled browser with WebAssembly.

It can simplify the process of building a single-page program (SPA) and at the same time enable full web development using .NET.

WebAssembly

WebAssembly is developed Read more…

Upload document using Google Drive API in .Net

Author - Webner
|
0 Comments
|

We will create a console application using .net and upload documents to google drive using Google Drive API V3.

Step 1: Enable Drive API

Go to the Google API Console.
Select a project.
In the sidebar on the left, click on Library.
In the displayed list of available Read more…

Pass the Data to Custom Validation attribute in MVC C#

Author - Harleen Kaur
|
0 Comments
|

How to Pass the Data to Custom Validation attribute in MVC C#?

Introduction

.Net provides the capability of validating model data with validation attributes like Required, Compare, Regular Expression, and user-defined custom attributes (also known as data annotations C#). MVC .net provides the built-in Read more…

Partial View in ASP.NET MVC

Author - Mahesh Kumar
|
0 Comments
|

The partial view is a special view used to render a portion of view content. It is a reusable view. It reduces code duplication. We can say that a partial view enables us to render a view within the parent view.

In other words, if the view does not contain Read more…

Integration of .NET with SharePoint

Author - Webner
|
0 Comments
|

SharePoint and .NET Integration

Create a .Net Web Api Application and then follow the below steps:

Step 1. Open “Tools” from menu and select “NuGet Package Manager” and then click on “Manage NuGet Packages for Solution”. Here is the screenshot:

Step 2. A new tab will Read more…

Download byte array as a file in ASP .NET MVC and Javascript

Author - Harleen Kaur
|
0 Comments
|

How to download byte array as a file in ASP .NET MVC and Javascript?

Here is a simple approach to invoke file download operation in the browser for bytes array available on the server:

I am receiving the file in the format of bytes array from Read more…