Category "asp.net-mvc"

Improve the build speed of Visual Studio -For Big Project

I have a large .NET project in C # that includes 78 library projects and one MVC project. Most of the projects are related and have been used in the MVC project

unable to send an email after deployment of website using asp.net mvc 5

I am trying to send an email using asp.net MVC 5 I use the number of repositories for email it's working on local but after deployment, it's not working where I

Where is the Program.cs or Startup.cs file in asp.net?

I am trying to do an online library(as in an online book store) using ASP.NET MVC. I can't find the Program.cs file or the Startup.cs file. I tried manually cre

Using RestSharp to request a file fails with memory issue

I have to API's talking to each other on Kubernetes. The first API asks the second API for a small file using RestSharp (in ASP.NET). The file is 8Kb so basical

How to rename key value pair within a nested json structure in C#

Hello everyone and thanks for helping me in advance. The following question might sound silly but I'm a beginner about it. Let's start! I have the following jso

ASP.NET Core : how to restrict applying custom attribute on condition during compile time?

Here is the sample code: public sealed class CustomAttribute1 : Attribute {} public sealed class CustomAttribute2 : Attribute {} [CustomAttribute1] [CustomAtt

Identity MVC Project in .NET 5 upgraded to .NET 6 cannot find Views when deployed to AKS Cluster (Linux)

I am working on upgrading my .NET Identity project from .NET 5 to .NET 6. Currently, everything works flawlessly while the project is in .NET 5 but as soon as I

colouring rows based on id of model

i want unique color to the table rows to identify all records of that InternalTaskID (which can be taken from Model) currently I'm doing this... @{

Load Balanced Application - Running Tasks on each machine on demand

So we currently run a console application tied to the start of a web app on each of our hosted (windows) machines in Azure. This runs a process to alter the SNI

Create Magic Links for users to access a .Net MVC WebApp

I want to add a new feature to my WebApp for events - build with .Net MVC - to send a magic link to each participant - after they register in the event - to acc

How to prepopulate name of the printer in the browser

I'm using ASP.NET MVC and I'm using a function with AJAX that opens in the browser the window to print. My questions is when I print I would like to already set

How to implement SAML SSO with AZURE AD in ASP.NET MVC Web Application

I create a simple .NET web application and I want to implement SAML SSO with Azure AD. I am using .NET version 4.8. I couldn't find any documentation to set up

Not getting the error message from asp.net web api backend in $ajax method

I have a simple ASP.Net Web API method that returns a BadRequest like this .. catch (Exception ex) { Log.Error($"CreateRequest:requ

Renci.SshNet.Common.SftpPermissionDeniedException: 'Permission denied'

I am new to SFTP. I am getting Renci.SshNet.Common.SftpPermissionDeniedException: 'Permission denied' error while uploading an image to the SFTP location from a

While executing IronOCR on Windows Server 2016 using below line of code getting error described below

Code : var Ocr = new IronTesseract(); using (var Input = new OcrInput()) { var Result = Ocr.Read(Path.Combine(strFileFolderPath, strFileName + "." + curent

Why crystal report not refresh the parameters automatically?

I am using this code in asp.net to run crystal report : paramField.Name = "@ORDER_ID"; paramDiscreteValue.Value = TXTORDERID.Text.ToStri

Decorator @property on ASP net core like in django

The thing is that like in Django which you can add model properties without changing the model class using the @property decorator. I'm trying to achieve same w

Use C# string as parameter in JQuery tree

Good day. I have a tree in my MVC view, where I can add in nodes like so: <script type="text/javascript"> $('#jstree_demo').jstree({ 'core': {

Pass param with @using (Html.BeginForm FormMethod.Get

@using (Html.BeginForm("testGrid", "Transport", new { id= 3062 }, FormMethod.Get)) { How I can pass the param(id) with [HttpGet] in asp.net mvc without use sub

Entity Framework Core child entities only show up when I debug through code

I'm having this really weird scenario where I have a component in MVC that will call a service to grab all the categories in the database and include its child