All Questions
126 questions
0
votes
0
answers
26
views
Reloading partial view with AJAX
So i have a mesaging system that when a message is sent im currently reloading the whole view to see the new message in the conversation, however, i want to make it so jus the message partial reloads ...
1
vote
0
answers
59
views
Authorization for GET request Python and .NET
I am trying to get some data from a database but it requires an HMAC authorization. The documentation is in .net and js and it is hard to translate to python. I do not have tons of experience with GET ...
0
votes
1
answer
94
views
Website manifest.json does not meet requirements
I am trying to add a manifest.json to my website. I am doing an asp.net core project and I have my file stored at wwwroot/manifest.json. But google lighthouse tells me that the manifest didnt meet the ...
0
votes
1
answer
44
views
Is there a delicate way to pass calendar events variables in Javascript
As you can see from the example below, I have a @model which contains data.
In order to use particular parts of the data, I have assigned it to a Json object by using Json.Serialize .The reason I have ...
0
votes
2
answers
1k
views
How to connect javascript code to database in ASP.NET
I have an ASP.NET application which has been working by creating a context to connect to a SQL Server 2016 database. So far it's been working great, but I've been tasked with adding javascript into ...
1
vote
0
answers
325
views
Accessing JSON array items from Javascript returned from C# using Jint
I am trying to communicate back and forth between C# and Javascript, using Jint. Mostly smooth sailing, however I am unable to access items in arrays returned from C# within my JS scripts. Accessing ...
0
votes
0
answers
23
views
Receive two ajax json Data from .net and use 'data.jsonA.testName'
i use .net and send js(ajax) two data to .net controller
in data test1 and test2 is json data.
.ajax({
type: 'POST',
url: "/test/test_Put/",
contentType: 'application/...
0
votes
1
answer
43
views
how to Receive two ajax json Data from .net
i use .net and send js(ajax) two data to .net controller
in data test1 and test2 is json data.
.ajax({
type: 'POST',
url: "/test/test_Put/",
contentType: 'application/...
1
vote
1
answer
58
views
Passing data from UI controller to Javasript it loses some data
I am returning my data from my UI controller and I have two objects of the same type in the data which are a certain entity. You can see they both contain values and if you were to fully expand either ...
0
votes
2
answers
841
views
Read data from JSON with multiple JSON objects in order to be displayed
I have the following JSON object that contains multiple JSON objects.
I want to read and display the following elements 1) CampaignName 2) Start date 3) End date
I have written the following the ...
0
votes
1
answer
167
views
.net mvc @foreach id for table/cell [duplicate]
when loading the table, I want to execute a javascript on each row for cell 4. This will format the json string that is being placed in it.
The way I have it coded is only updating the very first row/...
0
votes
1
answer
349
views
How to load a ViewBag in dependency of previous choosen option
I am working on MVC application. I have a problem with a form in Create View (create.cshtml). The Form has a three select elements (dropdown list). The first one is filled by ViewBag.RodzajePojazdow ...
0
votes
1
answer
472
views
Using JavaScript how do I sent JSON from Razor page to Controller in MVC .NET Core
I have a razor page with the following JavaScript code that gets the JSON object. From this code, how can I send the JSON object to a controller? (MVC Core.NET 3.0)
I now this sounds crazy - the only ...
0
votes
1
answer
82
views
Sending JSON object. How do I set up the simple .net controller method to receive this type?
Currently I am sending over object from angular that looks exactly like this.
{"department":2,"note":"asdf","weekEnding":"2019-11-02T00:00:00"}
I am then hitting this method in my my .net controller ...
0
votes
2
answers
5k
views
Values null when I make a simple post request to my .net controller from angular
This used to be a 415 error question.
Now it is a a receiving null values on the server side question.
I am having difficulty trying to get my values in the object myMessage over to the server ...