Skip to main content

All Questions

Tagged with
0 votes
0 answers
37 views

Passing two parameters (IFormFile and a string) with JSON to C#

Versions: ASP.NET and Web Tools - 17.10.341.11210 C# Tools - 4.10.0-3.24312.19+ JQuery - 3.3.1.js JS - 2.8.3.js I'm trying to pass an IFormFile and a string from a JSON file select and a string input. ...
Kevin Fischer's user avatar
0 votes
1 answer
37 views

How to change from readonly to not readonly of input in ASP.NET Core

MODAL <div class="modal fade" id="residentModal" tabindex="-1" role="dialog" aria-labelledby="residentModalLabel" aria-hidden="true"> ...
Erck's user avatar
  • 33
0 votes
1 answer
44 views

Display the all the details of Resident after clicking the view button using ASP.NET Core

Manage.cshtml <table class="display table" id="ManageResident" style="width:100%"> <thead> <tr> <th>Resident ID</th> ...
Erck's user avatar
  • 33
2 votes
1 answer
30 views

Manage concurrent users per single subscription

I am implementing a functionality in which user can take one subscription &** maximum 10 account can be created per single subscription but only 3 concurrent users are allowed**. I am using ...
Yash Lathiya's user avatar
0 votes
1 answer
34 views

Adding a RequiredFieldValidator causes the 'jquery' is not a valid script name. The name must end in '.js' error

I have a problem inside an asp net application where I get the 'jquery' is not a valid script name. The name must end in '.js' error when I try to add an asp:RequiredFieldValidator element inside an ...
Lorenzo Santarelli's user avatar
0 votes
2 answers
53 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" ...
Hamed Javadi's user avatar
0 votes
1 answer
70 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 ...
Ryan's user avatar
  • 672
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()"&...
Erck's user avatar
  • 33
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-...
Maryam12 forex's user avatar
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 ...
littlelion111's user avatar
-1 votes
2 answers
41 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" ...
GH DevOps's user avatar
  • 365
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 ...
Kishor Admane's user avatar
0 votes
1 answer
26 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"&...
TheFallenOne's user avatar
  • 1,656
3 votes
1 answer
72 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 ...
Davood's user avatar
  • 5,556
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 ...
littlelion111's user avatar
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=...
mfarid2's user avatar
0 votes
0 answers
36 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/...
Ezgi Eylül Aşkın's user avatar
-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 ...
Moheman Aldulimy's user avatar
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 ...
vaibhav madane's user avatar
0 votes
2 answers
48 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 ...
Saamer's user avatar
  • 4,930
0 votes
0 answers
63 views

How to stop button onclick using javascript?

Is there anyone that can assist? <div class="address-grid"> @foreach (var item in Model.ExistingAddresses) { <div class="address-item"> &...
Krunal Parmar's user avatar
0 votes
0 answers
67 views

When i load my PartialView html using jquery, an controller that i didn't call is called with 0 value id parameter

I have this View Edit.cshtml @model ProdutoViewModel @{ Layout = "_Layout"; } <nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb" class="...
Samuel Oliveira's user avatar
0 votes
0 answers
32 views

Can we parameterize jQuery ajax call for inserting data to database?

This is my simple code for inserting data to database and it's working fine. Table name is AccountMaster function Insert() { var Value = {}; Value.Id = $("[id*=hdnId]").val(); ...
Shaiwal Tripathi's user avatar
0 votes
0 answers
28 views

How can add drop-down from other table in my kendo grid

So I want to drop-down of the items that are present in other table and I want them in my kendo grid using asp.net Mvc so how can I do that ? I tried to take 2 columns name in my main model from the ...
Julius_1907's user avatar
0 votes
0 answers
25 views

ASP.Net Webform: Server side web method not firing by jquery ajax

I am working with web form where i have button and one input file. when user click on a button then file open dialog will open and user select file. user selected file will be pass to server side ...
Thomas's user avatar
  • 34.1k
0 votes
0 answers
72 views

How to get value from editableSelect() by jquery in asp.net c#

I am trying to get the id of selected list item (html-editableSelect), but in the place of select Id value I am getting undefined alert. Here is my aspx code <select id="cmb_year" runat=&...
s.k.Soni's user avatar
  • 1,220
0 votes
1 answer
28 views

ASP.NET Core MVC validations not being displayed on view for child entities

I'm experiencing the issue while displaying errors in my view for child element. I've got 2 entities Restaurant and Menu with their respective relationships described as below: public class Restaurant ...
newnick988888's user avatar
0 votes
1 answer
21 views

Reloading MVC5 Partial View that contains a Document Viewer

I have a partial view in MVC5 that displays a document viewer and a button that lets users upload a document. I want to be able to reload the contents of the partial view or just reload the entire ...
Ephraim Ross Jacinto's user avatar
0 votes
1 answer
73 views

Replacing google doc template text with placeholder {{text}} by google sheet images (charts: line, bar,pie)

I make a daily log report of my work in Google Sheets, and have to submit that report on a monthly basis. For that, I have a template report in my Google Drive account. That template needs to be ...
Kisna 's user avatar
-1 votes
1 answer
60 views

Run a script that checks for SQL Server changes that returns a boolean value

I already plan on doing this differently with webhooks, but for now I just need to show a PoC for this where the browser client will check on intervals if there's any changes to an SQL Server database ...
Ray Jay's user avatar

15 30 50 per page
1
2 3 4 5
599