Questions tagged [asp.net-mvc]
The ASP.NET MVC Framework is an open source web application framework and tooling that implements a version of the model-view-controller (MVC) pattern tailored towards web applications and built upon an ASP.NET technology foundation.
asp.net-mvc
200,668 questions
0
votes
1
answer
1k
views
Entity diagrams in ASP.NET MVC [closed]
What's the best way/tool to display nice diagrams with entity relationships in ASP MVC views?
i.e. servers and and applications, or servers with other servers.
Are there any third party tools out ...
15
votes
6
answers
5k
views
How do I get rid of Home in ASP.Net MVC?
I know this site is written using ASP.Net MVC and I do not see "/Home" in the url. This proves to me that it can be done. What special route and do I need?
4
votes
2
answers
2k
views
Can I generate ASP.NET MVC routes from a Sitemap?
I'm thinking of learning the ASP.NET MVC framework for an upcoming project. Can I use the advanced routing to create long URLs based on the sitemap hierarchy?
...
5
votes
4
answers
778
views
Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC?
ASP.NET MVC has been discussed on this forum a few times. I'm about to do a large migration of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice ...
3
votes
2
answers
3k
views
user controls and asp.net mvc
Here is one trivial question, that I am not sure how to handle.
I need to display list of categories on every page, and to be able to choose items from a specific category to be displayed. I use asp....
13
votes
4
answers
22k
views
ASP.Net MVC route mapping
I'm new to MVC (and ASP.Net routing). I'm trying to map *.aspx to a controller called PageController.
...
115
votes
5
answers
45k
views
RSS Feeds in ASP.NET MVC
How would you reccommend handling RSS Feeds in ASP.NET MVC? Using a third party library? Using the RSS stuff in the BCL? Just making an RSS view that renders the XML? Or something completely ...
6
votes
2
answers
363
views
Does the OutputCacheFilter in the Microsoft MVC Preview 4 actually save on action invocations?
We deployed a live, fresh, swanky site using preview 3 including rigorous stress testing.
Page Output caching was our saviour and afforded us the ability to meet our performance contractual ...
11
votes
6
answers
6k
views
Validating posted form data in the ASP.NET MVC framework
I've been playing around with the ASP.NET MVC Framework and the one thing that's really confusing me is how I'm meant to do server side validation of posted form data. I presume I don't post back to ...
2
votes
5
answers
4k
views
Best mock framework that can do both WebForms and MVC?
I'm getting into more of a TDD workflow, and have a mix of MVC and asp.net Web Forms apps.
MOQ is recommended for MVC.
I've used Rhino for Web Forms.
Does anyone have a best practice for having 1 ...
12
votes
3
answers
4k
views
Use the routing engine for form submissions in ASP.NET MVC Preview 4
I'm using ASP.NET MVC Preview 4 and would like to know how to use the routing engine for form submissions.
For example, I have a route like this:
...
6
votes
2
answers
3k
views
How do you get a custom id to render using HtmlHelper in MVC
Using preview 4 of ASP.NET MVC
Code like:
<%= Html.CheckBox( "myCheckBox", "Click Here", "True", false ) %>
only outputs:
...
4
votes
1
answer
3k
views
MVC Preview 4 - No route in the route table matches the supplied values
I have a route that I am calling through a RedirectToRoute like this:
return this.RedirectToRoute("Super-SuperRoute", new { year = selectedYear });
I have also ...
22
votes
7
answers
5k
views
Is there a way to include a fragment identifier when using Asp.Net MVC ActionLink, RedirectToAction, etc.?
I want some links to include a fragment identifier. Like some of the URLs on this site:
Debugging: IE6 + SSL + AJAX + post form = 404 error#5626
Is there a way to do this with any of the built-in ...
4
votes
2
answers
479
views
In ASP.NET MVC I encounter an incorrect type error when rendering a user control with the correct typed object
I encounter an error of the form: "The model item passed into the dictionary is of type FooViewData but this dictionary requires a model item of type bar" even though I am passing in an object of the ...
69
votes
6
answers
43k
views
Multiple languages in an ASP.NET MVC application? [closed]
What is the best way to support multiple languages for the interface in an ASP.NET MVC application? I've seen people use resource files for other applications. Is this still the best way?
31
votes
4
answers
6k
views
Developing for ASP.NET-MVC without Visual Studio
Instead of writing my ASP.NET C# applications in Visual Studio, I used my favorite text editor UltraEdit32.
Is there any way I can implement MVC without the use of VS?
123
votes
6
answers
94k
views
How to RedirectToAction in ASP.NET MVC without losing request data
Using ASP.NET MVC there are situations (such as form submission) that may require a RedirectToAction.
One such situation is when you encounter validation errors ...