200,782 questions
1
vote
1
answer
61
views
In my ASP.NET MVC application, I noticed that once I send a variable in RedirectToAction(var) it stops working, even after when I remove the var
Pretty much the title. Once that happens, it's game over. I tried debugging it and although success == true, the debugger goes to the { and then directly to the closing } of the function, it simply ...
0
votes
1
answer
96
views
Nlog.config - logging http context related data into app-log.txt from background process
I had a problem with logger invoked from Quartz
<target name="logfile" xsi:type="AsyncWrapper">
<target name="logfileInternal" xsi:type="File" ...
0
votes
0
answers
98
views
Blazor - @onchange is not a valid attribute but onchange works
Something weird is happening with my ASP.NET MVC project. I started implementing some razor components for a section of the page that has a lot of UI change with user clicks.
This is a snippet inside ...
0
votes
1
answer
61
views
JQuery Datatable returning null when using Search
I posted the same question on the Datatables forum but they could not help me: https://datatables.net/forums/discussion/80946/searchpanes-not-working-correctly-with-razor-mvc#latest
I investigated a ...
1
vote
1
answer
81
views
WCF Service reference must be recreated every time I reopen ASP.NET MVC project — how to fix that?
I have an ASP.NET MVC application that communicates with a WCF service hosted locally. Currently, I consume the WCF service using a Service Reference added via Visual Studio.
The problem is: every ...
0
votes
0
answers
34
views
CustomError Mode off not showing detailed error message in ASP.NET MVC
On localhost I have set custom error mode off in web.config. There is no Application_Error method in global.asax. I have also commented HandleErrorAttribute in filter.config, but still I am not ...
0
votes
1
answer
84
views
Populate action link in ASP.NET MVC controller
I have an action link in my view like this:
@Html.ActionLink("", "SendEmail", "SendEmailController", ...)
And a controller that creates an action tag <a> with a ...
0
votes
1
answer
42
views
C# Kendo Grid - cascading combo box with pre-loaded values
I have a .NET MVC app where I'm using Kendo grid. I have a form that a user can fill out and save it as a draft, then come back later and finish it. When I go to edit the form I saved as a draft, I ...
0
votes
0
answers
28
views
Unable to use the Microsoft.Practices.EnterpriseLibrary.Validation
When I am trying to run the validate in the application which try to create the object using the below code I get the error message
public static void Validate<TEntity>(this IValidated entity)
{
...
0
votes
0
answers
944
views
How can I resolve the issue of NuGet packages not loading in Visual Studio 2022 after the 17.13.16 update?
Problem Description:
After updating to Visual Studio 2022 version 17.13.16, I'm encountering issues with NuGet package loading. Visual Studio fails to restore or download NuGet packages and shows an ...
0
votes
0
answers
22
views
Remote attribute doesn't work with ajax post submit action
In my project I have a modal window (just bootstrap) for add/update operations.
@* Add/Edit popup menu *@
<div class="modal fade" id="form-modal" tabindex="-1" data-bs-...
0
votes
0
answers
36
views
Does ASP.NET Identity have a method that allows for batch creation of users using UserManager?
I am implementing a method that receives data from an API. At the moment, the API is adding the data to the database by using a loop. This however is looking more and more unreliable as the data keeps ...
0
votes
1
answer
55
views
How do I pass model object to TypeScript in ASP.NET MVC?
I have the following typescript in a file called Link.ts:
interface LinkConfig {
token: string;
url: string;
redirectUrl: string;
}
async function postData(config: LinkConfig): Promise<...
0
votes
0
answers
19
views
modify saml assertion cookie to reflect new domain
I'm working in asp.net mvc
To achieve cross-domain re-auth I'm relying on AJAX call where I return response with repost url and then js send request to repost url
I modify Controller.Response.Cookies ...
0
votes
0
answers
53
views
DataTable is always empty in ASP.NET MVC
I am working with jQuery datatables, but the datatable is always empty when the page loads. On inspecting the network tab, the request returns an empty response but when debugging the controller ...
0
votes
1
answer
83
views
How to implement client-side and server-side validation for teacher updates in ASP.NET MVC?
I’m working on a school management system (ASP.NET MVC + MySQL) and need to implement update functionality for teacher records with robust validation. Here’s where I’m stuck:
Current implementation:
...
0
votes
1
answer
64
views
Umbraco - BeginUmbracoForm posting to the wrong controller
I cannot work out why BeginUmbracoForm is generating a form that posts back to the wrong controller. I figure this is due to data within the hidden upfrt field but I cannot find a solution or really ...
0
votes
0
answers
26
views
Integrate arcgis as a service in Visual Studio 2022 in ASP.NET MVC project, to convert address value into longitude and latitude
I want integrate arcgis as a service in Visual Studio 2022 in an ASP.NET MVC project, to convert address value into longitude and latitude.
I tried too many thing that available online.but i didn't ...
2
votes
0
answers
39
views
How do you get the connection id from the hub to the serverside controller in .net core
i have this hub in signalr:
using Microsoft.AspNetCore.SignalR;
using System.Collections;
using System.Diagnostics;
namespace BulletControls.Hub
{
public class ForumHub : ...
0
votes
0
answers
71
views
Dependent SignalR scripts not being created with package VS2022 package install
I am supporting an ASP.NET MVC 5-based web project in Visual Studio 2022. I am attempting to add SignalR support, following the instructions at https://enlightsolution.com/asp-net-mvc-5/signalr-with-...
0
votes
0
answers
36
views
Can't open Nuget package manager in Visual Studio 2022
I am using Visual Studio 2022 v17.13.5. I have many desktop (Winforms) and ASP.NET MVC web application projects. For some time now, I have a problem with Visual Studio and it is affecting all the ...
0
votes
0
answers
22
views
ASP.NET MVC Language coded url structure
My first goal is to get the id and code of the language when the user selects a language and keep it in the session. Because I will use the id for database queries and I want to be able to use the ...
0
votes
1
answer
134
views
vbc.exe Missing While Using RDLC in ASP.NET Core MVC 8.0
We want to download a PDF file using RDLC Report Designer and use expressions in the footer section to use the Page Number options, but while running the file, the below error is coming, and when we ...
0
votes
1
answer
230
views
How to manage branch-specific database schema updates in a Git-based ASP.NET MVC (database-first) project? [closed]
We're using a database-first ASP.NET MVC application and recently migrated from TFS to Git. We're now following the GitFlow workflow, with separate branches for features and a shared development ...
1
vote
1
answer
80
views
How to Perform Remote Validation Dynamically in ASP.NET Core Edit View (Edit.cshtml)?
Edit.cshtml
This is my Edit.cshtml file, where I dynamically render form controls and attempt to add validation attributes based on the model's properties.
@model Tuple<object, JObject>
@using ...