All Questions
292 questions
0
votes
1
answer
48
views
ASP.Net MVC JQuery is unable to see one property from a ViewModel but can retrieve value from another property when calling from Javascript
This is the error I am getting:
jquery-3.7.1.min.js:2 jQuery.Deferred exception: RIC is not defined ReferenceError: RIC is not defined
Here is my simple javascript function
<script>
...
0
votes
1
answer
400
views
Content Security Policy issue on newly created asp.net mvc project
I created a new web project via MVC5 (MVC, WebAPI, no authentication, not configured for HTTPS or Docker) targeting framework 4.6.1. I haven't performed any changes or modification.
I run the web app ...
1
vote
0
answers
56
views
Can't initialise tooltip after upgrading from 3.3.1 to latest version of jQuery
We have an old product which is written with .NET MVC. Now we are trying to upgrade all the dependecies to the latest version.
We are using jQuery and jQuery.UI.Combined from NuGet.
Now I have a ...
-1
votes
1
answer
90
views
Jquery: How to move ajax post list data from action to other action successfully?
[Picture1](https://i.sstatic.net/HiIHU.png)
İ try to send with ajax table data. Data can pass successfully passing to action as a parameter.
But When i try to passed data to another action via ...
0
votes
2
answers
62
views
Not hitting Success in Ajax
hitting controller and returning data while debugging but in js>>Ajax call>>success is not hitting
repository
public FGMOQMapping GetFGMOQMappingAutoSuggest(long loginId)
{
...
0
votes
1
answer
860
views
Display Confirmation bootstrap Modal when ModelState is valid using an ajax POST from Razor View
I have a scenario where I need to display a confirmation modal after the primary model has been validated on the server - using data annotations , but I want to actual commit to the DB to happen in ...
0
votes
1
answer
67
views
How to pass javaScript value in view page to Controller Action parameter, when change drop down list
I want to pass student Id in my controller action, I used JsonResult action, I catch student id but can't pass in action,
this is my JavaScript code ,
<script type="text/javascript">
$(...
-1
votes
1
answer
28
views
MVC 5 Option Empty Line With JavaScript
$('#DepartmentCode').change(function () {
var empName = $('#Employee_No');
var department = $('#DepartmentCode').val();
empName.empty();
$.ajax({
url: "/LeaveRequestEntry/...
2
votes
1
answer
3k
views
Received NULL Object in Controller when send request from view ( Ajax) even I use [FromBody] C#
Model:
public class From
{
public DateTime from { get; set; }
public DateTime to { get; set; }
}
Controller:
public MediaViewModel DashboardMediaByDate([...
1
vote
1
answer
2k
views
CRUD Operation for one to many relationship ViewModel in ASP.NET MVC
I have been looking through the net for the past few days but still couldn't get what I want. Maybe is my way for researching is wrong. But here's the problem
I have an Order Model
public class Order
...
0
votes
1
answer
158
views
How can i pass generic list from view to controller action with jquery
//vm
class myViewModel {
public Ilist<GenericClass> MyList {get;set;}
}
//controller
[HttpPost]
public ActionResult MyAction(IList<GenericClass> myList){
// do something with ...
0
votes
1
answer
1k
views
Edit Modal PopUp to be displayed on the same screen [closed]
I have a requirement where I need to display a Modal popup. When the user clicks on the link inside a grid, then that has to open a modal popup with the respective values.This is the partial view code....
0
votes
1
answer
352
views
Show/Hide partial view result one display at a time in foreach statement in main view at the click of a button
I have a partial list view inside a main view. The partial view is rendered in a foreach statement in the main view. I want to present the partial view result one display at a time, at the click of a ...
0
votes
2
answers
2k
views
How can I call a .NET MVC action on tab/browser close?
As a part of my MVC web application, I need to call a controller method when a browser or a browser tab is closed. I am using the Javascript onbeforeunload event for calling the method.
window....
0
votes
0
answers
367
views
Logout user from the site automatically when I close the tab or browser in MVC
On my Asp.net MVC site, I want to logout user from the site automatically when I close the tab or browser. I mean when I close the site by closing the tab instead of using logout button.
Is there any ...