Model–View–Controller (MVC) is an architectural pattern used in software engineering. Use the more specific [asp.net-mvc] tag (ASP.NET MVC) instead, if applicable.
0
votes
0answers
4 views
MVC Code Structure - calling model methods
I have a basic swing application that follows the MVC structure and a question that relates to the methods in the model and how I call them.
Before I ask my question I will provide some background ...
0
votes
0answers
9 views
Laravel 4 Resource Controller NotFoundHttpException
I'm using a resource controller to handle accounts in my website.
This is my route :
Route::group(['before' => 'auth'], function() {
Route::resource('/account', 'AccountController');
});
And ...
0
votes
0answers
5 views
Mvc Html Helper for NVD3 charts
I want to create a MVC html helper for NVD3.js charts.
javaScript code is as below. I want to render this code from server side as below
@Html.PiechartFor()
any suggestions?
nv.addGraph(function ...
0
votes
2answers
18 views
Declare Decimals in MVC 4 Controller Parameters
This is the error that I am getting right now:
The argument types 'Edm.String' and 'Edm.Decimal' are incompatible for this operation. Near equals expression, line 1, column 156.
I know that this ...
0
votes
0answers
8 views
Unit testing method converting MVC view to string using view.render method
I have written method that converts MVC view to string and test method to check if it returns string.
Of course it works with Web but when I run test in NUnit it throws a NullReferenceException in ...
0
votes
0answers
8 views
ASP.NET MVC use model that is a WCF data contract, but with changes
I am creating an ASP.NET MVC 4 application that relays on a WCF service for its BL.
The WCF reference file that was created holds all the data contracts with the service.
I would like to expose the ...
0
votes
0answers
6 views
New Onion ASP.NET MVC App
We will build a new ASP.NET MVC 4.0 Business Application and decide to use Onion Architecture;
Our new App will support multiple clients such as Web Browser, Android Devices and Outlook Clients;
Our ...
0
votes
1answer
17 views
Client side MVC instead of server side MVC
Instead of using server side MVC like Ruby, Python, PHP to build very complex web app, why should not we split our web app into multiple modules, and build each with client side MVC like backboneJS, ...
0
votes
0answers
43 views
How to save image locally in web browser
I'm trying to develop a website for data entry. For the purpose of illustration, let the page contains a text box and a file uploader. User browsers afile and enter data in text box. In the mean time, ...
0
votes
1answer
25 views
Creating Enums Dynamically
I am working on MVC project and i have One Enums Class in my model folder which is as follows :
public class Enums
{
public enum eSiteName
{
[Description("Site 1")]
...
0
votes
2answers
32 views
Object reference error adding a new select list item
I'm having a problem with the List<SelectListItem>. Whenever the code hits the foreach it says:
object reference not set to an instance of an object.
Am I missing something or can anyone ...
-2
votes
0answers
12 views
I cannot find good Poll generator MVC 4
Where I can find free opensource poll/survey generator in MVC 4 for my site what would be easy to implement into my project? I find survey.codeplex.com way to complex for me.
thanks for any answer
0
votes
0answers
15 views
Extjs How to send data from form to MVC3 controller?
OK so I have problem with sending data from my form to controller action
Its looks like this
My controller Action
[HttpPost]
public ActionResult Create(ProductsType products)
{
try
{
...
-5
votes
2answers
45 views
How to remove negative sign from LINQ output [closed]
i have following linq used in my application
var FinalSubExpired = subExpired.Where(e => (DateTime.Now - Convert.ToDateTime(e.AreasOfLawTillDate)).TotalDays <= 30 ).ToList();
which returns ...
0
votes
0answers
31 views
MVC4 & SQL 2012 Application Issue (Model Context)
I have tried to create a simple app, 3 tables in 1 database created using SQL 2012. In VS2012, MVC4, created a model based off this database and then generated a controller for each table to create ...