mvc

How to check in ASP.NET MVC View if site is running on localhost or 127.0.0.1

Hi guys, How to check in ASP.NET MVC View if site is running on localhost or 127.0.0.1? Best regards, Alexey Zakharov. ...

Which is better ? MVC or 3 Layered Architecture.......

Hi Everybody, Which Technology is better? ASP.net 3 layered architecture or MVC Please Let me know. ...

Controller (Spring Managed Bean) Scope Question: Singleton, Request or Session?

The question is a bit long since it's conceptual. I hope it's not a bad read :) I'm working in a performance critical Spring MVC/Tiles web-app (10,000 users typical load). We load an update employee screen, where we load an employee details screen (bound to an employee business object) for updates via a MultiActionController. There are ...

asp.net mvc model binding

Hi I am working with asp.net model binding, I have got it working previously with html forms, the problem here is the UI client is going to be a rich client. I have this controller action public ActionResult CreateUser(User profile) previously with html forms, as long as the form html input names matched the name of the properties of...

MVC SportsStore:[Building a Category Navigation Menu]

I've been following Steven Sanderson's book called Pro ASP.NET MVC Framework, and I'm running into an exception: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropri...

Customizing MEF

Hey fellow coders, I have this situation where I want to use MEF in a chess project I'm workin on. Let's say I have a class constructor as in: public class MoveManager { private Piece _piece; public MoveManager(Piece piece) { _piece = piece; } Mode code here... } In this context I would have several classes that wou...

System.ServiceModel.ServiceActivationException in WCF Service

Hello Everyone, We have recently moved from VS 2008 to VS 2010. With that my applications are now running off of the .net 4.0 framework and MVC 2.0. After doing a little bit of conversion on my local machine to both the MVC project and the services project that gets referenced all is running seamlessly on my local machine. I next cop...

Intent of Data Annotations Model Binder

The article here mentions the use of Data Annotations Model Binder that is available here. Does anyone know what it's intent is? To do DA validation, I don't need a special Model binder in MVC 2.0 ...

MVC Ajax not loading Partial View in div, loading new page

Hello, I'm currently working with MVC 1.0 and have never worked with AJAX before and only have limited experience (started a little more than a week ago) with ASP.Net MVC. I'm trying to setup a table (that's built / is in a partial view) that's populated with information from a db that allows a user to quickly add pr remove records into...

How does Swing fit in with MVC?

There are many examples on the web when it comes to the MVC pattern with Swing. However, there doesn't seem to be a straightforward way of doing things. Here's some questions: Can the notion of View be directly associated with Swing components such as JFrames? Likewise, can the existing model classes that Swing uses be used as the Mod...

Developing mvc application.

What is mvc ? What are the benefits developing mcv website ? How can I develop mvc website, that is what I have to install,I have installed microsoft visual studio 2005 in my pc then what I have to install to develop mvc website ? I am begginer in developing website. And which are the best free resource I can use to learn how to develop...

asp.net mvc ajax.beginform ajax call

function submit(frm) { var tdata = $(frm).serialize(); $.ajax({ url: "/Organization/CreateOrganization", data: tdata, success: function (result) { alert("ssss"); }, type: "POST", datatype: "json" }); return false; how to mak...

What is the difference between MVP and MVC?

Possible Duplicate: What are MVP and MVC and what is the difference? I don't see any difference between MVP and MVC software architectures (MVC where controller implements mediator pattern), other than the name by which you call the mediator (presenter vs controller) Can someone provide a clear explanation? I care because I ...

ASP.NET MVP as a symbiosis of ASP.NET Webforms and ASP.NET MVC

I have developed web applications for a couple of years with ASP.NET Webforms and I still like it, above all because of the RAD possibilities, it provides. Since two years ASP.NET MVC is now available as a direct competitor to the classic ASP.NET. Somehow I don't want to throw away all my Webforms experiences and move to ASP.NET MVC. One...

Unable to cast the type 'System.String' to type 'System.Object'. LINQ to Entities only supports casting Entity Data Model primitive types.

I am using EF 4 but it is giving me error when I try to order my list. Unable to cast the type 'System.String' to type 'System.Object'. LINQ to Entities only supports casting Entity Data Model primitive types. This is my code to get the experssion by entering the property name, example below get the Customer Name var param = ...

Time delays and Model View Controller

I am implementing a turn based game, there are two sides and each side has several units, at each specific moment only one unit can move across the board. Since only one unit can move at a time, after i figure out where it should go, as far as the simulation is concerned it Can instantly be teleported there, but playing the game you wou...

Kohana3 - Error Template if errors = FALSE

Hello everybody, In my Bootstrap.php I've deactivated the Profiler (or is it better to be activated?), and the Errors. Now if somebody is calling an Url, maybe: /notexist, and there is no action_notexist(), the Site is blank. My Question: How can I create a main Error Template, which should be loaded instead of the white page. E.g. If...

entity editor for WPF (MVC Style)

Is there something close to Html.EditorForModel() for WPF? ex: <StackPanel><local:EditorControl<Student> /> </StackPanel> or Html.TextBoxFor(model => model.Description) What are the best practices for rapid development of data driven applications using WPF? ...

How to organize controller in moderately large Rails application?

I'm working on an application with quite a few related models and would like to hear some opinions on how best to organize the controllers. Here are some options I have been considering: 1) Namespace the controllers. So, for example, have a controllers/admin directory and a controllers/public directory. This seems appealing for organi...

How can I temp go to another view to create entities

Hi I am new to asp.net MVC and have to decide how I can implement the following. Can anybody please point me in the right direction I have a controller which serves a view to create customers which all works fine I have another controller which serves a vew to create invoices. But to create invoice I will need to search for customers w...