mvc

Presenting MVC to Old C++ Spaghetti Coders?

I wish to present the idea of MVC to a bunch of old C++ spaghetti coders (at my local computer club). One of them that has alot of influence on the rest of the group seems to finally be getting the idea of encapsulation (largely due in part to this website). I was hoping that I could also point him in the right direction by showing...

ASP.NET MVC jQuery: Shoud we be concerned about a lot of jQuery/javascript on a View?

We are moving from WebForms to MVC and and using a lot of jQuery. I appears we have a lot of jQuery/JavaScript in our Views, is this common and are there any concerns about security. The obvious step is to refactor into plugins and more generic UserControls etc, but this jQuery would still be "visible" by looking at js files etc. We ar...

Display both jQuery validation summary and individual error messages

Hi, I'm using jQuery validation in ASP.net MVC. I would like to show validation summary and also individual error messages besides the control. I can do either one at a time. So it would be really helpful to know how can I display both. Thank you. ...

How can I print a web page on a server?

Suppose I develop a web page using the cool Google visualization API, and it does everything the user wants. They can the parameters, look at the graphs, and print the page to get a reasonable-looking report. All good. Now suppose I want to do the same thing server-side. For example, say we need a set of report generated at a specific t...

Passing a list of object from a view to the controller in asp.net mvc?

Is this possible? What I want to do is pass a list of objects as a paramter in an actionlink At the moment when I try to do this the list is always empty by the time it reaches the controller! In the view <%= Url.Action("ActionName", new { list = Model.ListOfObjects}) %> In the controller public ActionResult ActionName(List<Object>...

ASP.NET MVC Ajax: Error with Ajax.Actionlink ('b.apply' is not a function in MicrosoftAjax.js)

Hello, I made some changes to my ajax test website and now my Ajax.ActionLinks don't work anymore! The ActionLinks in question are made like this: <%=Ajax.ActionLink("Language Select", "LanguageScreen", "Home", from("LanguageScreen", "Functions"), meep("LanguageScreen", "Functions"))%>` The "from" and "meep" functions are only one li...

What would the conditional statement be to filter these inputs?

I have a page with a form, and on the form are a bunch of input check boxes. In the following page, there's the following code to process the inputs from the page before (which are set as an ID). <? $field = $this->input->post('measure',true); $totals = array(); foreach($field as $value): $query = $this->db->get_where('item...

Authorizing sections of a view in MVC

I was wondering if it's possible to authorize parts of a view inside the view. For example, I understand how to authorize the entire controller in this method <HandleError()> _ Public Class HomeController Inherits System.Web.Mvc.Controller Function Index() Return View() End Function <Authorize(Roles:="Administrators")> _ ...

Possible Performance Considerations using Linq to SQL Repositories

I have an ASP.NET MVC application that uses Linq to SQL repositories for all interactions with the database. To deal with data security, I do trimming to filter data to only those items to which the user has access. This occurs in several places: Data in list views Links in a menu bar A treeview on the left hand side containing links...

MVC partial page update

Hello, I have an MVC project where I have a form with fields a user can enter and save. On that same page I have a table which shows a brief listing of information that the user just saved. The problem I am having is trying to update only the table after a save and not an entire page refresh. Is this possible in jquery or MVC? If ...

.Net MVC - Restful URL's - The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Hello, im creating a MVC application thats following a restfull URL approach Im am experiencing the following error... "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." This error occurs when my URL length >= ...

iPhone: Proper use of View and View Controller

I've recently been doing a lot of Objective-C programming, and just got back into doing more iPhone development. I've done a lot of programming using MVC in other languages/frameworks, but I just want to make sure I'm using MVC properly in my iPhone Development. I created a new iPhone Utility Application, which creates two views: MainVi...

MVC architecture example using JSF 2.0 and EJB 3?

Somebody knows an example of this? an application made with JSF 2.0 and EJB 3? directory structure, etc, those kind of things, I’m trying to approach the best way to create a Java EE app using those technologies. ...

creating the icalendar feed and accessing it via webcal: protocal

Hi i completed creating i calendar feed in asp.net mvc.Basically the op is the file with .ics extensions.I am able to open my file in mozilla sunbird(calendar reader software) and view the milestones lists.Now when i want to open it with google calendar i get an error.How can i synchronize mi ical file with google calendar.Do i need to ...

Calling Model Functions from a Library

Hello all, I have turned a normal PHP class into a library so I can use it in Codeigniter as a library. I can load it and call the functions I need in that class. Here is that class to help with the question. However, there are quite a few points where I have to call functions in my class. These functions reside in the model that inst...

NDjango throws TypeLoadException

Hi All, I'm just trying to get started with NDjango but am having issues running a basic test app. When running the page in either debug or release the following exception is thrown: Could not load type 'Microsoft.FSharp.Core.CompilerMessageAttribute' from assembly 'FSharp.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f...

Some specific questions about object oriented and MVC design.

I have two objects, Users and Mail. Users create Mail objects and send them to other users. If I wanted to get all mail for a User, I could create a method like GetMail() that would return an array of Mail objects owned by that User. But if I wanted to get all mail across the system, what "type" of object would be responsible for that?...

How do I pass a javascript parameter to an asp.net MVCmodel from within a View?

Hi everyone! I am having an issue trying to access a list property on a model from within a javascript. My basic situation is this: I have an ArticleController and an ArticleViewModel. An Article has a number of properties, one of which is Text, which is just a string that contains the contents of the article. The ArticleViewModel c...

Folder copy VC++

i want to copy a directory from one drive to another drive. My selected directory contain many sub directories and files. How can i implement the same using vc++ ...

char to LPCTSTR

how to convert char to LPCTSTR in vc++ ...