Does anyone have any good techniques for easily switching between development and live builds for asp.net mvc websites? Every time I make some changes I need to change to go through my web.config and comment out all my local stuff and uncomment all my remote settings. I also need to update the linq-to-sql dbml file to point to the right ...
I am using ASP.NET MVC 1.1 with Windows authentication. I trying to only authorize members of a group and myself. I am not a member of the group and would not need to be a member of this group. I am getting windows login/password prompt every time I access the URL of the web app. The HomeController has
[HandleError]
[Authorize(Roles=...
ASP.NET MVC 2 app
I have two actions on my controller (Toons):
[GET] List
[POST] Add
App is running on IIS7 integration mode, so /Toons/List works fine. But when I do POST (that redirects to /Toons/List internally) it redirects (with 302 Object Moved) back to /Toons/Add.
The problem goes away if I use .aspx hack (that works ...
are sessions per user?
eg.
Session["Name"] means different things to different users.
do i understand it correctly?
...
I have a MasterPage that has ViewData passed to it. I would really like to cache only the MasterPage for performance reasons. But I do not want to cache the actual page that is loading with the MasterPage.
I believe this can be done in web forms by adding code in to the Page_Load event. Does anyone know of a similar technique using ASP....
I have a controller with the following two Edit methods. The edit form displays correctly with all additional dropdown lists from the FormViewModel. However, when I changed some field values and submitted the form. None of the changed fields were saved. The fields in the postbask collection have default or null values. I have another...
I have a bit of a situation I am currently using Jquery SimpleModal to do various dialogs on my site like for instance the logon dialog.
I'm also doing an Ajax.BeginForm helper.
Now everything works great and all but, what I need to know is what do I need to do to say close the modal when the user was sucessful at logging in..
I trie...
I have a page with jquery tabs in which the user can update their Profile, Password, General in each tab.
When a user update the details in "General" tab, the post action will be called and it should retain the "General" tab back.
It can be accessed directly by calling like http://localhost:8742/User/Settings/10#General. In the url 10...
Anybody aware of a best practices or example project out there that uses ASP.NET MVC and LLBLGEN (selfservicing or adaptor)? Possibly something similar to S#arp Architecture.
I'm new to MVC and I'm constrained to using LLBLGEN.
...
I have a partial view (Partial.ascx), two master pages(Master1.Master and Master2.Master) and two Views(Page1.aspx and Page2.aspx) in my asp.net mvc (C#) application. I have referred different style sheet for each master page.
When i show the partial view (Partial.ascx) as thickbox in View(Page1.aspx) whose Master page is Master1.Maste...
I have a method which will return JsonResult or RedirectToRouteResult based on some conditions in my asp.net mvc (C#) application.
The RulesException can be shown in <%= Html.ValidationSummary()%>, if i use return RedirectToAction(.....).
How can i show the rules exceptions in ValidationSummary when i return it as JsonResult?
...
I'm having difficulty making IIS 7 correctly compress a Json result from ASP.NET MVC. I've enabled static and dynamic compression in IIS. I can verify with Fiddler that normal text/html and similar records are compressed. Viewing the request, the accept-encoding gzip header is present. The response has the mimetype "application/json", bu...
I have a link (well a few different links actually) that target FileContentPath actions that return pdf/excel files etc that are generated in the controller. problem is that I want these actions to receive the formcollection as well that may be changing all the time depending on the users interaction with the page. Is there a workaround ...
I am working on a project involves exposing many data entities (more than 200) through an ASP.NET MVC application.
I do not want to write views for every entity mode and I am wondering if there is a way of having one generic view to display different models (for example, a view which reads the model properties(metadata) and generates a H...
I have few pages that quite similar to the others but one of them doesn't work.
When I write 'http://localhost:2265/Segment/' I get annoying error message "Server Error in '/' Application.
The resource cannot be found."
Other pages like 'http://localhost:2265/User/' works very well AND also 'http://localhost:2265/Segment/Create'. So I...
I am using Reportviewer in my asp.net mvc (C#) application. In IE and Firefox, the reportviewer looks fine.
But in Chrome, the header and body gets shrinked. I was able to correct the header display problem as suggested in http://www.mazsoft.com/blog/post/2009/08/13/ReportViewer-control-toolbar-in-Google-Chrome-browser.aspx.
if ($.br...
Right now, users click a button with JQuery. It dynamically adds a new form everytime. I need a way in JQuery or C# that can update the index so that is has the following format. The html is being created in a user control in ASP.NET MVC. I have tried using a string for the indexes but it does not Model Bind it correctly. I have read the...
Ok this has been asked before but there is no solid solution out there. So for purpose of myself and others who may find this useful.
In MVC2 (Asp.net) I want it so when somone navigates to the website, there is a default area specified. So navigating to my site should send you to ControlerX ActionY in AreaZ.
Using the following route ...
After browsing the MVC section on CodePlex I noticed that the [Authorize] attribute in MVC returns a HttpUnauthorizedResult() when authorization fails (codeplex AuthorizeAttribute class).
In the source of HttpUnauthorizedResult() from CodePlex is the code (I'm not allowed to enter another URL as my rep isn't high enough, but replace t...
I want to be able to send JSON as opposed to the standard QueryStrings when making a post to my controllers in ASP.Net MVC. I have the Front-End stuff working fine (building and then submitting my JSON objects).
The problem is on the controller side where the default ModelBinders that ship with the MVC framework do not support this.
I...