Hi
I am continuing to enslave the MVC 2 thing: Areas...
Now I have two controllers with the same name (HomeController) in the main Controllers folder and in one of the Areas. Both have different namespaces so... theoretically should coexists, but they don't.
The error is:
The controller name 'Home' is ambiguous between the followin...
I am submitting an ajax form and returning a partialresult to the view. However, when validation fails I only want to tell the user why it failed with a js method without reloading the model for the view. How do I specify what to return in the controller?
...
I am developing an application for which I want to expose the basic CRUD operations on most of the database entities through REST web services. A colleague has demonstrated some impressive code generation using Grails.
I would like to be able to generate my REST services as well, but using ASP.NET MVC instead of Grails. I planning on u...
Url.Action does not work in the project
what assemblies do i need to include?
using System.Web.MVC does not work either
...
I'm in need of a RoleProvider with the following functionality:
Dynamic Assignment of Roles to Tasks
Authentication / Authorizaiton of IPrincipals based on the dynamically allocated tasks in the system they have privilege to access
Reporting showing who is currently logged in, and other common usage statistics.
I'm pretty sure I'm goin...
I've just run across an annoying "feature" of the Client-Side Validation that I'm wondering if someone with better js understanding than myself might be able to solve.
YSlow recommends that javascript be loaded at the end of the page. All good. Add the references to the required .js files at the bottom of the Site.Master and all is good...
I am using health monitoring on a site and it seems to recompile every minute or so or even more often. I do not always lose session state though.
Here is my Health Monitoring code from my web.config
<healthMonitoring enabled="true">
<eventMappings>
<clear/>
<add name="All Errors" type="System.Web.Management.WebBaseErrorEv...
I'm building a new web app that has a requirement to generate an internal short URL to be used in the future for users to easily get back to a specific page which has a very long URL. My initial thoughts are to store a number in a database and output it in a HEXADECIMAL value to keep it shorter than an integer. TinyURL.com seems to use s...
I have a web application using MVC 2 Preview 2 and after all routes are registered, I need to wrap each route in a decorator further down the chain. The problem is, doing so breaks routing. What ends up happening is the GetVirtualPath method will match falsely for other areas in the application (I'm using single-project areas). It doesn'...
One of the benefits of ASP.NET MVC I keep reading about is that it's easier (than with traditional ASP.NET) to create content-specific and/or device-specific views, e.g. straight HTML or JSON or XML or iPhone-targed HTML, etc. I do see how the more structured separation of view logic from controller logic facilitates this.
Let's assu...
We are using Asp.Net 2.0 and planning to move to TDD so that middle tier can be developed and tested while others in the team take care of UI and DataBase area.
Can anyone kindly let me know the pre-requisites for TDD and which one is the best tool for .net?
Thanks...
[UPDATE]
Thanks everyone for your answers and help.
I was readin...
i have
A bunch of fabric patterns (simple jpg files)
An image for every letter of the alphabet(blank white background)
I essentially want to have a page similar to this:
http://www.craftcuts.com/hand-painted-wooden-letters-single-patterns.html
but instead of having it as a static page, i would like a user to be able to:
Type in a ...
Hi,
A company is creating a web site for the organization I work for. Since the web site is still being developed, some modules are not yet there. For instance, in order to print data obtained from a query, one needs first to export it to Excel or Access. Then, from Excel or Access, it is important to do some adjustments (adjust column...
The title says it all. I have authentication logic that uses cookies. The model attributes are initialized from cookies, but this is done only when specific controller actions are called.
Should I access my cookies directly from controller logic or make the models even fatter and implement cookies save/load in models?
thanks a lot in adv...
There are quite a few blog articles describing what to do in order to get on ASP.NET MVC to run on Windows Azure. The procedure does not look too complicated, but at the same time, those articles all mention that ASP.NET MVC is not officially supported on Windows Azure. On the otherh hand, the articles I have found are quite old already ...
hi Guys
How can one do this?
I would like to save the master pages template in the database and then based on a query string pull the correct template.
Is this possible?
...
i have an asp.net mvc project with xval and data annotations and i need to switch to nhibernate validation
with data annotations i had an DataAnnotationsValidationRunner and i was doing something like this
var errors = DataAnnotationsValidationRunner.GetErrors(this).ToList();
if(errors.Any())
throw new Ru...
I am working with ASP.NET MVC application.
I have One master page having one contentplaceholder.
I have one view placed in the contentplaceholder of master page.
i have few textBoxes say "name", "age" , "email" in it.
I also have submit button in my master page.
when i click submit button , postback event will be called in the control...
I am currently using asp.NET MVC to build a Content Management System parts of a website and have the odious job of recreating all of my Views as Partial Views as it appears to be breaking the way the site map works.
For example, my FAQAdminController has the Views: Index, AddFAQ, EditFAQ, ConfirmDeleteFAQ and these have to become parti...
Somehow I had the impression that ASP.Net differentiates URLs based on the number of arguments too. But it doesn't seem to work in my project.
Consider the following function prototypes
public PartialViewResult GetMorePosts(string param1, string param2, string param3, int param4, int param5)
AND
public PartialViewResult GetMorePosts(st...