Hi guys
This is my routing tables where do I put the various '.aspx' registrations?
//Turns off the unnecessary file exists check
this._Routes.RouteExistingFiles = true;
//Ignore text, html, xml files.
this._Routes.IgnoreRoute("{file}.txt");
this._Routes.IgnoreRoute("{file}.htm");
this._Routes.IgnoreRoute("{file}.html");
this._Routes....
Maybe I am mistating the problems and conflating the answer with the questions, but please here me out. I would like to think (communally, with you) about a site that is based on any any of the MVC frameworks(something PHP or ASP.NET MVC, whtever) that would use a search engine (lucene/solr, FAST ESP, whatever) as the back end of the Mod...
Hi!
As I have understood MVC, the logic for the model should also go into model itself - making every object a selfcontained entity. This means that the methods of an class has to have triggers and chains of actions. For example, by using setZipCode(zip) in a Person class could trigger an action where it looks up the zip code from a zip...
Hi,
I have a domain class named Parent as follows
public class Parent {
public List<Child> childList = new ArrayList<Child>();
public void setChildList(List<Child> childList) {
this.childList = childList;
}
public List<Child> getChildList() {
return childList;
}
public void addChild(Child ch...
I have MVC view with javascript. What would be the best way to test my view?
...
In my ASP .NET MVC application i have a link that refreshes "the preview data box" after each click. I've done this using this code:
<%= Ajax.ActionLink("delete", "DeleteItem", new AjaxOptions(){UpdateTargetId="casePreview"}) %>
Now I would like to change the behaviour in such a way that the preview data box is refreshed each ...
Hi
I have a page which contains a html.RenderPartial, that renders an aspnet mvc partial view.
The partial view is used as a jquery dialog and is opend from the page where it is rendered.
The problem is that inside the partial view I want to load and store a variable when the dialog is displayed. This data is used for some lookup while...
Hi there,
Is there a reason why i can't reference any assemblies from my master page or views?
So for example in my controler classes I can go MyRootnamespace.OtherAssembly.ClassName but when I do this in my view like:
<% MyRootnamespace.OtherAssembly.ClassName %>
it says OtherAssembly does not belong to MyRootnamespace
...
Summary: How should the UIViewController know the size of its UIView instance when initializing that view?
The dedicated initialization method for an UIView is the initWithFrame:(CGRect)frame method. This sets the frame for the newly created UIView. This method could be called from the UIViewController's loadView method, if that view co...
I find when I writing non UI code on a project I can be relatively productive (working in a top down manner from the service layer), following a TDD approach, Im nearly always out of the debugger until integration, not perfect but happy enough. FYI, I work in C# with R# enabled in VS2008.
However when I switch to stick a web interface ...
What's the pros and cons of using a Model-View-Controller model in building your application?
...
Hi
My first try of MVC. Am trying to implement a simple example. Inspiration from here. Have I got this pattern (yet!)?
View: "Hey, controller, the user just told me he wants the first person"
Controller: "Hmm, having checked his credentials, he is allowed to do that... Hey, model, I want you to get me the first person"
Model: "Firs...
I find that writing web apps and WinForm apps generally come out a lot cleaner than when I write a console application.
What do I mean by cleaner? Well the fact that the fact the UI (i.e. readline/writeline) is so intertwined with the logic code becomes horrible and the fact it is not event driven means that it is harder to get good ab...
In a Master page, I have this....
<ul id="productList">
<li id="product_a" class="active">
<a href="">Product A</a>
</li>
<li id="product_b">
<a href="">Product B</a>
</li>
<li id="product_c">
<a href="">Product C</a>
</li>
</ul>
I need to change the class of the selected list item...
When '...
I'm new to MVC. You have been warned...
I have User model that can return a MySQL result resource to a controller. The controller passes the MySQL resource over to the view to display. Is it acceptable to print the query results in the view, using a database result fetching function?
<?php while($row = some_fetching_function($database_...
i am following the NerdDinner tutorial
http://nerddinnerbook.s3.amazonaws.com/Part4.htm
and have gotten to "Adding a View" (middle of the page). When i right-click the controller and select "Add view", i get a dialog that is mising the "View Content" and the "ContentPlaceHolder ID" options.
Does anyone know why i cant see these option...
Looking at examples and tutorials for some MVC libraries for web development on the Internet, I found that many of them construct HTML directly in the code of Model class and then Controller just sends it to the View which just displays it. While this makes Controller and View very simple and clean, I feel it is a wrong approach. IMHO, M...
I currently have a full java web application stack (J2EE web app using Spring and Hibernate with a RIA client using dojo).
I have to move technology stacks for the UI to be asp.net but am allowed to keep the server components in java.
Any ideas on best practice here - and yes, I have to adopt this hybrid tech stack.
Initial thoughts are:...
I'm using Linq to SQL within an ASP.NET MVC application. The model consists of a Decisions table with a foreign key link to an Options table (one decision, many options). So the Model allows me to access the Options collection through the Decision.Options property. I want to allow my users to update the Options collection for a Decisio...
How do you set up the routing to handle http://mysite.com/Foo?
Where foo can be any value. I want it to go to /Home/Action/Id where foo is the id.
These are the mappings I have tried:
routes.MapRoute("Catchall", "{*catchall}",
new { controller = "Home", action = "Index", id=""});
routes.MapRoute("ByKey", ...