26 items found in the ASP.NET MVC Category
The SimpleMembershipProvider, Secure Passwords And The Crypto Helper
Mikesdotnetting
-
27 September 2012 13:39
Some people have questioned the security of the ASP.NET SimpleMembershipProvider's storage of passwords. The cause for concern seems to stem from the fact that the PasswordSalt field in the standard membership table is unused by the SimpleMembershipProvider, whereas it is used by, for example, SqlMembershipProvider. So what is the PasswordSalt field, and why should the fact that it isn't used raise an eyebrow?
Click to read more about The SimpleMembershipProvider, Secure Passwords And The Crypto Helper ...
Filed under:
ASP.NET MVC
ASP.NET Web Pages
WebMatrix
as
Tutorial
Viewed: 10052 times
Cannot use a lambda expression as an argument to a dynamically dispatched operation
Mikesdotnetting
-
18 September 2012 08:08
Since the introduction of the Web Pages framework, ASP.NET has been making use of the dynamic type introduced in C# 4.0. Along with that comes some new error messages which at first glance don't make a lot of sense - mainly because they are unexpected. I have already looked at how dynamics do not support extension methods, and a recent question in the ASP.NET forums illustrated another way in which the dynamic type can catch you out.
Filed under:
LINQ
ASP.NET MVC
ASP.NET Web Pages
WebMatrix
as
Tutorial
Viewed: 7344 times
View Model Design And Use In Razor Views
Mikesdotnetting
-
26 May 2012 23:21
The recommended practice for transferring data to and from views in ASP.NET MVC is to use a View Model. But what is a View Model? How to you design one and how should they be used? This article attempts to provide answers to those questions.
Click to read more about View Model Design And Use In Razor Views ...
Filed under:
ASP.NET MVC
Razor
as
Tutorial
Viewed: 22809 times
Nested Layout Pages with Razor
Mikesdotnetting
-
17 December 2010 13:27
Razor Layout pages are the equivalent to MasterPages in ASP.NET Web Forms and the Web Forms View Engine within ASP.NET MVC. Just as it is possible to nest MasterPages, it is also possible to nest Razor Layout pages. This article explores the process required to achieve nesting of Layout pages using the Razor View Engine in MVC 3, or WebMatrix Web Pages sites.
Click to read more about Nested Layout Pages with Razor ...
Filed under:
ASP.NET MVC
ASP.NET Web Pages
WebMatrix
Razor
as
Tutorial
Viewed: 52579 times
Named Anchors And MVC Urls
Mikesdotnetting
-
14 June 2010 10:15
Named Anchors are used to generate links to specific locations within a web document. Unless you are careful, you may end up having a little trouble getting these to work using the MVC LinkExtension helpers.
Click to read more about Named Anchors And MVC Urls ...
Filed under:
ASP.NET MVC
as
Snippet
Viewed: 7481 times
Google Sitemap Generation From A Custom SiteMapResult
Mikesdotnetting
-
31 May 2010 20:42
My previous article showed how to use a custom ActionResult and the classes within WCF to generate an RSS feed. There are no similar classes to help build a valid Google Site Map for an ASP.NET MVC application. So here's how your can build your own.
Click to read more about Google Sitemap Generation From A Custom SiteMapResult ...
Filed under:
ASP.NET MVC
as
Tutorial
Viewed: 5601 times
Rss Feed Generation From a Custom RssResult
Mikesdotnetting
-
31 May 2010 09:14
When I looked at producing RSS Feeds in ASP.NET MVC before, I used the ContentResult method to return XML. Best Practice suggests that you should create a new ActionResult if required. So this article looks at creating an RssResult, and a different way to generate the feed itself.
Click to read more about Rss Feed Generation From a Custom RssResult ...
Filed under:
ASP.NET MVC
as
Tutorial
Viewed: 5756 times
Validating the Contact Manager with MVC 2.0 And VS 2010
Mikesdotnetting
-
29 March 2010 22:17
The MVC 2.0 Framework was finally RTM'd on March 11th 2010, so I took the opportunity to update my Contact Manager application with some of its new features. While the focus of this article is validating the Model using DataAnnotations, I also touch on one or two other new features in the latest release.
Click to read more about Validating the Contact Manager with MVC 2.0 And VS 2010 ...
Filed under:
ASP.NET MVC
as
Tutorial
Viewed: 12084 times
ASP.NET MVC v. Web Forms Debate - My View
Mikesdotnetting
-
22 February 2010 21:53
It seems that the whole world (and Margate) is having its say on which is better - MVC or Web Forms. Scott Guthrie posted his views on technical debates in general, and then contributed his thoughts on MVC v. Web Forms. Ian Cooper has an interesting contribution to make to the debate too. Rob Conery (formerly of Microsoft) posted probably the most linked to opinion on the matter. (There - I've just added another link...) A lot of other blog posts around scream that MVC is better because its better. One even tries to posit the notion that some kind of score card approach can help you decide.
Click to read more about ASP.NET MVC v. Web Forms Debate - My View ...
Filed under:
General
ASP.NET 3.5
ASP.NET MVC
as
General
Viewed: 29306 times
ASP.NET MVC is not all about Linq to SQL
Mikesdotnetting
-
21 February 2010 08:21
Pretty much every sample application that illustrates ASP.NET MVC uses Linq To SQL or the Entity Framework as the data access method. I've seen a number of questions posted to the forums at www.asp.net asking if there are any alternatives, and indeed there are. This article will look at using plain ADO.NET within a data access layer to provide dynamic content to a typical small CRUD application.
Click to read more about ASP.NET MVC is not all about Linq to SQL ...
Filed under:
ADO.NET
ASP.NET MVC
as
Tutorial
Viewed: 46256 times
Get The Drop On ASP.NET MVC DropDownLists
Mikesdotnetting
-
07 January 2010 21:27
DropDownLists in ASP.NET MVC seem to cause a fair amount of confusion to developers fresh from Web Forms World. This article looks to provide you with all (well, most) of what you need to know to get your DropDownLists working in ASP.NET MVC.
Click to read more about Get The Drop On ASP.NET MVC DropDownLists ...
Filed under:
ASP.NET MVC
Razor
as
Tutorial
Viewed: 184856 times
ASP.NET MVC - Prevent Image Leeching with a Custom RouteHandler
Mikesdotnetting
-
25 December 2009 22:31
Have you ever noticed an unusually high number of requests in your web server log files for image files? It may well be that someone is linking to your images from their own site, and basically stealing your bandwidth. Here's how to implement a custom RouteHandler within an ASP.NET MVC application to prevent people leeching your images.
Click to read more about ASP.NET MVC - Prevent Image Leeching with a Custom RouteHandler ...
Filed under:
ASP.NET MVC
as
Tutorial
Viewed: 24713 times
ASP.NET MVC Uploading and Downloading Files
Mikesdotnetting
-
21 December 2009 22:29
If you come to ASP.NET MVC from a purely ASP.NET Web Forms background, one of the first things you are likely to notice is that all those nice easy Server Controls have disappeared. One of those is the FileUpload, and its absence seems to cause a few problems. This article looks at how to upload files to the server in an MVC world, and how to get them back from the server to the user again.
Click to read more about ASP.NET MVC Uploading and Downloading Files ...
Filed under:
ASP.NET MVC
as
Tutorial
Viewed: 160650 times
Book Review - Professional Enterprise .NET
Mikesdotnetting
-
28 October 2009 15:49
I reviewed an ASP.NET Architecture and Design book recently. It was OK. I felt it was a bit thin, and didn't cover topics beyond beginner level. Then I got sent a review copy of another book: Professional Enterprise .NET. Having read it, this is the book that the previous book should want to be when it grows up.
Click to read more about Book Review - Professional Enterprise .NET ...
Filed under:
ASP.NET 3.5
ASP.NET MVC
Book Review
as
General
Viewed: 6565 times
Displaying Google Analytics Data in ASP.NET
Mikesdotnetting
-
26 October 2009 22:30
If you have a Google Analytics account, you can use the Data Export API provided by Google to access your visitor stats, and retrieve them for use elsewhere. Here's how to display some stats in ASP.NET.
Click to read more about Displaying Google Analytics Data in ASP.NET ...
Filed under:
ASP.NET 3.5
ASP.NET MVC
as
Tutorial
Viewed: 50278 times


