All Questions
17,943
questions
0
votes
2
answers
46
views
Problem in sending data to the controller through Ajax in ASP.NET MVC
I use this foreach:
foreach (var item2 in RItem.GetChildItems(item.ID_Ca))
{
<div id="@idc" class="accordion-collapse collapse" aria-labelledby="headingTwo2"
...
0
votes
1
answer
61
views
FileContentResult return - 2 different controller methods, different result
I am using ASP.NET Core and ClosedXML to generate an Excel export.
Export Method 1
Here is the controller method that DOES return an .xlsx file to the browser. The method gets called from a .cshtml ...
1
vote
1
answer
39
views
How to prevent a clear data upon clicking new add address using button in ASP.Net Core
@model Registration
@{
ViewData["Title"] = "Register Page - Step Two";
}
<button type="button" class="btn btn-primary" onclick="addAddress()"&...
0
votes
0
answers
15
views
How to transfer method to Next in JQUERY Form
This is my script, I want to send a method to next Button in step form when user want to go from form 3 to form 4:
(function ($) {
"use strict"
var form = $("#step-form-...
0
votes
0
answers
46
views
Why is the selected value not retained?
I have an MVC application where a user can add and delete to their schedule. Each time they do, it refreshes so the previously selected dropdown goes back to the first option. How do I get it to ...
-1
votes
2
answers
39
views
JQuery .append(): Add <strong> inside <p>
I'm trying to render this dynamically using jQuery .append() :
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" ...
0
votes
0
answers
26
views
dynamic colspan mix object with string, numbers, date string in c# javascript
The issue is in Bottom and Top performance columns are dynamic, I need to set colspan by dynamic no of columns, i select 1 to no of months of period (mm-yyyy) in 2023 or other year. abc to region ...
0
votes
1
answer
25
views
jQuery - Remove hidden attribute not working
This is my .NET Core code of the view. When Red is selected, the FruitDate field should show up. When All is selected, the FruitDate has to be cleared and hidden.
<div class="form-group"&...
3
votes
1
answer
70
views
Why should change the first letter of the property to lowercase when updating the project to .NET 8?
I used .NET 7.x (ASP.NET Core 7 MVC) and JavaScript Library v1.10.2 and use XHR in Ajax to get data from the controller as shown here.
Send a request to get data like this:
function ...
1
vote
2
answers
41
views
Cascading dropdown AJAX loop call
there is a part of my form in which a user can enter the building and room and click the add button if they want to enter another building and room. I am using AJAX to populate the rooms based on the ...
0
votes
2
answers
53
views
Ajax Returns MasterPage File In Response Instead Of Return From Method From Current Page
Ajax returns masterpage html instead of returns from my method.
Here is my client code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page1.aspx.cs" Inherits=...
0
votes
0
answers
34
views
The requested resource does not support http method 'GET'. (jquery-3.7.1.min.js:2 POST http://localhost:51067/Api/Values/Insertogrenci 401
I got this error while creating my student adding page, why could it be?
The requested resource does not support http method 'GET'.
$.ajax({
type: 'Post',
url: "/Api/Values/...
-4
votes
1
answer
32
views
Recorder Screen in .net [closed]
I have website exemption system i want when user open website record session and save video to wwwroot and when finish session end video i want in JavaScript or c#
project : asp mvc core
when finish ...
0
votes
0
answers
32
views
Popup is not displaying
If the user has made changes in the form and attempts to leave the page, a popup will appear. The popup is functioning correctly for leaving the page. However, when the user tries to switch tabs, the ...
0
votes
2
answers
43
views
CORS Error - Unable to replicate on most devices
For Conference Captioning, I have a few webpages that I built to help the Deaf and Hard of hearing to get live captions for in-person events: (1 & 2)
I tested it on 2 different Macs, 2 different ...