Questions tagged [model-view-controller]
Model–View–Controller (MVC) is an architectural pattern, introduced in mid 1970-s in PARC into how to compose software interfacing also with user-interactions. For Microsoft ASP.NET MVC, please use [asp.net-mvc] or [asp.net-core-mvc] tag instead. For Spring MVC, please use [spring-mvc] tag instead.
model-view-controller
33,620
questions
0
votes
0
answers
35
views
i want text of label when it in datalist
in .net , i have a problem . i want the text of label in datalist and i cant use id because its in datalist and its id is not available in c# or js .i don't can use for to find lable in datalist my ...
0
votes
0
answers
16
views
Depedency Injection with Autofac and Automapper
I have project where I implement Autofac and Automapper. There is no any problem when I added Automapper, but when I want to add mine implementation of interface I came across error with Automapper. ...
-1
votes
0
answers
43
views
How to convert the html view into SVG tag
public class Template
{
public int TemplateId { get; set; }
public string? Name { get; set; }
public int BasePrice { get; set; }
public int BorderWidth { get; set;...
0
votes
2
answers
42
views
Id not binding in controller
Im doing a dontnet website and am having issues with a method in my controller. This is the method in my user controller to allow users to view all their timecards. I tried logging to the terminal and ...
0
votes
0
answers
56
views
What is wrong with my strategy design MVC code? [closed]
I am seeking the opinion of very experienced coders on what improvements are needed for this code to pass. I am unsure why it failed and would like to expand my knowledge by getting expert feedback.
I ...
1
vote
1
answer
92
views
How to set view context in Rails?
I’m building a gem that intercepts Rails’ default render behavior. Instead of rendering a view, it looks for a helper method that corresponds to the current controller’s action name; it then uses the ...
-1
votes
0
answers
15
views
setting up an currency conversion and it wont convert the cost
what i'm trying to do is pull in the api stuff from exchange api through the object in the one calculate function
with the swagger the actual endpoint works, it's just within the calculate function it ...
0
votes
1
answer
30
views
Redirect doesn't happen in Spring Exception Handler
in my GlobalExceptionHandler class I've implemented method responsible for catching exceptions related to expired or missing cookie. After the Exception is caught, user should be redirected back to ...
0
votes
2
answers
27
views
How to pass data from controller to model in laravel 10
I have been preparing one application in Laravel 10 and in my app I am not connecting with DB as it is just PHP code and based on that need to create CSV file. I have prepared my code in controller ...
0
votes
1
answer
38
views
dropdown MVC don't keep focus for selected option
I have asp net core mvc application. After clicking filter controller recives propper data, but drop down always shows All option:
@{
ViewData["Title"] = "Index";
IsOpenFilterState ...
0
votes
0
answers
14
views
Ideal use of controller and service layer
I have a question between the controller and the service, so I leave a question.
Below is an example.
There is an API that creates a company.
The process of creating a company is
Check if the company ...
-3
votes
0
answers
70
views
How to properly design a program with multiple menus using MVC [closed]
I am creating a program in which I have a MainMenu class which represents the main menu of the program. The main menu will have several different options to choose from through buttons, one of which ...
0
votes
1
answer
63
views
How do I make sure that I only load flights on search and not initial page load
Rails baby here! trying to work it out with Rails 7. I have a small toy app here that tries to search for flights then have users book a flight. I have managed to string together the app to a point of ...
0
votes
0
answers
16
views
how to automatically load a custom view in a plugin in cakephp?
Here I developed a nano system to publish thoughts in a diary, very simple, but functional for the need. The content is in a Json structure and there would be a need to change the aesthetics of the ...
0
votes
0
answers
12
views
I am trying to add a new event i to the existing events in a date or new events to a date using n Jquery Fullcalendar control
I am trying to add a new event to the jquery calendar control. I can see existing event in each date but I cannot add a new event . I am looking for a help to add new event to the calendar control. ...