mvc

Fat ASP.NET MVC Controllers

Hello, I have been reading about "Fat Controllers" but most of the articles out there focus on pulling the service/repository layer logic out of the controller. However, I have run into a different situation and am wondering if anyone has any ideas for improvement. I have a controller with too many actions and am wondering how I can ...

Umbraco or ASP.NET MVC

I'm about to create a site that will act as public front site of company that sells furniture, but after user log in, he'll see much more options. Internal news, files to download, customized pricings, newsletters, etc. - stuff for wholesale clients. I want to make it quickly and maintain/extend it easily. I'm asp.net developer and w...

How to store array in session in ASP.NET MVC?

Can you please tell me how to store an array in session and how to retrieve that array from session? I am trying to store one array of type Double and assigning values of the same type but it is showing me an error. How do I assign values to the array which is in session? I am using ASP.NET MVC. ...

Amend field - nvarchar(12) to nvarchar(20)

I've been let down by my Programmer, so I need to change a field size myself today. Basically, a field is limited to 12 characters on a form which I need to change to 20. I've logged on to the SQL database and changed it there, but its still not working on the main site. I've been told I need to change it in FluentNHibernate, but I've ...

How to organized page specific CSS link tags with spark view pages and application.spark

I'm currently using ASP.NET MVC 2 and the spark view engine. The main master page (application.spark) contains all of the CSS link tags that need to be present for all pages (global stuff). However, I have some content pages that have page specific CSS tags and currently I'm just sticking the link tag in the body as something like: <c...

Script globalization of MicrosoftAjax.js in ASP.NET MVC

Hi, Could you write where I can find (or where you found ;)) globalization files (e.g. zu-ZA.js), I can't find that files in Microsoft AJAX Library 3.5. Best regards, Michał ...

mvc 2.0 updatemodel and my ID Column

Hello, I have created a create view within my MVC 2.0 Application and by default it included a field for the integer ID Column. This is definitely a field i do not need. If i remove the field and use updatemodel when trying to create the object in code, will something break because it doesnt see my ID column data being passed in, even...

Publish MVC v1 C# application through Cruise Control

I am attempting to publish a 3.5 MVC website on my build server through cruise control. Having looked around on the net it appears you need to wrap the ASP Net Compiler. I was hoping that this task can be called through MSBuild. Any ideas on how this is done? ...

MVC, can model save/load its data?

Quick question, my data model is a singleton object and it contains a list of names that I want to archive. My idea is to make the model responsible for loading and saving it's own data. The model's load method will be called by the ViewController's viewDidLoad method and save by the ViewController's applicationWillTerminate. I could do ...

.net MVC, dealing with json and Areas

When not using areas dealing with the url for the JsonResults from the clientside is not much of a pain, usually you can get away with hardcoding the url into your json calls and get away with it. Problem arises when you have different areas and you don't want to update all your links when you move a controller (and its views) from one a...

Where is this System.MissingMethodException occurring? How can I tell?

I am a newbie to ASP.NET MVC (v2), and I am trying to use a strongly-typed view tied to a model object that contains two optional multi-select listbox objects. Upon clicking the submit button, these objects may have 0 or more values selected for them. My model class looks like this: using System; using System.Web.Mvc; using System.Col...

How can I present a modal view controller after selecting a contact?

Hey everyone, I'm trying to present a modal view controller after selecting a contact and it doesnt seem to be working. In my - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person method, I dismiss peoplePicker, create an instance of my new...

source code generate rss xml file in asp.net mvc using entity model

can anybody please give me readymade application of asp.net mvc in which rss xml file is generated dynamically,and also database structure by using entity model? thank you. ...

C# Reflection StackTrace get value

I'm making pretty heavy use of reflection in my current project to greatly simplify communication between my controllers and the wcf services. What I want to do now is to obtain a value from the Session within an object that has no direct access to HttpSessionStateBase (IE: Not a controller). For example, a ViewModel. I could pass it in ...

ASp.Net Mvc 1.0 Dynamic Images Returned from Controller taking 154 seconds+ to display in IE8, firefox and all other browsers fast and easy.

I have a curious problem with IE, IIS 6.0 dynamic PNG files and I am baffled as to how to fix.. Snippet from Helper (this returns the URL to the view for requesting the images from my Controller. string url = LinkBuilder.BuildUrlFromExpression(helper.ViewContext.RequestContext, helper.RouteCollection, c => c.FixHeight(ir.Filename, ir.A...

Pass Dictionary of routeValues to ActionLink

All, Getting to grips with ASP.NET MVC. So far, so good, but this one is a little nuts. I have a view model that contains a dictionary of attributes for a hyperlink, used like this: menu = model variable Html.ActionLink(Html.Encode(menu.Name), Html.Encode(menu.Action), Html.Encode(menu.Controller), menu.Attributes, null) The proble...

jqGrid Filter Toolbar initial default value

I'm using jqGrid with the filter toolbar, i need to set an initial default filter value to one of the fields so that only rows with status 'Open' are displayed by default, but the user can display Closed rows if desired. At the moment i have a workaround like this setTimeout(function() {$('#gs_Status').val('Open');$("#eventsGrid")[0].t...

Good MVC framework for AS3

Do you know a decent MVC framework for AS3? I am currently looking into PureMVC but I need some reassurance that it's the best choice. Do I really need to use a framework? or would it be better for me to implement MVC myself? ...

What is Restful Routing?

I have been searching pretty hard for info out on the net to explain exactly what Restful routing is but I haven't had any success. There are a lot of resources but not a who lot make sense to me. I'm familiar with Ruby On Rails's routing system and well as how Code Igniter and PhpCake route things but is there more to it than having a...

ASP.net MVC Routing problem

I have deployed my ASP.net MVC site to a shared hosting company. The problem is that now none of the pages except for the home page work. For example if I go to /Account/Register I get a page not found. However, if I go to /Account/Register/Index.aspx then it does work. I have tried modifying the routing to add in that index.aspx but...