mvc

In ASP.NET MVC, how to receive the parameter dictionary in an action?

Most of the actions in my controller have statically-defined parameter lists and so they correspond nicely with the standard tutorial examples: public ActionResult SomeAction(string id, string arg1, string arg2) { // use arg1, arg2... } But I have one troublesome case where the view puts together a form dynamically, so the set of ...

How would the mvc work in the following case -C#

K so last year I made a family tree program in java as a group project and we used MVC but I really forget how it works, and the notes aren't online anymore. To make things worse, since our project wasn't huge the prof said to combine the Model and Controller. So now that I'm trying to make a sweet project to add to my employability port...

How to cancel an ASP.NET MVC action

This should be simple, but the answer is eluding me. If I've got a Save action in my controller, and the save fails, how do I cancel the action without disturbing what the user entered? For example, Index is strongly-typed of "MyTable": Function Index() As ActionResult ViewData("message") = "Hello" Return View(New MyTable) End F...

Why did Microsoft choose MVC for ASP.NET?

In addition to being a 30 year pattern, MVC was never meant for current applications. MVP was its successor and designed to handle event based apps coming out in the 90s. Passive View and Supervising Controller seem to have risen to the top. For those two, it almost isn't necessary to talk about MVC/MVP. Specifically, is the controll...

IBOutlet not getting set in Cocoa MVC project

I might not be using IBOutlet correctly, or some other subtlety with how NIB files work is causing me trouble - any help would be much appreciated (feel free to propose an alternate way to accomplish what I want). I have a View object and a Controller object. Both are in the NIB. The Controller's init is also called when the NIB is load...

asp.net mvc security question

How can I disallow anonymous access to my ASP.NET mvc controllers? Specifically, I want to require authenticated access to all controllers but allow anonymous access to resource type files such as .css and .js files. Don't plan on using membership services as I am using Microsoft Geneva. thanks! ...

JQuery Grid or Loop through partial views?

Hello Has anyone been able to customize jQGrid? While I'd like something easy I can pluing and use that provides paging, I find that the layout is "tight" ( not in the cool way ) the gird is too excel-like. I'd much prefer one with spaced out grid rows and ability to use icons. But before I write the grid off and start hand rolling a...

ASP.NET MVC ,What is the Models Folder for?

Another repository of App_Code? Inside the NerdDinner sample, it contains some share interface, function , class with property etc. Not much different with App_Code. ...

Usage of a helper within zend partialloop

hello, I am using the Zend Framework library / Framework At some point I need to give an array of texts ( with a given objectKey ) to the partialloop helper. Now in the partialLoop view I would like to use Zend Translate. Now I understand that Zend Translate isn't accessibly true the objectKey, but is there a way to use Zend Translat...

how to show contents which include html tag?

I am using FckEditor in Create.aspx page in asp.net mvc application. Since I need to show rich text in web pages, I used ValidateInput(false) attribute top of action method in controller class. And I used Html.Encode(Model.Message) in Details.aspx to protect user's attack. But, I had result what I did not want as following : <p> H...

ASP.NET MVC Equivalent to Response.Redirect Click Event

I have an html form in a view that needs to be reset from time to time. Problem is, fields enable/disable based on input. Therefore, the only way to truly reset the form is to reload the view (I would prefer that the entire page is reloaded). Due to several scenarios, simply refreshing does not work. I need the equivalent to Response...

jQuery not working on Windows Server 2008, IIS 7

I am deploying an ASP.NET MVC to Windows Server 2008. I have installed ASP.NET MVC 1, but jQuery is not working on any of the pages. Anyone had this problem? ...

Nerd Dinners Controllers Question

On this page: http://nerddinnerbook.s3.amazonaws.com/Part4.htm After the controller is added, I can browse to http://localhost:xxxx/dinners and it works as expected. My question is how does it know to use "Dinners"? Where is "Dinners" located? My controller is named DinnersController so how did the word Dinners become meaningful. I...

What's the best way to store app settings? (MVC)

Hi I'm developing a swing app which suits the MVC pattern and I'm wondering about the best place to store settings such as width/height, xml files location... Should those settings be avaiable also only through the Model? Should I use a global static class? A singleton? Thanks in advance ...

MVP vs MVC

Duplicate: What are MVP and MVC and what is the difference? In a nutshell, what's the diff? When would I choose one over the other? ...

MVC: Set value in autocomplete on Edit

Hi, in our MVC application we use jQuery autocomplete control on several pages. All works fine on Create but I can't make it work on Edit. Effectively, I don't know how to make the autocomplete controls preload the data from model and still behave as an autocomplete in case the user wants to change the value. Also how can I make sure...

Deployment asp.net MVC

Hi, I have an MVC application which is my marketing website, and two other regular asp.net applications which I'd like to put in subdirectories. Can I have an asp.net application (i.e. the mvc marketing) with sub-applications? Thanks, Rob ...

MVC in a Google App Engine Java world

I'm coming to Java from C# & ASP.NET MVC, I'd love to find an equivalent in the Java world that I could use on the Google App Engine. I've already started to have a play with FreeMarker and even made the first steps towards writing a very simple framework. Ideally I wouldn't have to do all the hard work though, someone must have done thi...

HTML.Listbox in MVC dosent show up in FormsCollection...

Hi! I have a ASP.NET MVC application where I have a HTML.Listbox where the user can add items to it, in the webpage. It looks like this. <p> <label for="groups">Grupper:</label> <%= Html.ListBox("RoleGroups", (Model != null ? new SelectList(Model.RoleGroups) : new SelectList(new List<BL.Portal.Domain.Model.RoleGroup>(){})))%> <%...

ASP.NET MVC get dropdown list value

In ASP.NET MVC, how can I get a selected dropdown list value from a posted form? ...