asp.net-mvc

ASP.Net MVC - How should i do integration testing on an ASP.net MVC application without necessarily running all the tests via the browser?

ASP.Net MVC - How should i do integration testing on an ASP.net MVC application without necessarily running all the tests via the browser? ...

ASP.NET MVC Custom Attributes within Custom View Engine

Assuming I write a custom attribute... public class SpecialActionFilterAttribute : System.Web.Mvc.ActionFilterAttribute { public override void OnActionExecuted(ActionExecutedContext filterContext) { } public override void OnActionExecuting(ActionExecutingContext filterContext) { // set some parameters here. ...

Is there a Ruby on Rails framework like equivalent for .NET development?

Answers like ASP.NET MVC or Entity Framework really aren't acceptable as they address just one aspect of the problem domain. I'm looking for a framework ... a REAL framework that gives me the same features out of the box that Rails does. As such it should include at minimum: MVC for presentation ORM Ability to provide simple configur...

How to set up SubSonic ActiveRecord Repository in the ASP.NET MVC Starter Site

I would like to setup ActiveRecord iSession with Ninject IoC just like SubSonicSimple is done. http://mvcstarter.codeplex.com/ Pls help ;) ...

Using EF POCO classes as MVC 2 models (with data annotations)

I have a 4 layered web application programmed in C#... .Net 4.0: UI Layer Business Layer Data access Layer Entities layer My data layer contains an edmx My entities layer contains my POCO objects (generated by a t4 script), and that layer is referenced in all other layers. When creating an MVC form to create a new customer, for exam...

DataAnnotations jQuery validation in asp.net mvc 2

Hi, I trying to use jQuery validation plugin with DataAnnotations in asp.net mvc 2 final. Now I'm using MicrosoftMvcValidation.js and it works. But I can't find way to work with jQuery validation. I read about MicrosoftMvcJQueryValidation.js. But I think that it is obsolete. How can I use DataAnnotations with jQuery validation plugin? ...

Error using MVCContrib TestHelper

While trying to implement the second answer to a previous question, I am receiving an error. I have implemented the methods just as the post shows, and the first three work properly. The fourth one (HomeController_Delete_Action_Handler_Should_Redirect_If_Model_Successfully_Delete) gives this error: Could not find a parameter named 'con...

ASP.NET MVC RequireHttps not available

I'm using System.Web.MVC v2.0.50727 and can't seem to apply the RequireHttpsAttribute. I can use [OutputCache(...)] for instance, but if I try to use [RequireHttps] I get a missing assembly error. Is there a later version of mvc 2 out there that includes this? ...

Limit URL Parameter Length in Web.Config

Is it possible to add some kind of restriction to the web.config to limit URL parameter length? I want to prevent people at the earliest possible point from submitting too large URL parameters so the server doesn't get taxed more than necessary in the event that somebody tries to "attack" it with large invalid URL parameters. ...

How to mask tilde (~) character in C# MVC routing table?

I'm moving my home-baked web site to MVC and got the trouble with url routing. The site already serves several links that contain tilde (~) character in the path; something like http://.../~files/... http://.../~ws/... and I want each of them are handled by separate controller, like filesController, wsController, so my route table loo...

Strategies for selective rendering of views based on authorization in ASP.NET MVC?

I can do authorization easily on the controller actions using the Authorization attribute. But how do I render views as easily as using Authorization attribute? For example, if I have a menu and the user is unauthorized for certain menus, how would I hide those menu items? Let's say I have a page that renders a table with add/edit/dele...

Handling Multiple Form Actions on One View?

I have multiple master pages in my asp.net mvc web application... Each of the pages add,edit,view and delete functionalities.... What it does is i have to create multiple views for handling add,edit,view and delete functionalities (ie) the user has to navigate to another view to edit/view the details of a record... How to Handle Multiple...

Select ID in table ...

Hello, I have this code <% foreach (var item in Model.List) { %> <tr> <td><%: item.LastName %></td> <td><%: item.FirstName %></td> <td><%: item.IsEnable %></td> <td><a href="#" class="CustomerEdit">Edit</a></td> <td><a href="#" class="CustomerDetail">Detail</a></td> <td><a href="...

Linq to SQL and Realtime Data

I have an application that needs to constantly (every 50ms), call to an MVC action, and pickup/drop off data. I am using Linq to SQL and MVC because of how simple they are to implement, and I know that they aren't perfect when it comes to performance, but it works relatively well, but the best speed I can get with my current approach is...

Using ASP.NET Automatically login to an external website and redirect

We have a series of products with built in web servers each of which has a login page, a customer wants to create a web portal in which they log into once, from there they can simply click on any of the devices (external websites) and it will automatically login to that site and redirect them to the page after the logi...

Cache like stackoverflow

I'm creating a ASP.NET MVC 2 application that envolve a section like questions here in stackoverflow (mine is with exams is another kind of application but can be extrapolate to same general idea of SO). OK I'm creating a cache per page, its mean something like this: [OutputCache(Duration=60, VaryByParam="page")] ActionResult AllQuesti...

advantages of WPFbrowser application over asp.net and viceversa for web development

I'm not familiar with WPF but I've seen things I like about it for web development. I wonder which advantages has developing a WPFbrowser application over asp.net (webforms/MVC) and viceversa. are there things you can do or use in asp.net you can't do in a WPFbroser application? ...

ASP.NET MVC Ajax.Begin form with many inputs (type=submit)

Hi, I have an Ajax form : <%using (Ajax.BeginForm(...)){%> ... <input id="btn1" type="submit" value="OK1"/> <input id="btn2" type="submit" value="OK2"/> <%} %> both inputs do different jobs - is it possible to catch which input has been clicked ? ...

what is the fastest grid components for asp.net mvc applications

i have been looking at jqgrid, telerik. does anyone have any performance metric comparisons or have any other alternative that they think is faster. ...

VisualStudio2010: AccessViolationException

Hey, I get an AccessViolationException when I try to start debuggin a C#-MVC2-webproject in VisualStudio 2010. But there is no Stacktrace or indication where the error occurs. When I switch from degub-mode to release-mode I get the error "unknown software error" (0xe0434352) [...] at (0x765e5b727). The window has the title from the ASP....