asp.net-mvc

How can I provide a textbox that filters results in real time using ASP.NET MVC and jQuery (NOT autocomplete)?

I'm looking to something similar to how the Stackoverflow Users page allows you to type in a username and it filter the users below in real time. I'm using ASP.NET MVC and jQuery. Can someone point me to a simplified example that uses this technology stack to do the same thing? ...

ASP.NET MVC 2.0 Prev 1 and SPARK??

I am trying to upgrade the ASP.NET MVC 1.0 application to 2.0 preview 1. I am using the spark as view engine. issue: Spark used the System.Web.MVC 1.0.0.0 so I got the source code and recompiled using the 2.0.0.0 and used the new assembly. Now I am getting the different error as follows: Could not load file or assembly 'Microsoft.Web....

ASP.NET MVC - Alternative to Using Session

I have an ASP.NET MVC view that uses jquery.Uploadify to post files to one of my controllers for use in my application and one of the side effects I noticed with Uploadify is that when the Flash file Uploadify uses to submit files to the server posts to my controller it gets its own SessionID from ASP.NET. This would be fine, of course, ...

Asp.Net MVC - Plugins Directory, Community etc?

Good evening everyone, I am currently starting to dive into asp.net mvc and I really like what I see so far.. BUT I am somewhat confused about 'drop-in' functionality (similiar to what rails and it's plugins and nowadays gems are), an active community to contact etc. For rails there's github with one massiv index of plugins/gems/code-e...

User.Identity.Name casing issue

I'm using ASP.NET MVC 1.0 along with the Oracle ASP.NET Membership Providers. I'm running into a case sensitivity problem. When a user logs into the system, it appears that the Membership provider sets the User.Identity.Name value to whatever the user typed in. That is, if I created the user as Foo and the user logs in as fOo then eve...

Easiest/best way to make generated file available for download in ASP.Net MVC

Hello, I am developing an ASP.NET MVC website. The reporting is done by SQL Server Reporting Services. I know how I can make a PDF file out of a report without showing it, yet I'm not sure what's the easiest/best way to store this file an make it available for download in MVC or send it via email (out of MVC). Any help or direction wou...

How to run Integration Testing on DB through repositories with LINQ2SQL?

How do you go about integration testing your database through your domain layer/model (repositories) that uses LINQ 2 SQL in the implementation and leave the DB as you found it? In other words, the ideal world of unit testing the DB, the integration test would leave the DB as it found it. Are there tools out there that will handle this...

What am I missing with my Entity Framework?

Hi I have asp.net membership and I use the built in Create user method since it is convenient now after this depending on the user I want to add 2 more fields to the aspnet_UserTable. In my aspnet_user Table I have like this // All Standard Fields that come with this table ClubID<nullable) ClubName <nullable) I have a table that re...

Modelbinding for empty query string parameters in ASP.NET MVC 2

The behavior described here appears to now be the default for ASP.NET MVC 2 (at least for Preview 1). When modelbinding a querystring like this : ?Foo=&Bar=cat The following binding occurs (assuming you're binding to a model with 'Foo' and 'Bar' string properties) ASP.NET MVC 1 model.Foo = ""; model.Bar = "cat": ASP.NET MVC 2...

Persisting/caching data between requests - common approach

I'm developing an Asp.net (MVC but this doesn't really matter) application. I have a custom IHttpModule that's responsible for the PostAuthenticateRequest to change user principal & identity. I'm storing UserID and UserName in authentication cookie when user logs-in. I have an IUser (implemented by DAO and Business Objects layer, each w...

Route all controller actions to a single method, then display a view according to action name

Basically I have a bunch of submission forms that gather data in a generic way -> serialize the input / value pairs to a CSV file. I'd like to add new submission pages without having to write a new controller action (the idea being I wouldn't have to compile and deploy a new assembly). So, here's my thinking: http://foobar.com/Submiss...

How to pass a JSON date value via ASP.NET MVC?

ASP.NET Json() formats and returns a date as {"d":"\/Date(1240718400000)\/"} which has to be dealt w/ on the client side which is problematic. What are your suggestions for approaches to sending date values back and forth? Thanks ...

Unnecessary files remaining after Publish

When I do a 'Publish' on my ASP.NET MVC website, I'm finding unnecessary empty folders in the publish folder. This is annoying because I have to manually delete them so they don't get uploaded through FTP. This happens even when I select the following radio-buttons: Delete all existing files prior to publish Copy Only files needed t...

Pass HttpPostedFileBase as an Argument

I have an application that allows users to upload word and pdf documents. I also have a class in my model that gathers some metadata about the file (i.e., file size, content type, etc.). I want to centralize some of the "save" functionality (both saving the metadata to the database, and saving the actual file to the server). I would l...

Are there any projects with source code to download, developed in mvc framework ?

I need a project developed in asp.net MVC framework to study. ...

jQuery AJAX Responses in ASP.NET MVC

Not even sure if this is the right way to title the question. I know I'm making my AJAX calls all wrong... here's what I'm doing right now (I'm using ASP.NET MVC backend by the way): I use jQuery.ajax to post some data to an action, which will load a view that I capture in the response. It's basically providing some data to an action, a...

How to get a related object sorted with Entity Framework for ASP.NET MVC

Having two classes like Blog and Post, in Entity Framework (and LINQ-to-Entities), how can you get the blogs with the posts sorted by date. I was getting the blogs with the posts this way: from blog in db.BlogSet.Include("Posts") select blog and now I'm forced to do this: public class BlogAndPosts { public Blog Blog { get; set; }...

Insert value into selectlist

I need to insert a value into a selectlist. It isn't the "0" value (i.e. the first one that shows) but the next one which would be "Other". This is then used to display an "Other" textbox. My question is similiar to link text. EDIT: I don't know if this will help but here is the code: SelectList Titles; ViewData["Titl...

Develop web project using ASP.NET MVC ver 1

Does anyone have an experience with developing a big web app using ASP.NET MVC ver 1? If yes: What troubles can be expected? What are the biggest risks? What are the main points the attention should be paid for? Is there any alternative for ASP.NET MVC right now? And how reasonable this can be? Thanks in advance ...

Using ajax with asp.net mvc

I am a begineer in MVC and i need to know is it easy to use ajax with asp.net mvc ? i mean that if it is like asp applications when using ajax(JS file,web service or ajax toolkit)? I didn't try it b4 but what i need to know how can i use ajax with mvc application and i hope from any one give me an answer and put a link for articles about...