I am using Kohana but this question applies to Rails, CI, or any other MVC web development framework. Where is the best place to stick one's server side AJAX scripts?
I was planning on creating an Ajax_Controller and using a method/action per individual script.
For example, a login form on the home page index.php/home would send an XM...
Hey guys, a couple of us are looking for a collaborative name to work under when developing OpenSource products. The first of which will be an MVC CMS which is designed to be as usable as possible (no admin system all editing done inline).
So can you help us name the two:
OpenSource Organisation - mainly dealing with .net and mvc solu...
I cannot grok what MVC is, what mindset or programming model should I acquire so MVC stuff can instantly "lightbulb" on my head? If not instantly, what simple programs/projects should I try to do first so I can apply the neat things MVC brings to programming.
OOP is intuitive and easier, object is all around us, and the benefits of cod...
Hi All,
I'm just building my first MVC application and hitting a problem trying to perform a search using AJAX/JSON. The problem seems to be that the JSON returned by my controller is not an array meaning that I can't use jQuery's $.each method to iterate over my items. I'm trying to search for a user by e-mail address.
I've got a Sear...
Last week , my boss ask my team to evaluate ASP.NET MVC, for next project.
all of us working with webform since .NET 1.1, we have no MVC experience before ,but all of my colleague are interest in ASP.NET MVC ,But no luck , our finally answer is NO.
Because:
1. we believe although you are ASP.NET Guru, you can build a complex application...
It seems to me that, for structured development with both depth and breadth of capability, ASP.NET MVC and Silverlight have the potential to make a nice powerful framework with superior UI granularity and reduced AJAX exposure. Have any of you tried building such a stack with future durability in mind?
...
I am building a new application based on MVC and considering LINQ-To-SQL/Entity Framework. I a have entity which has a numerical status Like (0 - Open, 1 - Active, 2 - Closed), Where should i Put the logic to show appropriate string (Enum??) in the view/controller or model which is generated automatically?
Should I move all such logic in...
The overall structure of a given software system is model view controller.
The view (graphical interface) is a representation of the model (domain object models).
However, within the view (graphical interface) there are components (such as JTextComponent). These components too are arranged in Model View Controller. JTextComponent uses D...
Hi,
i'm having problems running my MVC project on my server. The main project on the server has it's own web.config file (1.0 versions referenced in configsections), while the 'virtual subproject' also has one (3.5 versions referenced). I receive the following error:
Configuration Error
Description: An error occurred during the proces...
I've got a model that does some validation checking and adds the errors to ModelState:
ViewData.ModelState.AddModelError("mycontrol", "message")
They display fine on the view side, but is there a way to set the focus to the control that corresponds to the validation message? Right now, the page refreshes and stays at the top of the pa...
Has anyone successfully bound 2 textboxes to one DateTime property using the model binding in MVC, I tried Scott's method http://www.hanselman.com/blog/SplittingDateTimeUnitTestingASPNETMVCCustomModelBinders.aspx but was dissatisfied as this stops the HTML fields and Model properties having the same name (so the validation could not set ...
Im staring to get into .NET development for the web. I want to learn the best way to build web sites using c#.
I began reading about 'web forms' but then came across some new 'mvc' way of building web sites.
Which one should I learn?
Thanks for any feedback provided.
...
Right now I use Gravatar for user avatars on my website.
I want to let users upload images to use as avatars from my website to gravatar so they don't have to visit gravatar if they choose not to, and I don't have to support multiple avatar methods. I don't know how to accomplish this in ASP.NET MVC.
In Ruby on Rails they made it eas...
There seem to be factors for and against this happening.
For:
Growing number of applications being implemented on a web platform
Growing need for web apps that work on different devices/platforms, and thus, a need for clean, compliant XHTML code on the front-end
Against:
Plugins such as Silverlight and Flash becoming more popular,...
I am trying to found what is the best practice for view-controller communication for case when I need for example filtering.
I have collection of items on page and filter control. I am filtering items by letter, status, etc...
It is straightforward scenario, I am sending filter selected values to controller and controller gives back res...
Hi there,
Anyone had a chance to use the javascript MVC framework with ASP.NET MVC?
Basically i looking for advise on a way of using them together if possible, my asp.net MVC app i can't get rid of but i would love to use some sort of separation of concern for the javascript / Jquery...
Anybody used something like this? I am trying to...
I've got an ASP.NET MVC application that uses jQuery. To load the js libraries, I reference them like this:
<script type="text/javascript" src="../../Scripts/jquery-1.3.2.min.js"></script>
This works fine locally, but when I publish it to the server, it can't find the library. To get it to work, I have to change it to this:
<script t...
I am using asp.net MVC framework. On my page i have a dropdwonbox and when an option is clicked i want to go to another page. But i can't find how/where to set the autopostback property to true. This is the code i'm using:
Aspx:
<%= Html.DropDownList("qchap", new SelectList( (IEnumerable)ViewData["qchap"], "Id", "Title" )) %>
Control...
Please send code samples if you can, Thanks!
...
I have a controller defined as:
[AcceptVerbs(HttpVerbs.Post)]
public JsonResult PostMoreData(DataContracts.Address address, DataContracts.GeoLocation geoLocation)
{
return Json("test");
}
where DataContracts.Address and DataContracts.GeoLocation are complex types.
From my View i'm trying ...