All Questions
3,366
questions
0
votes
0
answers
30
views
ASP.NET MVC datepicker doesn't show calendar
I'm trying to add datepicker, however when I try to use @html.TextboxFor, the calendar is not popping up. As for EditorFor to input="date" options, they show mm/dd/yyyy format when I need dd/...
0
votes
2
answers
86
views
How to update a table and refresh the partial view
I am using ASP.NET MVC and have a HomeController, model, and view. I am trying to create a search filter, where the user can type in some characters, click submit, and filter a table (in a partial ...
0
votes
1
answer
31
views
A class property is null after second post
I have a simple contact management app. There are Services and each service has two contacts (DRI and Delegate). The index page displays the services and their contacts. The user can check the box ...
0
votes
0
answers
35
views
AJAX Requests from jQuery to ASP.NET Core API Losing Authentication
I am developing a feature in my web application that allows authenticated users to submit comments through a form. The frontend uses jQuery for AJAX requests, and the backend is built with ASP.NET ...
-1
votes
2
answers
43
views
JQuery accordion not working in Razor page
I've spent a few hours digging through here and other sites and can't find the answer.
I'm trying to implement a simple accordion in a razor page, but no matter what I try it doesn't work.
_Layout....
0
votes
1
answer
44
views
Using a spinner without Ajax
Well, I hope you can help me, this is giving me a lot of trouble
I'm using Razor with Net 8 MVC and I want a spinner to appear in two situations:
The first, before loading the page.
The second is in ...
0
votes
1
answer
122
views
Top menu bar and left hand side menu remain static, ASP.NET Core
I am using ASP.NET Core 6, jQuery and Bootstrap. I have a screen that has a left hand side menu, I wish the menu and top menu remain static and only the input details can scroll vertically.
See this ...
0
votes
1
answer
44
views
jQuery/Ajax form automatically submitting even though I have event.preventDefault in the submit action
I have an existing form that uses Ajax and jQuery. I'm trying to prevent it from automatically submitting and I've put event.preventDefault() in the submit action:
$(document).ready(function () {
...
0
votes
0
answers
13
views
Razor Views and Javascript : Append to multiSelect not working
I am trying to append options to multiSelect. But the data is not reflected on UI.
However, I can see the change in DOM through chrome dev tools.
@Html.DropDownListFor(model => model....
0
votes
1
answer
29
views
Binding Model data to form in ASP.NET MVC
How do I pre-populate data of a model to form I am getting data in model, I can see in quickwatch, but it's not populating in form.
This is my model and view. I am also sending data from this model it'...
0
votes
1
answer
40
views
How to add popup
I want a popup when I click on button for every list.
$(document).ready(function () {
var jsonData = @Html.Raw(Json.Serialize(Model));
function displaySortedData() {
var ...
0
votes
0
answers
37
views
How to add new row to dataTables from custom styles HTML string
I am trying to add a row to an existing datatables table by returning a custom styled html string and using that string to populate the new row.
The table I am using is as follows
<table class=&...
1
vote
1
answer
570
views
Uncaught TypeError: Illegal invocation : selector-engine.js:41
I recently upgraded my ASP.NET MVC application to latest bootstrap and jQuery versions. I get the following error when loading up a partial view in a modal.
Screenshot of error:
https://i.sstatic.net/...
0
votes
1
answer
52
views
How to Conditionally Invoke a JavaScript Function from a Razor View Based on a Separate Controller Method?
I have a separate controller method which builds a HTML table and is created into my Razor view when invoked through an AJAX POST.
Please see the controller method snippet below:
[HttpPost]
...
0
votes
1
answer
173
views
Asp.net core how to get json value in razor page without ajax call
I receive a json string from the server side that I want to access its values. This string is not received by Ajax call and I want to have its value in Razor Page.
In the picture above, two values, ...