I have installed MonoDevelop 2.2 Beta 2 on Windows XP and seem to be missing the option which allows me to create an ASP.NET MVC project.
This was missing in MonoDevelop 2.1 Beta 1 but the release notes for Beta 2 state that it was included in the installer for Beta 2.
Any thoughts on why I still can't see it? Have I missed a step or ...
I have been testing Umbraco because it's the most popular open source CMS in .NET out there and I was curious. It surprised me that is not possible to run it in a virtual directory.
After working some time with ASP.NET and ASP.NET MVC I noticed that sometimes allowing your application to run in a virtual directory instead as well as in ...
If I don't want to expose the internal state of my Domain Objects, but I need to display them, I can think of three approaches.
Which of these is the most "correct" (if any?).
The "DTO/ViewModel approach".
This seems to be a popular approach
in the ASP.NET MVC world (especially
with the use of AutoMapper).
The
"decorator approach". I...
I look for some exaple how use the stora procedurs in MVC with LINKQ.
...
I have a URL in string format that I want to parse to get the relevent Route Values. I could parse the string manually, but I want to use my routing configuration so I am not tied to the particular string format (so I can change the URL format easily).
I am trying to use the GetRouteData method on the RouteCollection, but this takes a H...
Hi I'm trying to append 1 list to another. I've done it using AddRange() before but it doesn't seem to be working here... Here's the code:
IList<E> resultCollection = ((IRepository<E, C>)this).SelectAll(columnName, maxId - startId + 1, startId);
IList<E> resultCollection2 = ((IRepository<E, C>)this).SelectAll(columnName,...
Hi!
I'm trying to use ReportViewer (it must be ReportViewer!) with Asp.NET MVC. Is it possible?
Thanks!!!
...
Can we use it like this...
<% using (Html.BeginForm("PerformSearch", "ClientSearch", FormMethod.Post, new { defaultbutton = "btnSearch" })) %>
Basically I want the enter key to raise the onClick event of btnSearch. This button is just a button, not a submit button.
...
Our server side validation (via data annotations) is working great and posts the errors in our ValidationSummary how we like it. The client side validation also works, however the errors display to the right of the control and the validation summary never displays. Is there an easy way to make the client validation display to look like...
We're trying to be type-safe in our views and use the new ExpressionInputExtenssion HtmlHelpers, but we are seeing some inconsistent results. We have a view that looks like this:
ViewData.Model.FooID = <%= ViewData.Model.FooID %><
Model.FooID = <%= Model.FooID %>
<%= Html.HiddenFor(x=>x.FooID) %>
But what we see in the rendere...
A bit of background:
I'm building an MVC app to store golf course data and have created a Create view
page for the courses. This contains a partial view of a scorecard that I am going to use for other things such as recording results etc. I've currently built the scorecard so it fires off jquery triggers when it is edited. From which t...
I am finishing up a rewrite of a project management tool using ASP.NET MVC, LINQ2QL and the Repository design pattern. Pretty much following the NerdDinner example.
I have a class called Task that has a child list of TaskStages. For sake of this example the Stages are Ready, Under Development and Completed. I keep track of the current...
I'm working with ASP.Net MVC as well as DynamicData and I need to add role-based security.
Should I implement this via:
IHttpHandler with custom actions that check if the user is authorized?
Or should I be using a RoleProvider?
Or perhaps some combination of the two?
If the RoleProvider is a viable option, when would I ever need t...
Is there an easy way to determine which properties of my model have changed when using UpdateModel? I am trying to record what edits a customer does to their record, say they login and change their phone number,I want to keep a record of that activity.
I know I could do it manually and just compare property by property but I was wonder...
Hi
I am not really sure what to do in this situation. I have some jquery ui 1.7 tabs that are ajax enabled. Now when a tab is clicked it goes to my asp.net mvc controller action method. That then does whatever is needed and return a partial view.
Now I don't know why but sometimes my server hangs but then again I am guessing all server...
My site is under the bombardment of some image requests for images that don't exist on my server. Seem to be porn related images that got nothing to do with my site.
Pattern is like this;
/loc208/th_e82_shower028.jpg
/loc171/th_251_shower014.jpg
/loc295/th_21e_shower052.jpg
so they all look under /loc* folder
Is there a way I write...
I have been trying to avoid using Response.Write(...) directly in my MVC Views. The reason being that I just need to type the string literals and the view engine knows what to do. However, in certain circumstances I seem to be creating way too many pointy brackets (<% %>). So, which of these 2 code snippets do you find more acceptable?
...
I am increasingly finding situations where my ASP.NET MVC view requires some logic to perform layout. These routines have no place being in either my model or my controller. I have 3 options:
Write lots of <% %> inline in the view.
Write less <% %> in a number of partial views.
Write an HtmlHelper Extension method.
It is the last opt...
Hi All,
I'm using ASP.NET MVC and Entity Framework. I'm going to pass a complex entity to the clent side and alow the user to modify it, and post it back to the controller. But I don't know how to do that and whether the client side entity will lost relationship tracking of EF as it is detached from object context.
Any ideas? Thanks in...
I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I've done to make that happen is that I added a namespaces node to the WebForms web.config:
<pages styleSheetTheme="Default">
...
<namespaces>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespac...