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...
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...
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...
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...
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...
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...
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-...
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...
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
...
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>...
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...
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...
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...
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. ...
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...
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 ...
<div><a href="http://anirudhagupta.blogspot.com/">Anirudha Web blog</a></div>
What is the Regular Expression to get http://anirudhagupta.blogspot.com/
from
<div><a href="http://anirudhagupta.blogspot.com/">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...
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 ...
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...
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...