I don't mean to be controversial. Close if you see fit. But I've got to choose the best way to update my Intranet that's in Classic ASP. I've looked at umpteen framework, still looking and learning, but undecided. I know that PHP is still being updated and is a fine language, but I was thinking. If I wanted a framework couldn't I cr...
I am trying to create a pluggable ASP.NET MVC framework. I have extensively used Prism (CAB for silverlight) and am a huge fan and wish to implement the following items in my pluggable ASP.NET MVC framework
The framework will have a host to load the unity container and other infrastructure items like logging services and all.
Plugins w...
MVVM is a Microsoft design pattern that existed before ASP.Net MVC. Can anyone through light on differences between MVVM and the new MVC pattern?.
...
My question is about the ideal or the original MVC interpretation
http://heim.ifi.uio.no/~trygver/themes/mvc/mvc-index.html
As MVC goal is to reduce dependencies, should the View knows the Model ? Then what would prevent it to become fat and call directly Model Methods without asking Controller ?
Update: as I read answer below, I'll ta...
Heres my code:
//Setup days
$data['days']['FALSE'] = 'Day';
//Setup months
$data['months'] = array('FALSE' => 'Month',
'1' => 'Jan',
'2' => 'Feb',
'3' => 'Mar',
'4' => 'Apr',
'5' => 'May',
'6' => 'Jun',
'7' =...
Hi!
How can i pass to asp.net mvc action parameters like: line[first], line[second], line[third], people[john] etc?
For example we have html:
<form>
<input type="hidden" name="line[first]" value="hello" />`
<input type"submit" value="send" />
</form>
How we can take "line[first]" value when user clicks on send button?
...
I have already a MVC-webapplication, I wounder should I create a new WCF Service Appication or should I insert a serivce in same webapp udner the folder "Model"?
What is the best solution?
...
Hi
How can I use my own output type for action methods in MVC?
I know that its possible (as they did in MVC Contrib), but how?!
I'm trying to use Silverlight as MVC Views.
...
You've probably heard of the Fat Model/Thin Controller vs. Thin Model/Fat Controller distinction. I recently heard that you can have something in between where some of the logic from the model goes into a service layer. How common is this? and do you know of (or can think of) any real examples that illustrate it?
...
Action Helpers are recommended in general over extending Zend_Controller_Action.
Looking at some of the applications you've built recently, what did you use Action Helpers for?
...
I have seen numerous examples of the Command pattern
But they all tend to be in the context of a desk-top application.
i.e "Command decouples the object that invokes the operation from the one that knows how to perform it"
In the context of a pure HTML (but Zend Framework MVC driven) website, I am thinking of a user 'clicking a link' ...
Very often i write code like:
<img class="hasMenu" src="<%= (Model.Image==null)?Url.Content("~/Content/NoImage.jpg"):Model.Image.standard %>"
alt="Main image" />
Is there any predefined function which could beauty this code?
Something like: ValueOrDefault(Model.Image.standard,Url.Content("~/Content/NoImage.jpg"))
...
Hi,
I'm new to MVC but from what I have learned so far (for example here, by ScottGu) one should aspire to "skinny controllers" rather than "fat" ones.
Add to that the fact that views are inherently thin, and you'll get a lot of code in your model.
So my question is - How do you partition the code in your model to different logical pa...
Hi people,
At this time I want to build a MVC framework. Everything is going fine but now I got a problem between controller and view. Hope you can help me.
My MVC is not so different from MVC, it uses the same concept, but technically I got an issue. The question is: how to take data from the controller once the view is loaded?
Bear ...
Hi, I am fresh in ASP.NET MVC framework. This is may be a silly question for you. Sorry about that.
I have implemented a VirtualPathProvider. The VirtualPathProvider reads the view from File system.
However my problem is the method GetFile(string virtualPath) is not executed every time for every request. I think it is related to the ca...
I have a Person model. When a new Person is created, I want to set a random_variable in the controller and pass it as part of the @person object. I have tried
Model
attr_accessor :random_variable
Controller:
def create
@person = Person.new(params[:person])
@person.random_variable = 'A Random string'
@person.save
...
Hi, I am developing using a Windows 7 machine with the local server being UniServer.
I have some PHP code to include all php files in a directory.
# Include all library classes.
$library_files = scandir(LIBRARY_PATH);
foreach ($library_files as $file) {
$path_parts = pathinfo($file);
if ($path_parts['extension'] == 'php') {
...
Hello, I am trying to figure out how to invoke a jquery grid from client side to refresh itself. So once the page is loaded it will request its own data.
...
I have a class User{ Set.....} Car{String id,......}.
a select box in html page. I want that when user submit form, value of select box should be set in Set. How can i do it in Spring mvc.
...
I have the following function signuture:
public JsonResult PopulateGrid(int page, Guid? accountId, Guid? systemUserId, Guid? branchId, DateTime? fromDate, DateTime? toDate, HomeVisitType? homeVisitType)
Every single parameter is bound just fine except toDate which turns out to be always null.
When inspecting the Request.QueryString["t...