mvc

Should I use ASP.NET MVC in this scenario?

Hi, Please note: this is NOT an MVC vs web forms general debate question. I'm looking to find what is the best choice for my situation and could use some guidence. I understand that MVC is not a replacement for web forms and they both have their advantages/disadvantages. I'm starting to design and will soon start development for a few d...

Is it ever justified to write a fairly large, database-centric PHP app procedurally and without MVC?

Sorry for the rather subjective question, but I was hoping to get an opinion from someone more experienced than myself on this. I'm pretty far into an ajax-driven PHP application and, while I have pretty good separation between markup and behavior on the client side, my PHP is slowly becoming a bit of a mess. I'm doing alright so far b...

asp.net mvc vs php mvc vs just php for cafepress type site

Hi guys, I dont have experience in web programming. I so far I coded in c++ only. If I wanted to build a site similar in functionality to cafepress.com which route would be most suitable for me? asp.net mvc or php mvc or just php? Granted I am new at this, still the amount of options is overwhelming to a newbie. And there is no decent g...

how will I call the on change event of the ajax dropdownlist?

Hello All, In my MVC application I am using an ajax dropdownlist and an ajax Cascading dropdownlist I want to write the onChange event of the cascading dropdownlist please tell me what shall I do. I am posting the view page that I am using and the js file that creates the cascading dropdownlist.Please tell me where all the places I nee...

MVC: Override default ValidationMessage

Hi peeps, In the world of MVC I have this view model... public class MyViewModel{ [Required] public string FirstName{ get; set; } } ...and this sort of thing in my view... <%= Html.ValidationSummary("Please correct the errors and try again.") %> <%= Html.TextBox("FirstName") %> <%= Html.ValidationMessage("FirstName", "*") %> My q...

asp.net mvc complex ajax updates

Hi, i'm wanted to perform some ajax calls in a certain way. I have a page. In this page are 2 ViewUserControls, say control1 and control2. control1 has a list of Ajax.ActionLinks that call control2 like this: <%= Ajax.ActionLink(page.Name, "PageDetails", new { pageSysName = page.SysName }, new AjaxOptions { UpdateTargetId = "pageEdit...

Getting an error when trying to load a model

I'm loading a model for my CodeIgniter based website, but it keeps giving an error: "Fatal error: Call to a member function on a non-object in /nfs/c02/h05/mnt/30796/domains/planetchustar.com/html/arguit/system/application/controllers/home.php on line 8" Here's the part of code its referencing: function index() { $this->load-...

Spring MVC very confused about controller mappings

Using annotation-based controller mappings. @Controller public class AlertsController { @RequestMapping(value="create", method=RequestMethod.GET) public void create(HttpServletRequest request, Model model) { } } When access alerts/create, I get the message Does your handler implement a supported interface like Controller?. Thi...

Javascript degradable cascading dropdownlists

Hi all, I have 2-3 list within a form that rely on each other. If one is changed an ajax call is made and the others are loaded. I was wondering if any of you knew of a method to make this dropdownlist js degradable. Thanks ...

ASP.NET MVC strongly typed view convert from C# to VB.NET

I'm starting to learn ASP.NET MVC and since I work in a VB.NET shop I'm converting an example from C#. I'm trying to implement a strongly typed view and the example I'm looking at shows the following: <tr> <td>Name:</td> <td><%=Html.TextBox(x => x.Name)%></td> </tr> I've come up with the following in VB.NET: <tr> <td>Name:</td>...

How to Make Zend_Controller_Router resets un-wanted parameter by default

Hi, I'm using Zend-Framework 1.9.5 to make a web-application, But it's Url_Helper was quite tricky to me in the matter of parameter reset!, I know it's a good feature (parameter preserving) but in most cases I don't need it!. So I'm thinking of overriding the default Router to force it loosing parameters Unless I ask for it or maybe spec...

creating a controller in Rails

I'm trying to use the generate script to create a controller. I run the following command: > ruby script/generate controller Greeting and the controller seems to be generated no problem. Then I add a method called index to the GreetingController: class GreetingController < ApplicationController def index render :text => "<h1>We...

MVC Toolkit and XmlMetadataProvider

I have been working on validation with the ASP.NET MVC BETA 2. Some of the reading that I have done is very critical of the buddy class approach because it isn't DRY (Don't Repeat Yourself) and because it puts the buddy class in the model layer and not in the web layer. I understand these arguments and through lots of searching I found a...

pass values from the view to the controller ruby on rails

Hi This is my controller: def addcar @car = Car.new(params[:car]) render :action => "list" end this is my view: <%(@allcars).each do |cell|%> <p><%= link_to cell.to_s, :controller => "car", :action => "addcar", :car => cell.to_s %></p> <%end %> In the link_to statement I want to pass cell.to_s to the controller. ...

Does an 'Email' class belong in model or view?

I have a User class in the model and need to send a password reminder email. Does the controller instantiate a User and pass it (or values from it, rather) to a Email class in the view? In which case, would the controller then do the actual sending of the email? Or would the controller call User::sendEmail() and there not even be a vi...

iPhone ModalView with Table Not Displaying

App Description: I have a UIWebview and a Toolbar beneath it. A button (Menu) on the toolbar should bring up a modal table view, but it does not. Problem: The button runs through the code (tested with breakpoints and replacing the code) but doesn't display the alternate View. My Hunch: It's probably a relationship problem in Interface ...

Get url from html code using Regex

<div><a href="http://anirudhagupta.blogspot.com/"&gt;Anirudha Web blog</a></div> What is the Regular Expression to get http://anirudhagupta.blogspot.com/ from <div><a href="http://anirudhagupta.blogspot.com/"&gt;Anirudha Web blog</a></div> If you suggest in c# that's good i also like jQuery for do this. HTML code is also means for...

Creating a simple custom view in SugarCRM

Hey! I am trying to use the MVC architecture of sugarcrm to add a new action and with that a new view. I have managed to create a controller with the action and also a class view, the only thing I can't figure out is how to create a simple html page. Do I really have to use the metada way of sugarcrm?? I just want a simple form with ...

Zend Framework: Controller class == Page?

Am I right in thinking that in Zend Framework, if I plan to have 5 pages at my site, I'd generally need 5 controllers? Do ZF developers typically create 1 controller per page ("page" as abtract app unit)? The reason I am asking this is that previously for some reason I stuffed a lot of various actions into controllers so that they playe...

How does one implement UI independent applications?

What are the fundamental techniques to make most part of my C# source code UI independent? For example, I would like to write my source code for Winforms desktop application which I shall be able to plug into asp.net web application or a WPF application with very minor changes. I.e. I shall be able to use the same source code irrespecti...