mvc

ASP.Net MVC Routing URL QueryString

Is there a way to link to another View that displays search results without having to use a querystring? For example, I know that I can do the following: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Index(string txtOrderNumber) { return RedirectToAction("OrderLookup", new { controller = "Report", id = txtOrderNumber }); ...

Tutorials For Database-Driven Routing in Zend Framework?

I am working on a project that needs to use a database driven MVC scheme where the route to the controllers and views are controlled through a single database table. However, I haven't been able to find any tutorials that demonstrate this with a current version of the framework (they all appear to have been written several versions ago) ...

MVC ModelBind ListBox With Multple Selections

How do I submit the ListBox selections to the ModelBinder? <%=Html.Hidden("response.Index",index)%> <%=Html.ListBox("response[index].ChoiceID", new MultiSelectList(gc.choice,"ChoiceID","ChoiceText") )%> 'gc.choice' is a List I can get the fisrt selected value to the model, but not the second selection presumably bec...

Compile Views in ASP.NET MVC

I want an msbuild task to compile the views so I can see if there are compile time errors at well... compile time. Any ideas? ...

JSP-based Templating with Spring

I'm using Spring's MVC with JSP views. Every JSP page has similar structure - headers, content, footers, perhaps a sidebar, etc. Looking around for "best practices" people seem to "include" footers and headers, but that means that every JSP page includes these "include" statements, giving a fixed format. To my eye a better solution would...

Views and presenters directorys structure . .

For a winforms app, what do you think the ideal directory structure for views and presenters and your model are ...

Is there a Javascript MVC (micro-)framework?

Are there any client-side Javascript MVC (micro-)frameworks? I have a rather complicated HTML form and it would benefit from the MVC pattern. EDIT: I imagine a good solution would provide the following: Model and View update the Controller when values change (Observer pattern) Populate the model from the form data when the page load...

ASP.NET MVC - Html.DropDownList - Value not set via ViewData.Model

Have just started playing with ASP.NET MVC and have stumbled over the following situation. It feels a lot like a bug but if its not, an explanation would be appreciated :) The View contains pretty basic stuff <%=Html.DropDownList("MyList", ViewData["MyListItems"] as SelectList)%> <%=Html.TextBox("MyTextBox")%> When not using a model...

MVC pattern in .NET: Can View call Exceptions in Model?

I'm using the MVC pattern in a .NET winform app. There are places in the Controller that can cause an exception. Rather than catching the exception and dislpaying a messagebox, which is a View responsibility, I do nothing in the Controller and let the View wrap that area in a try/catch. So far, there isn't anything that needs to be do...

Helping a beginner for java web application

I have pretty big background of .net, and I've decided that i want to port one of my websites to Java. (now with the asp.net MVC craze, I've figured I'd better learn a more mature approach to MVC). i've downloaded eclipse (easyeclipse distro to be exact, and am ready and willing to develop my first website in java). i've programmed j2m...

Does anyone beside me just NOT get ASP.NET MVC?

I've been fiddling with ASP.NET MVC since the CTP, and I like a lot of things they did, but there are things I just don't get. For example, I downloaded beta1, and I'm putting together a little personal site/resume/blog with it. Here is a snippet from the ViewSinglePost view: <% // Display the "Next and Previous" links ...

Calling Application Methods from a wx Frame Class

I'm starting out with wxPython and have been working my way through every tutorial and example I can get my hands on. I've run into a slight problem, however, and it has to do with the wx.App versus the wx.Frame and which should contain specific methods. Just about every example I've seen don't go much beyond layouts/sizers and event h...

What is the best code location to define table relationship methods using Zend Framework models?

I'm creating a simple tag system that allows me to link a tag to almost everything in my application. In order to facilitate this, I created a table called "objects", referenced by my model "Object". I've got three models setup at the moment: Tag (with TagObject defined as a dependentTable) Object (with TagObject defined as a depended...

Problem With Database Design For MVC - 1 Table Per Model

My biggest hurdle with getting started with an MVC framework has to do with with the 1 model to 1 DB table concept. To me it's overly simplistic and unrealistic for anything beyond a simple app. Yet, MVC is in use everywhere, including this awesome StackOverflow site. As is typical, all of the code examples and tutorials i come across ar...

Code behind/beside Model (.cs-aspx.cs-aspx) VS MVC model, what is the difference really?

Hi guys, What are the basic differences between classic .cs-aspx.cs-aspx (code behind/beside) model and new MVC model? regards, 2 Steps Solutions guy. ...

Difference between Atg and Struts

What is the difference between Atg and Struts? ...

MVC in Java

Hi all, This is about a school assignment so I'm trying to do things by the book. I feel like I'm getting the grips of Java, but good programming practice, design patterns, etc. are all rather new to me. I've made my model and it works fine. It contains a student class which contains a number of fields with student information (obvious...

Is it safe to pass anonymous type to MVC ViewData.Model?

Is it ok to do the following: View(new {Object A, Object B}) Or should Object A and Object B be explicitly declared in a new type? Thanks. ...

Live Search using ASP.NET MVC and AJAX

I am looking to implement a live search in my MVC app similar to this site when you type in a question and results come up that are similar or like the search on http://www.krop.com/ I have the search code all working and results updated. I just need to know how to add the AJAX to the MVC framework (I know this site was built using it) ...

Make a call to a external mvc controller

Hi I want to know if its possible and how to do the following , i have a basic MVC application (ASP.Net) that i have modified to work for me. Now the application already handles authentication perfectly fine but i need to use this authentication in another app. Without creating a webservice is it possible for me to make calls to the app...