Questions tagged [model-view-controller]

Model–View–Controller (MVC) is an architectural pattern used in software engineering. For Microsoft ASP.NET MVC, please use [asp.net-mvc] tag instead. For Spring MVC, please use [spring-mvc] tag instead.

0
votes
0answers
3 views

Type: Error Message: Call to undefined method Main_model

I am not able to figure it out the error can any one help me .. Below is the code. main_model.php <?php class Main_model extends CI_Model { // function fetch_data($selecteddate){ // //$...
0
votes
0answers
7 views

CodeEffects in MVC

I am trying to implement codeEffects 4.x rule editor in MVC, as I can see in their documentation https://codeeffects.com/Doc/Business-Rule-Implementation-Example-Mvc-Net they are using codeEffects 5.x ...
0
votes
0answers
12 views

I am using Razor mvc and i would like to show images and files after a actionlink clicks from a folder called“UploadedFiles”

When I click the ActionLink It's redirecting to the controller followed by folder name and file name like this: http://localhost:50078/Profile?DisplayFile=%2FUploadedFiles%...
0
votes
1answer
18 views

How can I hide white box icon from day pilot scheduler from tree resource?

I am using day pilot scheduler in my project. I want to hide the white box from child node of day pilot scheduler, as shown in the picture:
0
votes
0answers
9 views

how to add widgets in every a qtableView cell with a MVC design?

Here is a simple example of a qtableView where every cell have a different item. In the example here i used numbers, but ultimately i wish to display animated gifs for every cells. I wish to keep the ...
2
votes
1answer
47 views

'Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection

I'm using ThreadPool with generic repository and I'm getting this error; 'Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency ...
0
votes
0answers
8 views

Umbraco problem getting chilld properties

I have Umbraco Content List containing multiple Umbraco Content pages. When I try to find some content page properties like Page Title or Heading or bodyText I'm getting "The function evaluation ...
-2
votes
0answers
25 views

How to avoid deadlock if the concurrent updates happen to a particular table from WEB API [on hold]

In my MVC Web API, for every 4 seconds I am getting 60 request from 60 devices now which is likely to scale up in the future as my device increases. The API is trying to update the data in the DB ...
1
vote
0answers
20 views

How to separate Database Operations Layer from BaseModel Layer without using Extend in PHP MVC?

I am working on a code where everything works perfectly fine but the issue I am currently facing is that I want to make it more generic by separating my BaseModel Class from my DbOPerations Class. At ...
0
votes
3answers
52 views

Returning Specific field in Linq .net core

I am having a problem on returning the fields that I want. I have a model and I want to return a specific data from my Model. Here is my model. using System; using System.Collections.Generic; using ...
0
votes
1answer
15 views

How to create Event in daypilot scheduler?

I am using Daypilot scheduler in one of my project, i am able to get resources from database but not able to create event my modal popup is open for create event but not able to add is there any way ? ...
-4
votes
0answers
23 views

hide result if value is zero in laravel controller [on hold]

hello i was wondering is it possible to hide result if value is zero? if possible please help below is my code. Note: term1_result is a name of column in my table Controller: $scores = igcse_score:...
1
vote
0answers
16 views

modal problem partial view same data show but different item selected

Hi Everyone, I try to used the modal to avoid having multiple pages. but I got a problem, first, I click the view button and it will display to modal the right information; but when I click other view ...
0
votes
1answer
13 views

Access to model addatribute in javascript spring MVC

Here(Controller) I add an attibute to my model @RequestMapping("/archivosProcesados") public String archivosProcesados(final ModelMap model) { model.addAttribute("allfiles", filestorageService....
0
votes
1answer
75 views

Contact form doesn't work, “Value cannot be null. Parameter name: address” MVC5

I have a contact form and I have no clue on what is going wrong. This the code for the model I wrote: public class Contact { public string FromName { get; set; } public string FromEmail { ...
0
votes
0answers
7 views

Using POST with multiple buttons on a form with CppCMS

I am following this CppCMS tutorial along with its sample code. There is a single button in the form, and the template contains something like this: <form method="post" action="" > How can ...
-2
votes
0answers
13 views

Any Project Ideas on Dot net MVC? [on hold]

I want a idea to develop a project on M.V.C dot net.We are thinking to develop the project on Management of data and performing operations on that data.
2
votes
1answer
18 views

Append a record to Xml ASP.Net MVC5

Based on the index in the controller, how would I append a record to an XML file? I've done some research, but I can't seem to wrap my head around it. Index(controller) public ActionResult Index(...
0
votes
0answers
3 views

donwload partilview in xls format using mvc

I am using below code to export partial-view into xls format and partialview have table with child row. oPartialViewObject : html table string public FileResult ExportSettlementJobToExcel() ...
1
vote
0answers
16 views

.Net target framework changed to 4.7.2

I am facing below issue after updating .net target framework version to 4.7.2 Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ...
0
votes
1answer
20 views

Vue JS mutating prop with Alert component

I am using VueStrap components based on: https://wffranco.github.io/vue-strap/ Unfortunately I receive an error while I am setting visibility for alert, my code: HTML: <alert :show="showAlert" ...
0
votes
1answer
12 views

How can I resolve that issue?

IDescribableEntity not founds My requirement is to maintain all logs of sites. e.g insertion deletion and edition of any field/table in database must be save in log data i try above code in my ...
0
votes
0answers
19 views

My login route is not working and i get an “Unknown authentication strategy ”local"

I just started learning express and have trying to solve this for a while but i had no luck getting past it. I am creating an image uploading app with express.js using mongo database and i am having ...
0
votes
0answers
14 views

C# SignalR Real Time Push Notification from a Non Web Assembly

I need to make a real time push notification application for a project using multiple assemblies. I have Core MVC application and an assembly which contains an implementation. I'd like to make it so ...
-1
votes
0answers
27 views

Why a print is very small when printer from a tablet or cellphone but prints ok when printer from a pc? [on hold]

I am using a BlackCopper terminal that I am using to print a receipt from webpage via pc or a tablet. It works but when I print from a tablet or cell phone then it prints it very small and out of ...
1
vote
2answers
29 views

Dialogflow Webhook C# integration

What is the Dialogflow webhook format? I want to capture the data in an MVC controller and then respond to the webhook whilst maintaining context. How do I do this in C# with the Dialogflow v2 client ...
2
votes
1answer
24 views

Angular JS Bootstrap UI Modal for Dynamic Images

I tried following this example How to zoom image with angularJS This is getting images from a JSON website and has two different picture links for each {}. I'm trying to enlarge thumbnail images ...
0
votes
0answers
8 views

mvvc core custom scaffolding templates

I'm currently using custom templates for MVC Core Scaffolding Controllers with Views (specifically MvcControllerWithContext). I've customized the templates on C:\Users{username}.nuget\packages\...
0
votes
1answer
34 views

MVC - Passing ReturnUrl to controller

I want to redirect to Login Page on Click and when the login is verified, I would like to get back to the previous location. <a style="display: none;" class="user-menu-links" href="/Account/Login"...
0
votes
1answer
44 views

proper way to handle data returned by stored procedure in entity

I keep on encountering this error The data reader returned by the store data provider does not have enough columns for the query requested. I have tried different ways on how to handle the ...
-1
votes
3answers
22 views

jQuery AJAX call to Controller action passing array of values

I'm trying to pass an array of checkbox values from an Ajax form in MVC to a controller action. Here's my code: The form (in a modal): @using (Ajax.BeginForm("GetPrintableProject", "Project", null, ...
-1
votes
1answer
24 views

Xamarin control is not respecting is visible property

So i have an observable collection of buttons where i am trying to bind IsVisible to one of the buttons and the button displays even when i hardcode IsVisible to false. View: <c:...
0
votes
0answers
26 views

Symfony4 Controller __construct() ArgumentCountError

I'm trying to build an MVC application utilising some of the Symfony components (not the full framework though). I'm basically following create your own framework tutorial. I set up routes, ...
0
votes
0answers
30 views

Cannot declare a variable of static type ZipFile [duplicate]

I'm not sure what's going on here. I have the using statement using System.IO.Compression and I have checked that the reference to the correct dll is there. For some reason I get a red squiggly when I ...
1
vote
3answers
56 views

Change button appearance/icon

I want to change the icon on my button. Here is the xaml of my button: <Button Name="InitPurgeBtn" Click="InitPurgeClick"> <Rectangle Width="35" Height="45" Margin="0,0,0,0"> &...
0
votes
2answers
28 views

getting a list in MVC from Umbraco

I have Umbraco Document types MyContent and MyContentList. MyContentList has a list view of MyContent. In the partial View I have @inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels....
0
votes
0answers
18 views

Application experienced internal error loading the SSL libraries in asp.net MVC and FileContentResult

The MVC application am developing has feature to upload/download files that supports files of type- xls,xlsm,xlsx, doc,docx,pdf,msg etc. Recently, the code for downloading the file got modified to ...
0
votes
0answers
31 views

How to implement Presentation Model pattern in web MVC - for top menu display

I am working on a web MVC project and I wished to include a top menu component in my pages. What I tried: At first, I defined a base view class to handle the fetching of menu data from the model ...
-1
votes
3answers
80 views

Missing required parameters for route (Laravel)

I am getting totally frustrated now... Trying to use an edit method within a controller. All the other controllers work fine, but here I might have missed something and could not find. Error: ...
0
votes
0answers
12 views

Offline sync Sqllite to MSql

I am developing a web/mobile application. Mobile version should able to work offline as well and need to sync data two ways when online. I am using Cordova for mobile and Web version is a MVC app. I ...
0
votes
1answer
21 views

Display local variable with DisplayFor? [duplicate]

I've defined Shared/DisplayTemplates/decimal.cshtml with custom formatting. I'm aware that whis works with @Html.DisplayFor, but how to format local variable defined in Razor view? For example @{ ...
0
votes
0answers
32 views

Dropdown-list hover and clickable

here is what i am trying to accomplish when i am hovering over National Inventory i want to set my list options (li's) hoverable and clickable, and right now i can't click in any dropdown list option. ...
0
votes
0answers
28 views

What is a good way of reaching the same Model instance from multiple views in an MVC app?

I have a problem regarding the implementation of MVC or MVP pattern onto an android app, the idéa, without going into code specific details, is that the app will include multiple pages, and all of ...
0
votes
1answer
46 views

how to change my pie chart color according to the value

i want to show color red when View Bag = Inactive, I'm using high charts to show pie chart. while status is active it should be in default or blue , when its status is Inactive it should be in red ...
4
votes
1answer
57 views

API linking Database to MVC project and Mobile App Xamarin

I'm new to Xamarin, I'm using VS 2017 Enterprise with the latest Xamarin updates. I want to add an API so that the Db can communicate with both my mobile app and MVC project. I created a cross-...
-1
votes
0answers
43 views

How to access other classes from GUI element ActionListener?

A am making a GUI program and trying to implement MVC pattern. I have: class Window, that includes GUI, specifically a JButtins array; calss Game, that includes game logic and array of other objects (...
0
votes
0answers
24 views

Comparing two browsers with id [on hold]

I want to write an application (with the MVC.net framework) that should only run on the safe exam browser, but not on Firefox. When I run it on Firefox it runs also. Is there a way I could ...
0
votes
0answers
18 views

Divide one external request into multiple internal ones and redirect to the specific handlers

I have soap service with 2 methods: SendRequestReques and GetRequestResponse In each method I receive wrapped request with internal request(8 types of internal request). This may look like: public ...
0
votes
1answer
12 views

gmapsfx connected two point with a dash

Hello I would like to connecte two point with a dash in java with gmaps. But the point are insert when the user click on the map. I have actually that code in my controller public class Controller ...
0
votes
0answers
13 views

kendo grid exporting only grouped items

I have kendo grid grouped on a property and aggregate functions for sum and count. I need export it to excel in a way when all parent are collapsed then it should only export parent rows.( excluding ...