All Questions
230 questions
0
votes
0
answers
195
views
Razor page with real-time price data using SSE
I am trying to create a Razor page within my so-called "Server" solution to display some real-time stock prices, using the server-sent event approach. In the end, I am not getting any auto-...
0
votes
1
answer
45
views
Error while trying to insert Model with List of another Model in ASP .NET
I have a PatientModel that has some attibutes and one of them is a List of ContactModel. I made it that way so one patient can have more than one contact store to his data. I'm using a PartialPage to ...
0
votes
0
answers
58
views
Dynamically adding row to the table dropdown list returns empty
I'm creating a Purchase order view in my ASP.net MVC project.
Here there is a section to select the supplier, when the user selects it, the ajax call run and get the supplier details as well as the ...
0
votes
0
answers
62
views
li not being created from this JavaScript
Currently I am working on a project that involves taking an input, get some data, and then display data in a list under the input.
I can receive the string from the input into my controller (c#) but ...
-1
votes
1
answer
261
views
ASP.NET Core: how can I get Aajx to work within a ViewComponent?
I wanted to have my comments section (including the "post comment" button) entirely contained within a ViewComponent so that my main page's html isn't as cluttered. Though it seems that Ajax ...
2
votes
2
answers
89
views
Unable to connect to the C# Controller from frontend request
I am implementing Search by siteId feature using typescript and C#. I am not able to connect to C# controller from frontend request.
Here i am suppose to pass siteId as parameter. Please find my code ...
0
votes
1
answer
434
views
Cross-Origin Request Blocked - .net Web API and JS AJAX
I'm attempting to use Ajax to capture a submit event and then send the form elements formatted as JSON to a asp.net Web API 2. I am using the latest version of FireFox. Ad blocker is disabled. I have ...
0
votes
1
answer
468
views
How to bind html form properties to mvc controller method parameter?
Working on binding controller post method to pure HTML form on the view.
Need to figure out how to fill the parameter and execute method using form data.
Controller method:
[HttpPost("addcomment&...
0
votes
0
answers
86
views
I cannot save in database my HTML signature canvas value
I created a signature pad with HTML. I assigned canvas value to a variable by id, then I converted the assigned value to URL with the toDataURL command. I want to send this URL to the controller with ...
1
vote
0
answers
80
views
Selected option doesn't update if it references nested property
I am using .NET Core 3.1 to develop an internal web portal. There is a simple form where whole form must be refreshed with new data if ProjectId is changed. Currently, there is only one field (...
1
vote
1
answer
61
views
Disappearing of different pictures on hosting
I have more than 50 images on my website. I pull them all with ajax. My problem is it gives 404 not found error after 30 images.
I changed the formats of the images. I reduced the dimensions but in ...
2
votes
2
answers
824
views
ASP.Net Mvc How to pass data from View into Controller with a Button using Ajax
I have a button that takes data from a Model and passes it into an Ajax function.
This function should then call a controller, but it doesn't and a breakpoint on a controller is never hit.
The button ...
0
votes
1
answer
38
views
The MVC error on load HTML. ViewData item that has the key 'MY KEY' is of type 'System.String' but must be of type 'IEnumerable<SelectListItem>'
I am doing an MVC APP. For this example..
In my definition of my DropDownListFor I defined something like this.
@Html.DropDownListFor(model => model.SelectedSystem, Model.Systems, new { @class = &...
0
votes
0
answers
143
views
how to put a entire ajax into a iframe with stringbuilder?
So I have this iframe that populates on load with this string builder and I have these button that go into this iframe and once they press the button i want this script to run i used to get the error ...
1
vote
1
answer
723
views
Sending photos and multiple data to the controller with ajax
I am sending the selected photo to my controller in asp.net core with ajax and javascript. Thanks to the code below:
<form id="form" name="form" style="display:none;" ...