mvc

Dealing with XML in ASP.NET MVC

I have a block of XML in a database which is easy enough to pull out using ASP.NET MVC, however I would like to access and modify the XML in an way more consistent with class instances. Is there a way to get the MVC (or any other model) to generate a data access (or perhaps Entity) class set from the DB-stored XML? If the above is rathe...

dynamic views stored in xml

So, We are currently looking at creating a web app in MVC with mind to creating a win forms app at a later date. The two will be almost identical in layout and usage. With this in mind we are looking at creating our MVC views by dynamically creating the html controls from an xml file. Such as <Page> <ID>Site</ID> <Object> <I...

IVR application on Nortel MPS 500 not working with ASP.NET MVC

We have a web server running IIS 6.0 and ASP.NET MVC, that is serving plain xml. The IVR Browser is not accepting the xml being output by the web server. The Controller just returns a normal ActionResult, but changes the Content-Type to text/xml. The View is just a typical aspx page, but instead of html, we've put xml in there inste...

Get the route when unauthenticated/logout with mvc?

Hello I have this piece of code: public class Authenticate : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext) { if (!filterContext.HttpContext.User.Identity.IsAuthenticated) { filterContext.HttpContext.Response.Redirect("/"); } } } ...

ASP.Net MVC Get Area Name.

Hi, Given a Controller name, and a Action name - "AdminController", "Index" for example, is it possible for me to get back all the possible Areas. Does that make any sense to anyone? Cheer, ETFairfax. ...

Restful Authentication -- Relating User ID to Profile

Hey Guys, I'm new to Ruby on Rails...I've been playing around with developing a social networking type app....I just added Restful Authentication to my app successfully..Now I would like to create a model/controller where each User once logged in can create/edit their own profile. So I created the model and controller...the code in th...

Multiple text boxes used for filtering/searching in MVC C#

Hello, I am trying to create a form in MVC C# that will allow a user to input a Last Name, First Name, Department, Year and click a Search button that will bring back a list of employees based off the inputted search criteria. My problem is allowing multiple search textbox criteria into one search button. I am able to hardcode value...

Contollers and Views - MVC in Zend Framework

I am using MVC in PHP based Zend Framework. This is more of a design question. I have a controller that has a couple of actions. These actions are accessed via AJAX from the controller's view. The controller's actions, perform Business logic by accessing data from functions inside a model, and construct or echo HTML. This HTML is spit ba...

asp.net mvc file system cache

Is there a way to cache part of a page in asp.net mvc to the file system? basically i would like to cache a partial or everything within the master page. ...

Best way to filter a list-view in asp.net MVC

I have a list of data coming from the database and displaying in a table, that works exactly how I want. What I would like to do, is add a DropDownList to the page that "filters" the data in the table, based on the value of the selected item in the DropDonwList. For example, the DropDown has these values Assigned To Me Assigned To Ot...

Zend Framework Path Problems

All, I am just trying to view any page at all besides the “Welcome to Zend Framework” screen. I have downloaded the project from this tutorial: http://framework.zend.com/docs/quickstart/create-a-form (Zend Framework Quickstart) As far as I can tell, the paths are coming up correctly. I read this post: http://www.johnmee.com/2008/11/z...

change url address in MVC Framework

Hi I have a website that we migrated from ASP.NET to MVC Framework. The url With ASP.NET that used to be Ex: http://Website1/MasterData The URL now with MVC Fraemwork became http://Website1/Home/MasterData. Now as the users of the site have Bookmarked the old URL, Now we need to maintain the same url. I would appreciate if anyone ca...

Getting started with software design using MVC, OO, and Design patterns

NOTE: This question has been updated to provide more detail and insight than the previously. UPDATE: I just want to say thank you to everyone who responded. I'm still pretty much in the dark on what design pattern would work best for the Widget. Perhaps one of the Factory or Builder patterns? I am just getting started on a new proje...

Pure AS 3 project structure?

I am kinda new to AS 3 development.. and the thing is I am always getting into problems how to structure the different views of an application state? Do you use a MVC framework for this? I have looked at some puremvc, robotlegs but our flash projects are usually relativly small so I wonder if it is not a overkill :) ...

How to check an Ajax request in cakephp?

How to check an Ajax request in cakephp? ...

how will you do this in MVC custom route?

www.yoursite.com/image/http://images.google.com.ph/images/nav_logo7.png What I need to know here is the Controller Action, and the Global.asax routes ...

MVC route map problem

I have a page where I am displaying some urls in HTML ActionLink here is the code... Sl.No. Office Name the code is generating link like http://localhost:3819/Description/Description/Clerical_Glendale I want to make this link look like ... http: // l...

Testing an MVC Controller action with an ActionFilterAttribute

A well-known benefit of MVC is its suitablility for Test Driven Development (TDD) because you can directly call your controller actions from your test methods. How can you test the combination of a controller action with a ActionFilter attribute (using OnActionExecuted to modify the ActionResult returned by the Action)? If I just call ...

ASP.net MVC Controller Actions and Web Methods

I am in an ongoing discussion about what is the best terminology to use in regards to what I call "Controller actions" In particular we are talking about controller action that accept a 'POST' verbs only. A colleague of mine prefers to call them "Web Methods", I suspect this is becuase of the old days of Web Services. The behaviour is ...

ASP.NET MVC Dynamic RenderActions in jquery tabs

Ok, so, that title is a mouthfull... But, I reckon you understand what I'm trying to do. I have a page which contains the jquery tabs control, and I render the different tabs by looping through my model. Now, the divs (that are "linked" to those tabs) are also created with the same loop. Hence I have equal tabs + divs connected to those...