42,162 questions
-3
votes
1
answer
79
views
Deserialize Json string on POST when result is returned in [X].Name format
Everything works as expected until the json string is deserialized after the post back.
Class:
public class RegretLetterDetail
{
public int PositionID { get; set; }
[Display(Name = "...
0
votes
0
answers
63
views
Not receiving any response with HttpClient, despite one being sent
The calling application calls the auth endpoint of an API to receive a token. The API will, on successful authentication, return a JWT bearer token for the calling application to then use in ...
0
votes
0
answers
32
views
Does JavaScriptSerializer's MaxJsonLength limit apply to string content within objects or just JSON structure?
//1st way
public string GetSomeData()
{
List<SomeObject> largeCollection = GetLargeDataCollection();
JavaScriptSerializer serializer = new JavaScriptSerializer();
json = ...
0
votes
0
answers
66
views
How to create a route with parameters only, while still retaining predefined routes
I am attempting to create a very flexible routing system that allows users to configure their own publishable url paths to their own content pages, sort of like a CMS. To achieve this, I created a ...
0
votes
0
answers
36
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
0
answers
41
views
How to implement an Html.Action helper using only the RouteName and parameters without querying the entire RouteTable?
I’m looking to implement something similar to the Html.Action helper, but instead of using the controller and action names, I want to provide the RouteName and route parameters.
In our project, the ...
0
votes
0
answers
110
views
InvalidCastException get_DateTime() on System.Data.Linq
I´m having problems with the next error
Stack Trace:
Exception type: InvalidCastException
Exception message: The specified conversion is not valid.
on System.Data.SqlClient.SqlBuffer....
0
votes
0
answers
64
views
HiQ PDF Conversion Issue: Body Text Overlapping with Header and Footer
I'm using HiQ PDF to convert my HTML content to a PDF document. Occasionally, I'm encountering an issue where the body text overlaps with the header and footer. This problem doesn't occur every time ...
0
votes
0
answers
328
views
Does .NET Framework 4.8 support .env files for configuration?
I am working on a .NET Framework 4.8 application and want to store configuration values in a .env file instead of using web.config, app.config, or appsettings.json.
Does .NET Framework 4.8 support ....
0
votes
1
answer
42
views
Database not created after Update-Database
I am writing a CMS project with .NET Framework 4.6 but I ran into a problem at the beginning. The project has 3 layers, the data, domain and MVC layers are separate. I created the tables with fluent.
...
1
vote
1
answer
199
views
Blazor app localization with culture code in URL fails
For a Blazor Server project, I am trying to enable browsing to a localized page with URL like:
https://example.com/en/counter (for English)
https://example.com/fr/counter (for French)
https://example....
0
votes
1
answer
40
views
Usage of controller-level route
We have an API with a controller-level route defined like this:
[Route("api/[controller]")]
We also have method level routes defined like this:
[Route("/method_name/{version}")]
...
0
votes
1
answer
941
views
Azure WAF Intermittent Blocking Html FileInput with General 200002 and 200003 Violations
I have an older MVC (I think v4, it is written in .Net 4.8) web application that we moved behind AFD and enabled all of the default WAF rules in Blocking mode.
Sometimes users cannot upload images ...
-1
votes
1
answer
73
views
how to persist the state in react with local storage and useeffect?
i'm a beginner in react. i have a simple time tracking app.
it has a simple interface.
the problem is i have list of all employees which i am getting from the backend api in asp.net core. when i click ...
1
vote
0
answers
50
views
Page reloads instead of displaying modal for Edit, Details, and Delete actions
I’m working with an ASP.NET MVC project where I've used Entity Framework to generate CRUD actions for a Student controller. The HomeController handles the main view (Index), which displays a paginated ...
0
votes
0
answers
58
views
Unable to cast object of type 'System.Web.Mvc.MvcHandler' to type 'System.Web.UI.Page in ASP.NET MVC controller
I'm trying to get the current page from view in controller, but the code throws the error shown below.
Home controller:
public ActionResult Index()
{
// throws Null
Page = System.Web....
0
votes
2
answers
352
views
Build Azure Webjob v3 on .Net 4.8.2? Is it possible?
I have an ASP.NET MVC app running on .NET 4.8.2. I can't update to .NET Core yet. So I am stuck on ASP.NET MVC and .NET 4.8.2.
My app has a continuous web job and I build the entire solution on Azure ...
1
vote
0
answers
65
views
Floating video view in ASP.NET MVC not displaying video when navigating to other pages/views
I am using Agora for Video Chat in my ASP.NET MVC web app and Android. This is how it is working.
There is a separate view in ASP.NET MVC web app for VideoCall, in which there is a button on click of ...
0
votes
1
answer
78
views
How to add Multiple Images in ASP.Net Core MVC CFA(code first approach)
I'am using Generic Collection List but not working
public class Product
{
[Key]
public int p_id { get; set; }
public string p_name { get; set; }
public double p_price { get; set; }
public List<...
0
votes
0
answers
43
views
Drag and drop of rows not working in ASP.NET MVC view
I want to be able to implement drag and drop on this page meaning I should be able to rearrange the rows as I want. This is not working for me. I am not able to drag the rows around. This is an ASP....
0
votes
1
answer
63
views
ASP.NET MVC error 403.14 - forbidden on default page
When I'm debugging the app, it will start correctly looking for /Home/Index, however, when I publish to the server, I get
HTTP Error 403.14 - Forbidden
I'm not entirely sure what I have to do so I'm ...
0
votes
2
answers
76
views
Cannot access a disposed object. A common cause of this error is disposing a context issue
[Route("Admin/Image/AddImage")]
[HttpPost]
public async Task<IActionResult> AddImage([FromForm] IFormFile file, [FromForm] Image image)
{
if (file != null)
{
var ...
0
votes
1
answer
67
views
Asp.Net MVC Application Failed to Start
I have an ASP.NET MVC application and it fails to start. The incident started to happen after the update of the Visual Studio. .NET version of the application is 4.6.2.
Here is the content of the web....
0
votes
1
answer
81
views
Using Javascript the append didn't work this is ASP.NET CORE
My problem on this the contact fields is not appending on the modal. Based on the console.log I have 2 values of contacts. What's wrong in the javascript why the fields is not showing up?
I want to ...
0
votes
1
answer
46
views
Uncaught ReferenceError: javascriptFunction is not defined at HTMLAnchorElement.onclick exception
I try to implement a simple calendar in ASP.NET MVC 4. Its aim is to view a day and schedule meetings among different units of an organization. I am getting "Uncaught ReferenceError: GetDayViewJS ...
0
votes
1
answer
75
views
Implementing Background thread for a long running task
How can I manage two tasks that each take more than two hours to execute in .net MVC? I've been fetching a huge amount of data from a third-party website, and although I've tried using async/await, ...
0
votes
1
answer
31
views
Data Attribute has double quote
I am using ASP.NET MVC and in my class I have member whose description has double quotes in it like below:
[Display(Name = "Biological "Parent"?")]
public bool? IsParent { get; set;...
0
votes
1
answer
330
views
Session Timeout Issue with MVC Application Behind F5 Load Balancer Need Advice on Settings for Session Persistence
I have two servers running the same MVC web application behind an F5 load balancer. Despite correctly configuring session timeouts in IIS, sessions are expiring after only a few minutes of user ...
0
votes
0
answers
25
views
TinyMCE initialization error: The chosen schema: "cyclic" did not exist in branches: {}
I am supporting an ASP.Net MVC 4 application. It makes use of TinyMCE (v6.4.1) rich text editor in a number of views. There is one view in which the component fails to initialize, with the following ...
0
votes
1
answer
226
views
How can I download multiple pdf file from javascript to c# aspnet
I can generate and download a PDF file successfully if there's only one. However, when I attempt to generate and download multiple PDFs, I encounter an issue. I'm using the same code that works for ...
0
votes
0
answers
32
views
Calling a View from another folder - ASP.NET MVC 5
This .cshtml page display the main menu:
MyMVCProject\Location\Subjects\Views\@_MyMainMenu.cshtml
And, this .cshtml displays all classrooms data:
MyMVCProject\Views\Classrooms\@_Index.cshtml
I have ...
0
votes
0
answers
70
views
When I host my site on my PC In IIS server the email send correctly when i host on my Production server the email does not send
I'm experiencing an issue with sending emails using System.Net.Mail.SmtpClient in an ASP.NET Web API project. The emails are supposed to be sent automatically using Hangfire, but I'm encountering an ...
2
votes
0
answers
183
views
Two-way data binding issue in Blazor: Checkbox not updating bound property
I am a beginner in Blazor
Im not getting any error and why two way data binding not working,
I'm experiencing a two-way data binding issue in my Blazor WebAssembly app. I have a checkbox bound to a ...
-1
votes
1
answer
64
views
Azure style notification panel in ASP.Net
Using ASP.NET, is there anyway to design a notification panel similar to the Azure notifications, that pops up on the right side of the browser window on click?
Please see the attached screenshot. I ...
-1
votes
2
answers
441
views
convert HTML5 input type date format to like this "01-Jan-2024"?
I am trying to format my HTML5 input date type date format to "01-Jan-2024". I have tried placeholder="dd-mm-yyyy" value="" and required pattern="[0-9]{2}-[0-9]{3}-[...
0
votes
0
answers
31
views
How can I make a controller insert the data provided in a form?
Hello community I have a question regarding how to make the form push to the database and insert the data provided in the table what happens is that according to me I already have the correct insert ...
0
votes
0
answers
20
views
When I try to view info from my controller, it returns something else
I have another question regarding ASP.NET MVC when you want to display information from a controller in a view but it's not a table, how could you do it? I've tried with ViewData() and ViewBag, but ...
0
votes
1
answer
61
views
How I Can send question and answer by without reload web page
I want send qusetion to server and the then the server answer my quserion , and Iwant show the previous question s and answers , basd on the search.htmlcs
@* @page
@model SearchModel
@{
ViewData[&...
1
vote
1
answer
195
views
Load SQL database saved MS word document to Syncfusion Document Editor
Model.Attchment contains the byte[] of the document. It comes to the client side with my script, but not displayed in the Document Editor.
This is the script I'm using :
<script>
var ...
0
votes
0
answers
86
views
Rotativa PDF export taking significantly longer on Windows Server 2016 after recent update
I have an ASP.NET MVC 4.6 web application running on a 64-bit Windows Server 2016. The application utilizes Rotativa 1.7.3 to generate and export PDF documents. Previously, the PDF export process was ...
0
votes
0
answers
50
views
List is not binding in controller, when pass it through hidden field from view in ASP.NET MVC
This is the payload format of a property showing in the network tab. but in the controller, the below property gets 0, I have provided the razor code as well.
PatientPrescriptionOTCModelList:
[
{
&...
0
votes
1
answer
245
views
Nested child sub menus not getting generated in Asp.Net Core MVC project
i am trying to generate a 3 level nested menus for creating a navigation bar for my application. I am written below code. But the code only returns top menu and middle menu. Third menu named bottom is ...
0
votes
2
answers
68
views
ASP.NET MVC role is trying to use SQL Server Express not the SQL Server
I have the following in my web.config file
<configuration>
<connectionStrings>
<add name="DefaultConnection"
connectionString="Data Source=...
0
votes
1
answer
62
views
How I can get total number from Database by SignalR
i want get total employees number by signalR
but i can't doit
i add signalR on my project asp core
create Hub > dashboardHub
//////////////////////////////
Create dasjboard.js
///////////////
...
1
vote
2
answers
68
views
Application Insights telemetry shows 'NA' from MVC 4 application behind private load balancer
Hello Stack Overflow community,
I'm facing an issue with Application Insights telemetry in my MVC 4 application when it's deployed behind a private load balancer. Locally, the CPU and Memory telemetry ...
0
votes
0
answers
49
views
How to pass user role and file no from action to action using hidden fields?
I work on asp.net mvc. I face the issue that I can't pass user role and User code from IndexResignation action to PendingManagersRequests action using Hidden Fields.
so: How to use Hidden fields.
...
0
votes
1
answer
59
views
get data by linq but have Error when doit this
I have this Error
use casting ('t => ((Derived)t).MyProperty') or the 'as' operator ('t => (t as Derived).MyProperty'). Collection navigation access can be filtered by composing Where, OrderBy(...
1
vote
0
answers
38
views
Httpcontext is null with SignalR on FireFox but not on Chrome/Edge
Following is the similar question as below but it was asked 9 years ago so wanted to know if there is any solution yet which supports all browser. In my case everything works fine on Chrome and Edge ...
0
votes
1
answer
67
views
How to prevent label text from go to new line and display only one line?
I work on asp.net mvc i face issue label text display on two lines
but expected is display on one line .
I need label text display without go new line as Last working day it must display also on one ...
0
votes
1
answer
805
views
Base64 image shows in outlook email body but in Gmail it does not show the image, Gmail is not recognising the base64 string
I have an email template which is in Azure, in asp.net core api iam generating QR in base64 string and i use that as that as img src (like this : <img src="{{QRstring}}") the value of {{...