I am developing a Zend MVC application.
Sometimes I like to echo some text just for quick and dirty debugging. e.g
<?php
class MyClass {}
echo('hello world - yes this script is included');
I can echo 'debug-text' in my bootstrap> But, when text is echoed in my model or controllers it is NOT being rendered in the output.
I am using Z...
I have been using jQuery with ASP.NET MVC and the plug-in jQuery blockUI with success when using jQuery to make ajax calls to get data. I also have situations where I am just using plain ASP.NET MVC and where the postback to the server once the user clicks the submit button makes a database call that takes a long time. So I decided to tr...
This may have been asked before, and I have seen similar solutions... Perhaps I am thinking about this incorrectly.
I would like to have one link called user/edit if the user is an admin it should route to admin_ if they are a basic user it should route to user_ etc... Is there a way to do this in a slick way?
I have seen solutions tha...
When I discovered MVC (first with ASP.NET MVC), I thought it was the holy grail of software paradigms.
I recently started to dabble into Silverlight and noticed that the VS projects start off with pages similar to Forms (Web and Win) with code behinds and .xaml as the design.
Is there an equivalent to MVC in Silverlight (both for web ...
Because I thought of ajax posting my form to a specific function in my controller and do a sql-insert, but I want to stay on the same page. So is it necessary to load a view in the posted url (=destination)?
...
I am using asp.net MVC with Jquery.
I use RenderPartial method to load control and open as modal dialog. After submit small form on modal dialogue i want to get focus on same dialogue in case of error.
Javascript
$(function() {
$("#dialog").dialog({
bgiframe: true,
height: 180,
...
I'm having a hard time getting a fairly simple binding to work.
When editing an employee I want to display a listbox containing all the available roles in the system, (the employee's roles selected), and when saving the employee I want the selected roles to get populated by MVC into the Employee object which comes as an input param to ...
Hi there,
I have a little issue with my site. I have a page that hosts a google map. However the map does not get shown until the user clicks a button. It then call $.getJSON to get the addresses that i need to show on the map...
$.getJSON(theurl, function(json) {
...
}
It all works fine. However if the user then moves to a di...
Hi, I would like to secure my MVC controller actions using...
[PrincipalPermission(SecurityAction.Demand, Role="Administrator")]
However, if the user is not in this role then a SecurityException "Request for principal permission failed." is thrown by the code.
There seems to be no way to handle this error, even [Handle] error wont ca...
I have this format on links:
blah/link/11
where blah is the controller and link is a function inside it. But now I want to send a number in the querystring. In normal non-MVC way I would have done like this:
page.php?id=11
So what should I do for getting the eleven in my link function?
...
I have a xml declaration in top of my page like this
echo "<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">";
and ?> in the echo seems like php thinks it's a closing statement or something. Am I missing something or is there some other workaround this?
By the way the page is a view in my codeigniter project, if th...
I have to implement an Form View, or in other words: A class that is used to put a complex input form on the screen.
The Form is built up of FormComponents. There is an addFormComponent() Method to compose the form with these. And then, the form has an isValid() Method which will go through all the FormComponents and check their associa...
Take the example of wanting to have a "Latest news items" sidebar on every page of your ASP.NET MVC web site. I have a NewsItemController which is fine for pages dedicating their attention to NewsItems. What about having a news sidebar appear on the HomeController for the home page though? Or any other controller for that matter?
My fir...
What are the best tools do you use(paid ones as well as free) to develop a webapplication? I am looking for RAD(rapid application development) tools which increases productivity like IDE, decent debugger, drag and drop for web UI. Any added functionalities to check for security like SQL injection etc., will be added bonus points. I am p...
To manage page title on page's,I have a master page where i am taking ContentPlaceHolder.
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /> </title>
and on every page i write
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">Some Title Here
</asp:Content>
Now my client ask me for rem...
I am a bit stuck with my website, currently on the new section of my site(among others) the user rolls over a thumbnail and gets the articles abstract displayed below it, and then when they click on said thumbnail the article appears on the left of the page,
The ajax works by pulling the href from the link that surronds the thumbnail i...
I am trying to create an ASP.NET MVC application, using Spring.NET to inject dependencies. The application has three tiers: Controller, Service, and Data.
I have defined the objects in the file "~\Resources\objects.xml".
My first object, UserAccountController, requires the injecion of two Service-tier classes: UserAccountService and ...
Most PHP MVC systems follow a pattern where a request is routed to a specific controller action, and then the controller sets a bunch of variables for use in the view.
When you're in an agency/services work environment that uses a lot of dynamic HTML for UI elements, this patterns leads to a lot of javascript being generated with view v...
Hi everyone,
I know naming conventions for tables used by plugins generally start with the name of the plugin and then the model pluralized. For example lets say I had a plugin called Poll, with a model also called PollPoll and another model called PollTag then the resulting table names would be poll_polls and poll_tags. They would also ...
I am following ScottGU tutorial : A Simple E-Commerce Storefront Application
http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx
I can't get data from ViewData in my strongly-typed view Categories.
I really don't know what I am doing wrong because I am following ScottGU tutorial.
I am using the latest ...