Hey Everyone-
I have some code in a controller (HomeController.cs) that gets called from a $.get method in my view.
View Code
$(document).ready(function() {
$.get("/Home/Toolbar", function(result) {
$("body").prepend(result);
});
});
HomeController.cs
[AcceptVerbs(HttpVerbs.Get)]
pub...
I am trying to format a date rendered by ASP.Net MVC's TextBoxFor using the value of a strongly typed view. The date is nullable so if it is null I want to see a blank value, otherwise I want to see it in the format MM/dd/yyyy.
<%= Html.TextBoxFor(model => model.BirthDate, new { style = "width: 75px;" })%>
Thanks,
Paul Speranza
...
Wordpress has a nice api system. I'm struggling in creating an equal flexible one using a more traditional MVC interpretation. A typical view class could be like this:
class View
{
public function set($name, $value)
{
$this->data[$name] = $value
}
public function __get($name) ... you know how it works
}
A use...
Note: I will use the term "ViewModel" for both the ViewModel in WPF/Silverlight and the strongly-typed ViewData in ASP.Net MVC in the following text.
I would like to create both ASP.Net MVC and WPF/Silverlight clients for the same project (in other words, against the same DataModel), should I create a common ViewModel project or a separ...
In bootstrap.php, where you set routes, I'm having a hard time getting them to work. I read some documentation a while ago that I can't seem to find again that explains them. Here is one of my examples
Route::set('products', 'products/(type)', array('type' => '.+'))
->defaults(array(
'controller' => 'articles',
'action' => '...
I have a site that operates in different geographical locations. Some example URLs for my site would be:
http://losangeles.example.com
http://sandiego.example.com/post/blog/travel/
http://sfbay.example.com/blog/read/12/
In these examples, my URL structure is translated to the following:
http://[location code].example.com/[controller]...
Hello All.
This is my app im working on. http://twitpic.com/yrzpo and it has a modal view that i want to let the user app things to the routines list. http://twitpic.com/yrzs3
The table view on the first page, has a data source of a NSMutableArray. On the second page, i would like to add to that array, by typing in the top text field...
Do you know of any serious and clean, (by clean I mean rails like) mvc based ruby GUI application with GTK.
Actually, if there are any ruby gui applications that are clean and mvc based, I would be delighted, no matter what toolkit.
What I am looking for are basically some good open source apps, where I can look at the code, for inspir...
I have a dropdown list on my master page that needs to postback after being changed. After the postback, whatever page initiated the postback needs to be re-displayed.
My question is where do I handle this? Obviously I do not want to have to modify every Action in my project... My guess is to maybe postback to some other fixed action an...
I am developing an application in Java, in my GUI I have several JPanels with a lot of settings on them, this would be the View. There is only one Model in the background of these several JPanels. Normally, I would Observe the Model from the JPanels.
I was just wondering, is it good practice to Observe View from the Model? Because, the...
Is there a way to create a base controller implementation that handles all the routes?
IE /home/index and /about/index all point to one controller method and that returns the view.
The site I am building is 90% static content and I dont want to go and create 50 controllers.
One should be fine?
...
I use jQuery 1.4 for AJAX, MVC on the server side. Everything works fast on the local computer.
Tables with data are compiled and sent as HTML documents (I’m testing the system with large tables, over 100KB). When I download the same page through the internet, everything works 5-10 times slower or is simply pending.
I checked Forefox...
Hi,
I have a small imageview that is above my main view (it's 50 high)and when i touch it i use presentModalViewController to push a newView controller.
The problem is that when the view controller is presented i can see the entire view, but touches works only on the same frame as the imageview. Wich means that when i tap on the naviga...
Hi all,
I am in the middle of creating my own custom MVC web framework for a project.This project has very old code base where one JSP page directly submits a form to another JSP whereas the paths are also hardcoded. Now it is a big project and putting Struts or JSF will take considerable amount of time.
So my suggestion is to build a sm...
I will start a Java project to develop a desktop application.
What to use as presentation layer pattern (MVC, MVP,MVVM or....)?
...if it is possible, with some working small example... :-)
Thanks.
...
ASP.Net MVC 2.0 will be released in a few months. There are some bug fixed and some new features. Which feature is more useful for you and you will use more?
...
Hi,
I was wondering if it's possible to render an Html Helper in a View inside a codeblock. So instead of:
<% = Html.TextBox("sometextbox", "somethingelse") %>
I want to do:
<%
switch(SomeParameter)
{
case "blah":
Html.TextBox("sometextbox", "somethingelse")
break;
}
%>
And have this render. Of course as it is, it ...
Hello my code posted below is not dismissing my view no matter what i try. You can see my attempts to release the view in the hide splash function at the bottom. Please if anyone can help it would be greatly appreciated.
Thanks in Advance -- Zen
//
// SplashViewController.m
// Splash
//
#import "SplashViewController.h"
@implementa...
Hi all
I am trying to get through Rob Conery tutorial MVC StoreFront ans I have a problem with a line of code which is a link to a controller action.
<div class="categoryNavigation">
<% foreach (Category parent in ViewData.Model)
{ %>
<h3><%=parent.Name%></h3>
<ul>
<%foreach (Category child in paren...
Hi. I have a j2ee application developed using spring framework and spring webflow. Currently all of my url requests go through the Web Flow. What I want is to be able to choose whether to direct it to Web Flow or an ordinary spring mvc controller. I have no idea how to direct it to custom controllers. How do I do this?
I tried having t...