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.
1
vote
0answers
16 views
authorize users based on a posted id
How can I authorize users based on a posted integer?
The Showproduct action shows the product itself. it should only be visible if logged in user owns the product.
This is how the Index looks like
...
0
votes
0answers
13 views
Nested MVC issue
I am using Nested MVCs in my application and its MVCs in a MVC composition.
I have a Task which has 3 parts.
Grid/Table : Displays collection data
Charts : Displays charts for the collection data
...
0
votes
0answers
20 views
CDN path is not working in js bundling in MVC
I'm working on ASP.NET MVC4. Client has requirement to load all javascripts and css from other domains like CDN with bundling. I've used System.Web.Optimization.
below is the code.
var bundle = ...
0
votes
2answers
30 views
MVC - Cannot find View after form is being send
i have the following structure in my (mvc) application
-Views
--Home
---Index.cshtml
--User
---Change.cshtml
I am using a Form like this
@using (Html.BeginForm("Change", "User", new { id = 2 }))
{
...
0
votes
0answers
5 views
SimpleMembership with stored procedures
Our DBA requires access to our database (MSSQL server) using stored procedures only (no direct access to tables).
Is it possible to use ASP.NET SimpleMembership with stored procedures? If not, is ...
0
votes
0answers
8 views
EXTJS4: Ext.msg Box ist not shown, throws an error
I simply want to show a MessageBox. But I get an error: TypeError: Ext.Msg is not a function
My code in the controller:
..... Ext.MessageBox.show({
title:'Delete',
...
-3
votes
2answers
26 views
Not Creating Database using Entity Framework code first Approach
I am just try to creating Database using entity Framework5.0 code first Approach In Mvc web Application when i execute code it execute fine but not creating database.if i send input values from views ...
0
votes
1answer
12 views
LINQ to SQL datacontext passing data to a grid in view
just trying to fathom out LINQ to SQL and datacontext class.
I am learning MVC coding and have a database with some test data.
I have created my datacontext and have been able to get this far in the ...
0
votes
1answer
15 views
.Net Web API throw exception/return response/return error response for 404/400 response?
I am developing some restful web service using .net web api.
I need to return 404 (NotFoundStatus) or 400 (BadRequest) to the client for some scenarios.
It seems like that there are many ways to do ...
1
vote
1answer
15 views
A transport-level error has occurred when receiving results from the server. (provider: Session Provider,error: 19 -Physical connection is not usable)
Here is my code
schools = datamodel.Schools.Where(s => s.DistrictId == userProfile.DistrictId).ToList();
discussion = new List<Discussion>();
List<Discussion> discussions = new ...
1
vote
2answers
22 views
Configure output cache per user mvc
I have a user specific dashboard. The dashboard will only change daily, I want to use MVC's OutputCache. Is there any way to configure the caching per user and to expire when the request is a new ...
-1
votes
0answers
10 views
Real time trainer on model view controller 4
I have some basic idea about model view controller but i want to learn model view controller4.
Can any one suggest me real time trainers in Bangalore on model view controller4.
0
votes
1answer
22 views
Spring MVC web application - enabling / disabling controller from property
I have a web application running in Tomcat and using Spring MVC to define controllers and mappings. I have the following class:
@Controller("api.test")
public class TestController {
...
0
votes
0answers
50 views
Why won't rails recognize my model?
Would love to hear someone's take on this. My rails app is connected to the development database and all my models work fine except for one. As far as the app is concerned, the "Message" model does ...
-1
votes
0answers
19 views
Which MVC Javascript library integrates easily with JqueryMobile?
I am writing an app that is similar to a mail client - i.e. messages come in via json, and they can be marked as viewed and deleted.
I am looking to use knockout, and would like to know if there are ...