mvc

ASP.NET MVC Controller FileContent ActionResult called from jQuery

I have a controller method "SaveFile" that attempts to download a binary stream to client's PC using the FileContentResult. If I make the call as a post from the controller corresponding view everything works OK. I want to call the same controller method "SaveFile" from a jquery function via an .ajax call, when I do the function returns ...

MVC in a Webforms .net Webapplication

I'm interested in integrating MVC and Webforms to extend ScrewTurn Wiki that use webforms. Essentially my problem is that to keep ScrewTurn flexible and upgradeable I should write this as a plugin. I'm contemplating making it as a seperate web application, but then there would be some issues in sharing masterpages and I understand that I...

MVC Html.ActionLink ignores the Controller parameter

I have a a view that has the following code: <h2><%= Model.Company.CompanyName %></h2> <h3>Projects</h3> <ul> <% foreach (Project p in Model.Company.Projects) { %> <li><%= Html.ActionLink(p.ProjectName,"Details", "Projects", new {id=p.ProjectID,companyId=p.CompanyID}) %></li> <% } %> </ul> <%= H...

Sending an anonymous type with RenderPartial

I am trying to send an anonymous type with RenderPartial but this method only allows me to send (string, object , viewDataDictionary) or (string) or (string, object). I am using MVC 1.0. Is there something I am missing here ? Here is what I am trying to get workijng : <% Html.RenderPartial("ProductDisplay", product, new { DisplayAddTo...

how to read table values and send to controller

I have created a table and the values are filled in by the user. The user can create new rows. How can I get the values of the table and send it to my controller using jquery or any other method? Please give me an example. ...

How would you go about converting an .FLV file using Microsoft ASP.NET MVC?

how to convert videos in .flv format using asp.net mvc... ...

Displaying standard DataTables in MVC

Hello, Perhaps this is just completely wrong, but back in the days of Webforms you would return a Dataset which you would then bind to a grid. But now in MVC you're not supposed to pass a datatable because you cannot serialize it and it's technically passing objects into the View where it doesn't belong? But how on earth am I meant to ...

Managing application and SSRS authentication with IE7 shared process state

I'm trying to understand an authentication problem that occurs in an MVC application that links to an SSRS report via html form / URL integration to SSRS Report Server. The other important piece is that the MVC application implements it's security using ASP.NET Membership System in conjunction with FormsAuthenticationService. The use p...

iPad - Resizing a modal UIViewController

I am trying to display a login screen using presentModalViewController on iPad. LoginFormController *controller = [[[LoginFormController alloc] initWithNibName:@"LoginFormView" bundle:nil] autorelease]; [controller setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal]; [controller setModalPresentationStyle:UIModalPresentationFor...

Spring MVC vs JSF

Hi, I haved used Struts framework in all my past applications and for the new application,my client has requested to use either Spring MVC or JSF? I am not familiar with these two frameworks but our timelines are strict. So, I am not sure which framework I will choose to build the application. Can anyone please suggest me which framew...

ASP.NET MVC Instability

Hi there, Got a slightly odd one here. We have an MVC site that is experiencing some instability. Once a week for the last couple of weeks the site has gone down. We have found that all we need to do to bring the site back up again is 'touch' the web config file (i.e. open it and save it, with no changes). This brings the site back ...

How I do to call a nib file at only first launch of my application?

Hi all, I'm new here but I'd like to learn very well iPhone SDK... I'm making an iPhone app where I'd like to show a modalView controller at launch of my app... How can I do this? In this modalView, I request some informations and the view must appear only when these informations aren't saved! Anyone can help me? P.S.: Sorry for my bad ...

Cocoa touch view with multiple identical subviews

I'm having my first foray into Cocoa Touch programming (and one of my first into Cocoa in general) and writing a simple game for the iPhone, though this question is about cocoa touch in general. The main UI consists of a strip of identical acting buttons (only varying in colour) arranged horizontally across the screen. Although they act...

C# Use an attribute to handle exceptions in MVC

I want to handle exceptions thrown by any controller action with an ErrorView model and an error view. The idea was to have something like: [InformClientOfExceptions(typeof(MyErrorHandler))] public ActionResult MyAction(Int32 someId) { //...code } Then maybe have some class MyErrorHandler which implements a new interface IErrorVi...

Performance issues with ASP.NET MVC/WCF site & Oracle backend

Hello everyone, We are building an extranet loan status check website using ASP.NET MVC with a WCF backend. Its a pretty standard design with the MVC site using a WCF service reference to get customer objects. The ervice uses an Oracle backend + http binding, and won't be hosted on the same server as the MVC site (so we can't use tcp b...

ASP.NET MVC: Basic form question

A friend has asked me to help him with a project that's MVC. This is my first experience with MVC. I'm trying to build the MVC components for a form for him. A page has a modal popup which uses a JavaScript to POST or GET and receive HTML backthat it displays inside the popup modal. I need to create an MVC form that has validation to d...

Designing/Implementing MVC from Scratch

Hi, I want to create my very first web app using HTML, MySQL, PHP and the Model View Controller. It will be very simple for starters: a couple of pages that allows users to input/delete data to/from the database and display the contents of the database. However I am new to MVC, and I really wish I could have found MVC tutorials approp...

How coarse grained should the model be in an MVC framework?

Hello all, I have been reading a few questions previously asked and I haven't come across one that answers my question in "black and white" for me! So, apologies if this is repetitive. The question is probably similar to asking, "how long is a piece of string" but bear with me! For a registration system, I have a user model with functi...

Super Simple ASP.Net MVC Ajax.ActionLink Example Doesn't Work In IE... But does in Firefox, Chrome, Safari.

I have the following controller: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcApplication1.Controllers { public class TestController : Controller { public ActionResult Test() { return View(); } public string A...

How do I pass information from a servlet to a JSP page

Is it possible to have a servlet that contains an object (an ArrayList in this case) that then does the equivalent of displaying a jsp page and passing that object to the jsp page. In this case the ArrayList contains database results an I want to iterate through and display the results on the JSP page. I am not using any MVC framework, ...