ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.

learn more… | top users | synonyms

0
votes
1answer
9 views

Using simplemembership within ninject repository - via API & standard controller

I am building a fairly small sized mvc4 application. I want to use the simple membership provided as in time I can it being useful for the social stuff. I want to be able to take advantage of the ...
0
votes
1answer
12 views

mvc4 - db.SaveChanges() - decimal value out of range

I'm building an MVC4 application that requires me to generate a 21 digit key when 'creating' a new record. Here is my context where i'm defining the db columns: public class cust { ...
0
votes
0answers
6 views

robots.txt file for different domains of same site

I have an asp.net mvc 4 web application that can be accessed from multiple different domains. The site is fully localized to the domain etc. I want to include a robots.txt file but I am aware that I ...
0
votes
0answers
5 views

kill forms authentication session after inactivity

I have an asp.net mvc 4 application that uses forms authentication. I want to set a time limit of 30 mins of the site where if a logged in person is inactive for this period of time (not the time ...
0
votes
1answer
18 views

When bind view model attribute to a input textbox, it crashes in IE

This is the error message when IE8 crashes. Unhandled exception at 0x05A99E34 (mshtml.dll) in iexplore.exe: 0xC0000005: Access violation reading location 0x0000003C. the following works. <td ...
0
votes
0answers
15 views

How to update a div in a View, by class, from another View?

In my main view, I have an empty placeholder div that I fill with an inner view on a user click. I want to be able to have several copies of the same inner view in my main view, with different data ...
0
votes
1answer
19 views

How to disable form authentication cookie in two mvc 4 web application

I have two asp.net mvc 4 application with form authentication running on Windows 7 IIS, but ones is in the root domain and the other is in a specific port of the same domain. root App: ...
0
votes
1answer
20 views

how to add css file to mvc4

i have a css file that I want to put in my layout. in the web.config file I wrote: <location path="App_themes/default.css"> <system.web> <authorization> ...
1
vote
0answers
19 views

How to (1) display a partial view on click, (2) update that view, (3) have multiple copies of the view on the same page?

I have a table built from a model, and on clicking a button in a row, I want to expand that row to display a partial view, which has its own model. The user can interact with the partial view and ...
0
votes
1answer
27 views

Layout CSS for MVC4 Web

I got a messed web site as below. My _Layout.cshtml code is: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>@ViewBag.Title</title> ...
1
vote
3answers
39 views

Add one day to a model's data

I am new to Razor and I want to know how to add one day to model's date object. I need to put a "next day" link Here is the view code <a href="@Html.DisplayNameFor(model => ...
0
votes
3answers
49 views

pass two models to view [duplicate]

I am new to mvc and try to learn it by doing a small project with it. I have a page which is supposed to display that specific date's currencies and weather. so I should pass currencies model and ...
-1
votes
0answers
27 views

The best way to get data from webservices [closed]

Hi I am using MVC and have one api that call web services. I know how to add references. I just need to know the best way to write the class of that. First I whana get these variables from server. ...
-1
votes
3answers
60 views

How to call a method with List type

The goal I would like to call a method whose type is List. I'm working with C#.NET + MVC 4. The problem I am a beginner and I do not understand the following error: Error 1 Using the generic ...
0
votes
0answers
36 views

ViewBag not working as it should in the partial views

I cannot use a ViewBag value in my partial view from my controller class. This is my code: Controller: ViewBag.Costo = "200"; return PartialView(); } PartialView: <h4>El costo de la entidad ...

1 2 3 4 5 692
15 30 50 per page