200,637 questions
Advice
0
votes
0
replies
49
views
Are handler methods technically optional in a Razor Pages PageModel?
I recently had to add some makeshift API endpoints to a Razor Pages app that I could call from any other page on the site using client-side JS. I found an article that achieved this by adding a new ...
Best practices
0
votes
5
replies
94
views
Positioning Div relative to outer Div
My apologies if the title is not good.
I am on a group project making a DND map that will let the player move around pieces on the board.
It utilizes Jquery-UI for its draggable functions.
Currently I ...
-3
votes
0
answers
94
views
Would this be enough for SQL DATABASE [closed]
’m building a basic SQL database application in C# using ASP.NET Core, Entity Framework Core, SQLite, and Identity. Below are my notes and steps exactly as I’ve written them. I want to know if this ...
-1
votes
2
answers
80
views
Value Binding Leaves Property Null
I have a view model that packages together a Genome model and a MatchString model:
public class GenomeMatchingViewModel
{
public Genome MatchBase { get; set; }
public MatchString ...
0
votes
0
answers
19
views
ASP.NET MVC : how to set up route template with controller name in default action?
I am blind and use a screen reader with Visual Studio. The ASP.NET MVC convention dictates the existence of multiple view files named index. When I switch to an Index file in the editor, the screen ...
0
votes
3
answers
76
views
Disable Submit button *after* jquery.validation
I am using jquery.validation in an ASP.NET MVC form and would like to disable the submit button when jquery.validation passes and form actually submits. The validation triggers in the background (I am ...
Advice
1
vote
7
replies
104
views
Best Practice passing object to component blazor
I need advice or an idea how this can be improved - what is the correct (or better) way to passing a large object?
I have a page called Tracker.razor. This page was specifically only for grabbing data ...
0
votes
1
answer
77
views
.NET 4.8 AllowAnonymous attributes
I'm trying to implement an endpoint that bypasses the standard NTLM authentication in an ASP.NET MVC application running on .NET 4.8.
I've tried to go down the route of just adding the [AllowAnonymous]...
1
vote
0
answers
29
views
ASP.NET MVC 5: could not load type 'X.MvcApplication' after removing Roslyn system.codedom [duplicate]
I have an ASP.NET MVC 5 (running on .NET 4.8) application.
Initially the app failed to start with:
Could not find a part of the path '...\roslyn\csc.exe'
This was caused by the Roslyn CodeDom ...
0
votes
0
answers
53
views
ASP.NET MVC AntiForgeryToken could not be decrypted
I have an ASP.NET MVC 5 application (.NET Framework 4.7.2) running on IIS Express.
I am getting the following exception when posting a form:
System.Web.Mvc.HttpAntiForgeryException: the anti-forgery ...
1
vote
1
answer
485
views
Visual Studio 2026 cshtml pages intellisense not working
My ASP.NET MVC app is building fine still, but since moving to VS 2026 the intellisense is broken. When I hover over the "red squiggles", I get an error
CS0103 message: the name 'model' ...
0
votes
1
answer
57
views
Why does Azure Search return null for the calling method?
I have a web application implementing Azure Search. It is also using interception to build filters for the search prior to execution.
The path of execution is:
controller calls search provider
...
0
votes
1
answer
85
views
ASP.NET MVC pasting document path into a textbox to read recipe XML file by button click
I'm new to ASP.NET MVC and want to create a web-based recipe app. In this app, I want to read XML files from my computer or mobile. For that reason, I want to copy the file location into a text file ...
0
votes
1
answer
119
views
ASP.NET MVC on .NET 4.6 : session and cookies being cleared as soon as RedirectToAction or Redirect is called
I have an ASP.NET MVC web application on .NET 4.6 that works just fine in one environment, but fails in the second, when all configurations are the same. Doing a bit of debugging showed that the ...
0
votes
0
answers
59
views
How to configure equirectangular tile images in photo sphere viewer 360 load
I’m using ASP.NET (.NET Framework) and trying to display an equirectangular tiled panorama using Photo Sphere Viewer v5.14.1 with EquirectangularTilesAdapter.
The page loads without syntax errors, but ...