asp.net-mvc

ASP.NET MVC Ajax Form - If value changes in Model after post, Form still displays old value

This behavior is making me wonder about my sanity.. I have a form that has two places that accept input, let's call them ValueA and ValueB. The user can enter a value in either one and the form submits. <div id="MyUpdateTarget"> <% using (Ajax.BeginForm("MyControllerAction", new AjaxOptions { UpdateTargetId = "MyUpdateTarget" })) { %>...

How to use compiled global resources in ASP.Net MVC

I want to compile *App_GlobalResources/Strings.resx* into my assembly (and eventually use satellite assemblies for Strings.es.resx, Strings.fr.resx, etc.) but the following error occurs once the app is published: "Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file specifi...

MVC / ASP.NET design templates

Does anyone know of any good sites to download good design templates (master pages, css files) for MVC projects, or ASP.NET projects in general? I've used the asp.net mvc gallery but the options there are pretty limited. I'm willing to pay for some if they are good. ...

How can I create a multitenant application with ASP.Net MVC?

This question is different from the others because all of the questions I've seen so far are talking about the database. I understand the database side of multitenacy, but I'm not 100% sure on the way to do the front end. I'm working on the design for a product that will basically be a hosted service for customers. As far as the multite...

Can I cache just the last page visited ?

Is there a way to cache only the last page the client visits in MVC, like a browser does, or do i need to use javascript and use the browser functionality? ...

Edit text box in ASP.Net MVC application not working?

For reasons currently unknown, in a strongly typed partial view that handles editing which was created using the auto-scaffold for an "Edit" template, refuses to display any data in the textbox. But, the test titletext string displays the relevent content. <% using (Html.BeginForm()) { try { %> <fieldset> <legend>Fields</legend> <p>...

Need help with formcollection model binding

Hi, I am trying to validate some form fields but it always errors out on the Html form helpers. It has something to do with Model binding but I can't get it to work. What happens below is I get the Form values from the form using the FormsCollection object, then I pass the extracted values to the USerSErvice layer and validate them. Wh...

best practices for logging in ASP.net MVC?

What's the best way to log in ASP.net MVC? I mean any event, I'm currently using NLog but I know there are a lot of possible ways to do it. ...

Cannot run ASP.NET MVC Websites on IIS7

I have Windows 7 professional running IIS7. I have installed ASP.NET MVC 1.0 and VS2008. When I run the app with Cassini it runs fine. When I create a virtual directory and run it on IIS7, the app comes up with a blank web page and no errors at all. How do I get ASP.NET MVC projects running on IIS7? ...

Create outgoing routes of the form {id}.example.com/{action}?

I use ASP.NET MVC 2 beta on VS2008. I also use Maarten Balliauw's excellent Domain Routing code to handle incoming routes of the form {id}.example.com/{action}. However, I can't get it to create outgoing routes of this form. In general, should this be possible? If you're familiar with Maarten's code, here's what I'm trying. By the w...

Getting an ASP.MVC2/VS2010 application to work in IIS 7.5

I've recently downloaded beta 2 of VS2010 and started playing with ASP.NET MVC2. Initial development was done with Casini, but now I wanted to run the application from IIS 7.5 (I'm running Windows 7). I've installed the IIS6 metabase compatiblity and I run VS2010 as administrator so I can use the "Create Virtual Directory" button from th...

Uploading image in MVC

I am using automatically created "Create" asp.net MVC view in which I have populated fields for underlying object. Problem is that my object has property of type Image, and i Don't know how to populate it. I've tried to use file upload, but I don't know how to reference it from controller. Thanx, V ...

Saving a series of create forms with one submit button in ASP.Net MVC

To give some background on my issue: I have 3 tables called Products, Packages, and PackageContents. I can go in my application and add products, and then I can create packages out of them. One of the steps of setting up a package is to create all the package contents. To do this, I've created a view that runs through all of the prod...

Open source projects using asp.net mvc + silverlight

Are there any open source projects using both asp.net mvc and silverlight together? ...

Best practices for Silverlight usage in a ASP.NET MVC application

What are the best practices for ASP.NET MVC and Silverlight usage in a web application? To be specific which libraries/frameworks (like prism) should be used in order to make the application unit testable and develop rapid? How one should pass data to the silverlight part from asp.net mvc (binding if possible?) and vice verse (from asp.n...

Rich client choice for an intranet web application with 5000+ users

For an intranet web application with 5000+ users we need to develop highly interactive (as few postbacks as possible) client. So performance issue might arise. What would be your choice and why? - ASP.NET Web Forms + JQuery/Ajax - ASP.NET Web Forms + Silverlight - ASP.NET MVC + JQuery/Ajax - ASP.NET MVC + Silverlight - WPF ...

Are there any lightweight ASP.NET MVC-based frameworks supporting OpenID?

I am looking for a lightweight framework that will allow me to knock out a MVC CRUD website very quickly, and I need it to support OpenID. Is there anything like this? ...

Serving a custom HttpHandler files with Cassini in Visual Studio 2010

Just playing around with our Less HttpHandler for CSS preprocessing using Visual Studio 2010 and ASP.NETMVC 2 and I am unable to serve the .Less file type how I'd like to. I have added a handler section to the web.config which is all that was previously required with VS 2008 when using Cassini: <httpHandlers> <add type="dotless.Core....

Routes MVC Problem

I read a lot of post, and i dont see my mystake. Can some body help me please. There is my global.asax public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", ...

How to integrate CKEditor into Asp.net MVC

Saw this post at CodeProject for FCKEditor. Can someone explain what about the new version? Thanks! ...