asp.net-mvc

Repository pattern with a WCF Rest Service and returning IQUERYABLE using LINQ to OBJECTS?

Hi there, i wish to create a repository pattern but with a WCF Rest Service which controls the data access. Can anyone confirm or help with my thinking / config. ASP.NET Controllers call to service (not rest service but service of a repository pattern) Repository Pattern Service >> calls to repository Repository >> calls to WCF Rest S...

QR Code generation in ASP.NET MVC

Is there a .NET API that generates QR Codes such as this one? I'd like to display these on pages that I expect my users to print out. ...

jqGrid ASP.NET MVC

I am able to display my records on jqGrid however the paging is not working. I have 90 records in total and its always showing the first 10 records even though the page number did increase. I had checked the return values to jqGrid from my method and it did show a different set of records being sent to jqGrid but jqGrid is not able to di...

ASP.NET MVC Generic templating and collections

Is is possible to apply an attribute to a collection, and then detect this when iterating through the collection members using ViewData.ModelMetadata.Properties ? I would like to apply an attribute to the collection to specify whether items in the collection should be displayed in their entirety or not. I want to then detect this in th...

Displaying information from Twitter and Database in DateTime order

I am working on a ASP.Net MVC website and I am querying Twitter's API to return data. I also have a database backend which returns posts for a blog. How can I put this data in date order and parse it to the view? At the moment I am using http://tweet.seaofclouds.com/ which puts data into a div via jQuery however I now have this added n...

How to place logic for several different roles in ASP.net MVC 2

Hello fellow developers, I am a bit new to ASP.NET MVC and I have a bit of an ordeal. I am developing a website with several roles in it and of course the logic and gui that the user gets depends on the role (duh). There are 10 separate roles in this application. They do share most of the same functionality but some screens will be di...

ASP.NET MVC Multithreading

Hi everyone, I want to implement such logic in my asp-net-mvc application: user clicks a button -> server executes some time-consuming logic in ~15 threads (i get data from really slow independent sources) -> when all work is done, server merges the results and passes it back to user The other day i've seen an article which explain...

Html.Hidden builds wrong value data in MVC 2 app

I am using an id value that I pass in a hidden field. When the user submits the form I need the hidden field for my update. After the update, a new value is placed in the hidden field in the model and sent back to the view. What seems so strange is the helper always uses the first value, never updates. For example, look at the following ...

Verify user Twitter authorization when loading the Authorization cookie

Hi, I'm creating an MVC web site, and I want to mix forms authentication (the built in authentication) with Twitter authentication in my site (eventually it will have Facebook/Google authentication too). The approach I'm taking is this: - I let the logic to create users and validate users/passwords from the Forms authentication as it ...

ASP.NET MVC built-in membership vs session

Hi, Just spent the last 3 days exploring membership, iprincipal, identity and other goodies..but something is still not clear. Why it is better to use that incited of simply store a minimize logged in user object in session? it can hold roles, permissions and other custom properties. to achieve the same thing the asp.net form auth way ...

Accessing a database object (and other important data) in the View

I know it's a bad practice to use database in the view. However, I'm also passing the User object and I wonder how I can make it easy to use. I love the way it works in Ruby On Rails. You just create an @instance_variable in before_filter and call it from the controllers and from the views. You can't do this in ASP.NET MVC though. So I...

Using IIS7 URL Rewrite with MVC without access to webserver

http://learn.iis.net/page.aspx/469/using-rewrite-maps-in-url-rewrite-module/ I have a website hosted at www.hostedsite.com/here, and need to use the subdomain foo.bar.com. The issue im having is when you navigate using any of the links, the url changes to foo.bar.com/here/whatever with 'here' being the folder name coming through. I was ...

When will Mono support System.ComponentModel.DataAnnotations??

I've been trying asp.net mvc on mono and the data annotation throws a not implemented exception, does anyone know when will Mono support this? According to this page http://www.go-mono.com/status/status.aspx?reference=4.0&profile=4.0&assembly=System.ComponentModel.DataAnnotations, it's almost finished... ...

Using Server.MapPath() inside a static field in ASP.NET MVC

I'm building an ASP.NET MVC site where I'm using Lucene.Net for search queries. I asked a question here about how to properly structure Lucene.Net usage in an ASP.NET MVC application and was told that the best method is to declare the my IndexWriter as public static, so that it can be re-used. Here is some code that is at the top of my ...

Warning for limited Access

This is regarding ASP.NET MVC. Let's say I have a web site that is accessed publicly name as "www.welcomeeveryone.com". There is also a web site name as "www.companyemployeeonly.com" that is allowed only for certain range of IP address. Employees have to go to "www.welcomeeveryone.com" first in order to have a link for "www.companyemploy...

asp.net mvc - return view doesn't fire the code... url wrong

I have following code that is accepting a form submission [ActionName("TestingTemp"), AcceptVerbs(HttpVerbs.Post)] public ActionResult TestingTemp(FormCollection result) { string cat = ""; return View("Try"); } Now the problem is even though it seems to load "Try" page, things...

ASP .NET or MVC3

Possible Duplicate: Biggest advantage to using ASP.Net MVC vs web forms Which would you pick if developing a new application? ...

asp.net mvc tags: <%: %> vs. <%= %>

As far as I can tell, both of these tag types do the same thing. Which is preferred to use? ...

How to handle application shutdown in Quartz.Net

I have used Quartz.Net for queuing and sending emails from my application. I don't know how each scheduled job responds to application instance stopping, pausing or shutting down. The IJob interface has no method that can notify a running job about these events. My question is how can I handle these cases when they occur so that the job...

ASP.NET MVC Store TempData in Cookie

Is there a way to let TempData store in a browser's cookie instead of Session State. I have Session State disabled on my site. Thanks. ...