We configured IIS 5 by mappping * to asp.net handler so that ASP.NET MVC works. After configuring this, directory browsing is not working.
Also uploadify jquery plugin is not working. Showing IO error 2038.
Can someone please suggest us how to enable directory browsig with ASP.NET MVC configurations on IIS 5?
...
I have an edit form, that when posted, if successful should move on to the next record
Here is a snippet of the code in the controller:
if (issues.Count == 0)
{
Service.Save(item);
Service.SaveChanges();
return Edit(NextId, listingName);
}
else
{
ModelState.AddRuleViolations(issues);
...
I am going to store a comma delimited list of courseIDs available with a product, there could be any number of them and many times only ONE. I am using MVC and I want to be able to extract out the list into a collection of some sort prior to it being in the model. Basically I don't want to parse a list into an array inside of the view or...
We're using ASP.NET MVC together with NHibernate and we'd like to create several Dropdown Lists using Values (custom Class) from the Database. This actually works, but how do I handle the "Empty" value; I mean, the "unselected" DropdownValue? Something like "-- Select --" on the top of the List... Does anyone have experience with this co...
Can anyone suggest where can I find good starter videos for ASP.NET MVC (other than ASP.NET site)?
Any noteworthy resources and articles will also be helpful.
...
Preamble: this is a bit of a philosophical question. I'm looking more for the "right" way to do this rather than "a" way to do this.
Let's imagine I have some products, and an ASP.NET MVC application performing CRUD on those products:-
mysite.example/products/1
mysite.example/products/1/edit
I'm using the repository pattern, so it do...
I think I have a problem in understanding the proper way of using MVC. The problem I'm having is that I have Users and Admin Users, both are allowed to create a campaign but they are using different master pages etc etc.
My solution so far is...
Controllers
AdminUserController.cs
UserController.cs
Views
AdminUser
C...
Suppose I have the following actions:
public ActionResult DoSomething()
{
// Some business logic
return RedirectToAction("AnotherAction", RouteData.Values);
}
public ActionResult AnotherAction(string name, int age)
{
...
}
And the following form:
<form method="post" action="DoSomething">
<input name="name" type="text"...
In general, is it possible to have two different buttons within the same form that post to different controller actions in ASP.NET MVC?
I am essentially trying to have two input (type="button") tags in the same form, but I want them to perform different controller actions. I would like to do this in a few cases because I think it provi...
Im getting really lost on how to use HttpContext.User. I read everywhere that its great for FormAutherication, but i just cant see how it works. If i do something like this:
ControllerContext.HttpContext.User = new GenericPrincipal(GetUser(username, password), roles);
What does ControllerContext.HttpContext.User contain? and how do i ...
I have an object with 2 ArrayList properties.
public class TestDTO
{
public ArrayList Test1 { get; set; }
public ArrayList Test2 { get; set; }
}
I am returning the the object as JSON in my JsonResult Action. The SUCCESS from my AJAX call looks like the following but it does not appear to be working. What do I need to do to a...
OK so here we go, one of my classes called Product is implemented like this:
namespace DomainModel.Entities
{
public class Product
{
public int ProductID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public decimal Price { get; set; }
}
}
I want to a...
Hello.
I've done a site using ASP.NET MVC, NHibernate and MySQL.
In my project, I have some repositories classes, each one with methods using codes like this:
using(ISession session = NHibernateHelper.OpenSession()) {
using(ITransaction transaction = session.BeginTransaction()) {
session.Save(cidade);
transaction.Commit();...
I am trying to update some object properties by calling UpdateModel(myObject, new[] { "stringprop1", "stringprop2", "intprop"}).
This is failing for an unknown reason. Several string properties are updating successfully. When I try to update an int property it fails. The new int value is being sent from an html select list on the view.
...
I just started working with dependency injection for the first time and I am using as Ninject 2.0 as my IoC container in an ASP.NET MVC 2 website and I'm hitting an activation error that I am not sure how to react to. I am sure it's simple so hopefully someone can point me in the right direction without too much thought.
I have a proper...
Setup:
Windows XP
.NET Framework 3.5 SP1
ASP .NET MVC Version 1
I've been trying to set up ELMAH by following the instructions at http://code.google.com/p/elmah/wiki/MVC but I just get the following error when press F5:
Description: An error occurred during the processing of a configuration file required to service this request. Pl...
Hey
Im looking to have a login system on my asp.net mvc website and at first i thought i would just go with the FormAuhtorication and use the Out of The Box Account Controller that is created with every mvc project. Then search around at google and found that many people make their own Controller to control the Auhtorication.
I like to...
I have a user model that requires the user to change their password every three months. I need to somehow check to see if the user is logged in (we allow anonymous browsers on certain sections of the site) and if their password is expired, force them to enter a new one before they can do anything else.
The brute-force way of doing this...
My ASP.NET MVC application is a small part of a bigger ColdFusion app that is going to be soon replaced completely. I'm passing some parameters from ColdFusion part through cookies and need to check for this information before I run every action. In case if the information is missing I need to redirect to the parent site. What is the bes...
Two part questions
I have a product aggregate that has;
Prices
PackagingOptions
ProductDescriptions
ProductImages
etc
I have modeled one product repository and did not create individual repositories for any of the child classes. All db operations are handled through product repository.
Am I understanding the DDD concept correctly so...