I'm new to MVC, and am not following how you'd do paging and sorting on a grid. I'm used to using the asp.Net GridView control with an ObjectDataSource pointed at objects in our business layer - and in that case the ODS handles all of the paging & sorting using the methods that our ORM generates on the objects.
I've looked at using the...
Hi,
i have the application on environment in IIS 5.1 under "localhost/mvcapplication1"
The routing configuration is something like:
routes.MapRoute("mvc-default", "{controller}.mvc/{action}/{id}"
, new { controller = "Home", action = "Index", id = (string)null });
routes.MapRoute("Root", ""
, new { controller...
I'm trying to add a strongly-typed view to the sample app that's created when you create a new MVC project, but I'm not getting something. I added a "Warehouse.dbml" LINQ to SQL file in the Models folder, which contains one table. When I go to the Views folder and right-click and select Add | View, all I see under "Create a strongly-type...
Important: This question isn't actually really an ASP.NET question. Anyone who knows anything about URLS can answer it. I just happen to be using ASP.NET routing so included that detail.
In a nutshell my question is :
"What URL format should I design that i can give to external parties to get to a specific place on my site that will b...
I'm starting to learn ASP.Net MVC (the release candidate), and I'm having a little trouble. I might just be being picky, but I thought I'd ask.
I want to use the built-in (extended) ASP.Net Ajax methods to make a call to my controller, called "GetNames," that returns a JsonResult object. I've seen examples that use the $.getJSON() jQuer...
There are MANY overloads to UpdateModel in the ASP.NET MVC controller class.
Some of them are generic, and some aren't.
Obviously I want to use the generic version but I don't see what it actually does for me?
Isn't UpdateModel just a way to populate the properties using reflection.
So what's the difference between this:
Up...
Now that RC1 is out I need to decide once and for all whether to use MS Ajax libraries or just jQuery for AJAX requests. The application is a new application. Essentially the way I'll decide is whether or not i get any significant benefit from the Microsoft libraries that I wouldn't get from jQuery. I already HAVE jQuery loading and I am...
What are some projects which are examples of best pratices for ASP.NET MVC?
I'd like to see examples of fairly large projects.
I'm already looking at Kigg. Any others?
...
I'm trying to add a view (Asp.Net MVC RC) with the "add view" right click menu and I'm getting a file load exception.
Is this a problem of ASP.NET MVC RC or some kind of configuration problem?
Link to screenshot
...
Apparently some vendors (like Telerik) are working on versions of their controls that do not rely on postback behavior to work.
As in the latest release of Asp.net MVC RC also code behind files tend to fade away for views, what would the best way for vendors to encapsulate UI rendering (control tags, html helpers) and control behavior...
Everyone probably notices that most modern applications nowadays has a way for user to send crash/bug report either automatically or with user permission. Some examples are Mozilla Crash Reporter or most Microsoft applications.
I really like this feature since it allows me to collect the bugs report quickly with helpful information tha...
If given the route:
{FeedName}/{ItemPermalink}
ex: /Blog/Hello-World
If the item doesn't exist, I want to return a 404. What is the right way to do this in ASP.NET MVC?
...
I know that the MS Validation Application Block can be used with ASP.NET MVC but I'm not sure if I should. It looks like it hasn't been updated since 2007 - which is probably fine - I'm just being extra cautious before adopting something new into my app that i haven't used before.
Is there any reason not to - or what does it do for me t...
This MVC stuff is fun but every step along the way theres another little hurdle.
I'm just using Request.IsAjaxRequest for the first time today in conjunction with Microsoft's AJAX library. I am NOT yet using jQuery (I had to mention that since I just hyperlinked to a question about jQuery!).
Unfortunately I installed RC1 refresh BEFORE...
How come App_Code is not a choices in the Add ASP.NET Folder submenu in the VS solution explorer? I realize you can create one yourself manually by just renaming a New Folder, but what is the rational here? Is this not where you are supposed to put "utility" or "service layer" type classes?
On a MVC project side note. I do like the fact...
I would like to know some of the strategy/practice you deal with to handle unhandled exceptions in ASP.NET MVC.
In short I want to avoid the yellow screen whenever any error happens and show a error consistent error message to the visitor.
I mean do you write a controller for this which shows the appropriate error page or you go some o...
Upgraded from MVC Beta to MVC RC1.
Re-pointed all references in the project to point to the new assemblies
Rebooted
Everything compiles (and runs!)
But...
Opening a view (.aspx) in VS and she just dissapears!
Event Viewer gives: NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (6E075E00) (80131506)
Update 1:
Not ALL .a...
K... I'm doing something obviously wrong. I have a simple page with a file input control on and a submit button. I'm trying out the new "File" ActionResult that was released with the Mvc RC...
All, I want to happen is when the submit button is clicked the selected file is uploaded to the database. This all works fine...
Then, after the...
Hi,
I just created a ASP.NET MVC project in VS2008.
When I press F5 to debug the current view in my browser, it open the URL of the ASPX file :
http://localhost/Views/MyController/Index.aspx
instead of :
http://localhost/MyController
How to make it open the good URL ?
...
When I go to File > New Website there isn't a template for MVC. I googled "how to use MVC with vwd?" and these links came up
http://geekswithblogs.net/jwhitehorn/archive/2007/12/10/117569.aspx
http://jerusahat.wordpress.com/2007/12/12/aspnet-mvc-template-for-visual-web-developer-2008-express/
http://www.lazycoder.com/weblog/2007/12/10/...