asp.net-mvc

What is the disadvantage in using asp.net MVC?

Is there any disadvantage you face it when you using asp.net MVC? EDIT If yes can you list some of those drawbacks, ...

ASP.Net MVC - forms authentication using an external URL

Our organization has a central solution for forms authentication. I am trying to implement an ASP.Net MVC app that uses this external URL - and it worked till RC! was released... Here's what's happening In an ActionAttribute Extension I check for s session var if not found check for a request data chuck if foun...

asp.net MVC - How to do a master/detail page

I wish to create a master/detail page. I see it working one of two ways: Clicking a row in a grid calls the same page again with the addition of a details panel. Clicking a row does javascript/JSON call to a controller action that returns details and populates a panel. I would like the selected row to be highlighted. The selected ro...

Validating part of the model in MVC

I am trying to wrap my head around doing validation in a MVC scenario. I have my application setup so that it has a Data/Repository layer that uses Linq2SQL and creates objects in my domain model. I don't expose my Linq2SQL objects directly to the rest of my app however, for now, my domain model mostly looks like my database tables. I wa...

Are the Asp.net MVC default login classes sufficient?

Are they sufficient in terms of security for use in a public site? OR so I need to make modifications? ...

How do I get started with ASP.net MVC?

I have experience in PHP, JSP/servelts and classic ASP, and I am trying to learn a bit about ASP.net MVC. I figured out that www.asp.net is the website to go to get started. But I am a little confused. What all stuff exactly should I download to get started? What is the best IDE for this? Can I use Microsoft expression web? What all o...

jQuery ajax request not firing on subsequent events

I have a jQuery function that I'm having a minor problem with: $(function() { $("a.CompletedCheckBox").click(function() { if($(this).hasClass("CheckedCompletedCheckBox")) { $(this).removeClass("CheckedCompletedCheckBox"); } else { $(this).addClass("CheckedCompletedCheckBox"); } $.get("/Tasks/Complete/" + ...

ASP.NET MVC scenario, similar to 'Post your answer' on StackOverflow

Hello, I have a requirement to add commenting system to a page (similar to 'Post your answer' at the bottom of any SO question). What is the optimal way to implement this? Should I render the partial view with Ajax or should I just pass the Json data to server? In the latter case I don't quite get how I should add newly added comment to...

What templating engines are available for ASP.NET MVC Framework?

I was reading some posts on Coding Horror blog about working with the horrors of tag soup. It seems like the only way to simplify html generation is to use a templating engine. Do you know any templating engine for ASP.NET MVC framework? ...

How to return value from html popup

Hi, I need a terse, clean way to implement this in asp.net mvc (+/- jquery or js)? User clicks an element in webform A; Webform B pops up; User interracts with webform B; On closing webform B, probably by a submit button, the source element in webform a is updated with a value from webform B Thanks. ...

POST method called on MVC UserControls as well as their parent views

Rewritten: My original post seemed to be misunderstood. I have since reported it as a bug with the following description. My original post for this question can be found below the second <HR>. I have a major issue with POST in a user control. I have a UserControl which has a controller containing two ActionMethods called 'ContactFor...

User authentication and authorisation in ASP.NET MVC

What is the best method for user authorisation/authentication in ASP.NET MVC? I see there are really two approaches: Use the built-in ASP.NET authorisation system. Use a custom system with my own User, Permission, UserGroup tables etc. I'd prefer the second option, because User is part of my domain model (and I have zero experience...

ASP.NET MVC without MicrosoftAjax.js and MicrosoftMvcAjax.js

What parts of functionality will I lose after removing the MicrosoftAjax.js MicrosoftMvcAjax.js files? I don't want to use them for various reasons and I thought if there were any 3rd party helper methods that would mimic existing ones but are tied to another JavaScript framework, such as jQuery. Also, please tell where usage of a...

How do you mock the session object collection using Moq

I am using shanselmann's MvcMockHelper class to mock up some HttpContext stuff using Moq but the issue I am having is being able to assign something to my mocked session object in my MVC controller and then being able to read that same value in my unit test for verification purposes. My question is how do you assign a storage collection...

ASP.NET MVC Html.Encode - New lines

Html.Encode seems to simply call HttpUtility.HtmlEncode to replace a few html specific characters with their escape sequences. However this doesn't provide any consideration for how new lines and multiple spaces will be interpretted (markup whitespace). So I provide a text area for the a user to enter a plain text block of information, ...

Url of Return View in ASP.NET MVC

In the context of this question link text is possible from a Controller that responds to a Form Post to go to the Friendly Url? ...

How should i make this ASP.NET MVC Route?

Hi folks, i wish to have the following url(s).. and i'm not sure how i should do the following: 1) Route registered in the global.asax 2) Controller method Urls/Routes - http://www.mysite.com/ - http://www.mysite.com/?page=2 - http://www.mysite.com/?tags=fooBar - http://www.mysite.com/?page=2&amp;tags=fooBar Please note - i do not ...

32-bit Build Server and 64-bit Production Server for .NET Web Apps

Our workstations are running 64-bit Vista, and the production servers for our ASP.NET MVC web apps are 64-bit Server 2008 servers. However, our build server running TeamCity is a Server 2008 32-bit server. We will taking these builds and deploying them on the 64-bit production servers. The applications are written all in C#. Should I...

Ajax.BeginForm, user controls and updating something...

I have a bit of a problem with user controls. Basically what I want to accomplish is the following: I have a view for editing an invoice. In this view I have a usercontrol with a list of invoice items I also have a div that is activated with jQuery for adding a new invoice item When I add the invoice item I want to refresh just the use...

[HandleError] attribute does not seem to act at all...

I am having problems using the [HandleError] attribute on my Controller Actions - it doesn't seem to work at all (i.e. it doesn't matter if the filter is there or not - I get the same results...). When an Exception is thrown, I get the standard red-toned Server Error in '/' Application error page instead of my custom view. I have found ...