Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:659959
More Search Options
RSS Available
Matching Posts
Re: How to send an HTTP-Status 404, 403, etc.. as json or xml in an MVC website?
Could you please elaborate on this? i must admit, I did have a look at this and was stuck on what to provide ... because i don't want a custom PAGE to redirect/display .. i've already defined/written the output i want. Example (web.config) code please? pretty please? @Dan : cheers :) that was just some pseduo code error while i was trying to cut away the real code *blush* to make this question lighter :) Now fixed :P
Posted to
ASP.NET MVC
(Forum)
by
pure.krome
on 9/17/2009
Re: How to send an HTTP-Status 404, 403, etc.. as json or xml in an MVC website?
* Polite bump *
Posted to
ASP.NET MVC
(Forum)
by
pure.krome
on 9/16/2009
How to send an HTTP-Status 404, 403, etc.. as json or xml in an MVC website?
Hi folks, i've got some simple Actions that return a JsonAction. nothing tough there. But, if there's a problem (eg. some exceptions are thrown) i wish to throw return certain HTTP status codes, like a 404 (resource not found), 500 (my code is bad and sucks), 401 (not authorised), etc. I got this idea from Twitter, here . It's not a new thing, but I sorta like it :) So, i tried making my own IExceptionFilter , called HandleErrorAsJson . That's not too hard, I thought :) I then have
Posted to
ASP.NET MVC
(Forum)
by
pure.krome
on 9/16/2009
Re: RedirectToAction<T> ...
Eilon - any news on this? I tried looking for one of these in the 'futures' dll but it's not there? Will there be one released soon? or a blog post so we can add it manually?
Posted to
ASP.NET MVC
(Forum)
by
pure.krome
on 4/6/2009
Re: Storefront & ASP.NET MVC RC1
- double post - :(
Posted to
ASP.NET MVC Storefront Starter Kit
(Forum)
by
pure.krome
on 3/24/2009
Re: Storefront & ASP.NET MVC RC1
Sure did Paul :) I thought this was the main reason people wanted to have Dependency injection. That was the first thing i saw DI being such a kewl thing, for me :) Then later I saw peeps use it for mocking, which is kewl also. If anything, I found it harder to do a simple in memory 'db' than a Linq2Sql one :P When i say DB, it's not at all. It's just a collection of IList<T> whatever's (eg. users, products, orders, inset-your-fav-stuff-here). The tough stuff was me trying
Posted to
ASP.NET MVC Storefront Starter Kit
(Forum)
by
pure.krome
on 3/24/2009
Re: Storefront & ASP.NET MVC RC1
Interesting post Paul :) One of the first things i also tried to do, from Rob's early incarnations of the StoreFront, was to see if i could make the entire app without the use of my SQL 2008 DB :) so when i was ready, i can then just use StructureMap to inject the SqlRepositories instead of the TestRepositories. It's also for Unit Testing .... the StoreFront taught me the difference between Unit (no db, with regards to data) and intergration (intergrate with a db, re: data).. because unit
Posted to
ASP.NET MVC Storefront Starter Kit
(Forum)
by
pure.krome
on 3/23/2009
Re: Storefront & ASP.NET MVC RC1
G'day Paul (and everyone else), i noticed the code sneaked into codeplex on the weekend so i checked it out, also :) Looks like i have a fair bit of catching up -- it's all confusing for me now :( ce la vie :) I hope Rob has at least one vid coming up, which can explain his refactor on a high level. Eg, what this infrastructure project is, etc. I know he talked about it a bit in his last (or 2nd last) vid, but now that he's finished the refactor, it would be good to get a refresh'd
Posted to
ASP.NET MVC Storefront Starter Kit
(Forum)
by
pure.krome
on 3/22/2009
Re: Storefront & ASP.NET MVC RC1
Awesomesauce Rob -- i just bought a new helmet because your new goodness is going to blow my mind .... !!!! :) (hmm.. that sounds ... really ... dodgy ... ) /me waits patiently :)
Posted to
ASP.NET MVC Storefront Starter Kit
(Forum)
by
pure.krome
on 3/1/2009
Re: 404 - Page cannot be found
>>but when i setup this website on IIS ver 5 (at the same computer) error 404 er.. why are u still using iis5? I'm not sure if this works on 5, but it's been tested against iis6 and iis7. If you're using Vista, then that's iis7. With iis6, you'll need to register the .mvc extension to get it to work. With iis7, it will just work, i believe.
Posted to
ASP.NET MVC Storefront Starter Kit
(Forum)
by
pure.krome
on 2/9/2009
Page 1 of 35 (348 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online