Sign In
Ricka on MVC and related Web Technologies
Interesting tidbits on MVC and Dynamic Data not found in MSDN.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
ASP.Net
Connection String
Dynamic Data
MVC
Archive
Archives
March 2012
(2)
February 2012
(1)
January 2012
(2)
November 2011
(1)
August 2011
(2)
July 2011
(1)
May 2011
(2)
April 2011
(2)
March 2011
(1)
February 2011
(2)
January 2011
(1)
August 2010
(2)
December 2009
(2)
November 2009
(1)
October 2009
(3)
August 2009
(2)
July 2009
(1)
June 2009
(1)
January 2009
(1)
December 2008
(2)
November 2008
(1)
October 2008
(1)
September 2008
(1)
MSDN Blogs
>
Ricka on MVC and related Web Technologies
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Ricka on MVC and related Web Technologies
Securing your ASP.NET MVC 4 App and the new AllowAnonymous Attribute
Posted
2 months ago
by
Rick_Anderson
5
Comments
Executive Overview You cannot use routing or web.config files to secure your MVC application. The only supported way to secure your MVC application is to apply the Authorize attribute to each controller and use the new AllowAnonymous attribute on...
Ricka on MVC and related Web Technologies
Response.Redirect and ASP.NET MVC – Do Not Mix
Posted
2 months ago
by
Rick_Anderson
0
Comments
If you search on Response.Redirect , you’ll find the recommendation to avoid the call for performance reasons caused by the ThreadAbortException thrown. But if you use Response.Redirect(url, true) in an MVC application, no exception is thrown...
Ricka on MVC and related Web Technologies
JSON Serialization / Deserialization of DateTime Not Equal
Posted
3 months ago
by
Rick_Anderson
2
Comments
I recently used the DataContractJsonSerializer to serialize a class. I noticed that for a DateTime field, the deserialized result appeared identical to the original value, but the equals operator failed. The following simple program reproduced the...
Ricka on MVC and related Web Technologies
ASP.NET MVC DropDownList, MultiSelect and jQuery
Posted
3 months ago
by
Rick_Anderson
1
Comments
The most frequently posted question in the ASP.NET MVC forums is about how to use the DropDownList ( DDL ) helper. To address this question, I wrote the tutorial Using the DropDownList Helper with ASP.NET MVC , which covers most DropDownList scenarios...
Ricka on MVC and related Web Technologies
Cascading DropDownList in ASP.Net MVC
Posted
4 months ago
by
Rick_Anderson
15
Comments
I have written a simple sample showing how to implement cascading drop down lists in ASP.Net MVC. In this sample the user is presented with a list of countries. Once a country is selected, a new drop down list is appears showing the states...
Ricka on MVC and related Web Technologies
Debugging HTTP 500 - Internal server error with Windows Azure SDK
Posted
6 months ago
by
Rick_Anderson
1
Comments
I was working on a lab using the Windows Azure SDK when I got 500 server error Not a descriptive error message. The Windows Azure Tools for Microsoft Visual Studio (WATVS) creates a new application pool and web site on the fly when you run your Web application...
Ricka on MVC and related Web Technologies
Using the HTML5 and jQuery UI Popup Calendar with ASP.NET MVC
Posted
8 months ago
by
Rick_Anderson
0
Comments
Motivated by Rachel Appel’s terrific blog post Create user friendly date fields with ASP.NET MVC EditorTemplates & jQueryUI , I created a full featured article on the topic. You can find my article here . In addition to the great information...
Ricka on MVC and related Web Technologies
ASP.NET MVC Dynamic Universal Map of Resources
Posted
9 months ago
by
Rick_Anderson
3
Comments
I’m pleased to introduce the new ASP.NET MVC Content Map . I’m calling this a dynamic map because I work on updating it weekly, and I plan to publish the new map monthly. If you go to the bottom of the page, it shows (as of this blog posting): ...
Ricka on MVC and related Web Technologies
Should my database calls be Asynchronous Part II
Posted
10 months ago
by
Rick_Anderson
0
Comments
A frequent question in the forums and internally at Microsoft is Should my database calls be Asynchronous? My short answer to this; if you have to ask, probably no. My blog entry on the question, Should my database calls be Asynchronous? is still...
Ricka on MVC and related Web Technologies
Using CDNs and Expires to Improve Web Site Performance
Posted
over 1 year ago
by
Rick_Anderson
3
Comments
Much has been written on the advantages of using a Content Delivery Network (CDN) to deliver static content ( jQuery , images, CSS files, etc.). (If you’re not familiar with CDNs, read ScottGu’s blog post Announcing the Microsoft AJAX CDN ...
Ricka on MVC and related Web Technologies
Securing your ASP.NET MVC 3 Application
Posted
over 1 year ago
by
Rick_Anderson
18
Comments
Executive Overview You cannot use routing or web.config files to secure your MVC application. The only supported way to secure your MVC application is to apply the [ Authorize ] attribute to each controller and action method (except for the login/register...
Ricka on MVC and related Web Technologies
Better, Faster, Easier SSL testing for ASP.NET MVC & WebForms
Posted
over 1 year ago
by
Rick_Anderson
5
Comments
ScottHa has a great blog Working with SSL at Development Time is easier with IISExpress , but I’ve got what I think is a better approach. Please weigh in. In this blog entry I’ll show you how to test SSL on your ASP.NET MVC & WebForms applications...
Ricka on MVC and related Web Technologies
Test your ASP.NET MVC or WebForms Application on IIS 7 in 30 seconds
Posted
over 1 year ago
by
Rick_Anderson
4
Comments
A frequent complaint in the ASP.NET forums is that an application works fine with Cassini (AKA, the built in Visual Studio Development Server), but fails when deployed to a real IIS server. The two most common reasons for this failure are: Cassini runs...
Ricka on MVC and related Web Technologies
Enabling IIS 7.X on Windows 7, Vista SP1, Windows 2008, Windows 2008/R2
Posted
over 1 year ago
by
Rick_Anderson
4
Comments
To set up IIS to run ASP.NET applications (including MVC 3 and Web Matrix): Install the Microsoft Web Platform Installer 3.0 from here . Run the Web Platform Installer (WPI) and select Products on the top and Server in the left pane. Click...
Ricka on MVC and related Web Technologies
Handling Optimistic Concurrency Exception with EF and MVC 3
Posted
over 1 year ago
by
Rick_Anderson
4
Comments
I've written a simple MVC 3 application to demonstrate handing optimistic concurrency exceptions with Entity Framework (EF). Browsers make it easy to test optimistic concurrency; right click on an edit link and select Open in New Tab , then select the...
Ricka on MVC and related Web Technologies
Using MVC 3 with non-English Locales
Posted
over 1 year ago
by
Rick_Anderson
5
Comments
If you normally work with a locale other than English, you need to include the correct locale-specific jQuery scripts, which you can download from the following URL: http://plugins.jquery.com/node/8/release For example, for German locales, you need to...
Ricka on MVC and related Web Technologies
Dynamic V Strongly Typed Views
Posted
over 1 year ago
by
Rick_Anderson
5
Comments
There are three ways to pass information from a controller to a view in ASP.NET MVC 3: As a strongly typed model object. As a dynamic type (using @model dynamic) Using the ViewBag I’ve written a simple MVC 3 Top Blog application to compare and contrast...
Ricka on MVC and related Web Technologies
Securing your MVC Application
Posted
over 2 years ago
by
Rick_Anderson
1
Comments
Executive Overview You cannot use routing or web.config files to secure your MVC application. The only supported way to secure your MVC application is to use a base class with an [ Authorize ] attribute, and then have each controller type subclass...
Ricka on MVC and related Web Technologies
Secure or a Security Hole, hardening your Area
Posted
over 2 years ago
by
Rick_Anderson
0
Comments
This blog has been replaced by Securing your MVC Application
Ricka on MVC and related Web Technologies
Session less MVC Controller for MVC 2 / RC
Posted
over 3 years ago
by
Rick_Anderson
0
Comments
LiveJournal Tags: MVC , MVC 2 , session Why a session less controller? Update 5 Feb 2010 – The latest MVC 2 futures on CodePlex contains the the RenderAction() fix – this sample is no longer needed for a session less controller. Use the futures version...
Ricka on MVC and related Web Technologies
Using the BeginMethod/EndMethod pattern with MVC
Posted
over 3 years ago
by
Rick_Anderson
0
Comments
If your asynchronous action method calls a service which exposes methods using the BeginMethod() / EndMethod() pattern , your callback will be executed on a thread which is not under the control of ASP.NET. Some consequences of this are that HttpContext...
Ricka on MVC and related Web Technologies
Should my database calls be Asynchronous?
Posted
over 3 years ago
by
Rick_Anderson
2
Comments
Long running/expensive database calls might seem like a natural candidate for asynchronous calls. In my MSDN article, Using an Asynchronous Controller in ASP.NET MVC , I go out of my way to avoid suggesting DB calls are good candidates. Conventional...
Ricka on MVC and related Web Technologies
Tips on getting your ASP.NET MVC questions answered quickly
Posted
over 3 years ago
by
Rick_Anderson
3
Comments
When you run into an issue or have a question about ASP.NET MVC the best place for it is the MVC Forum . When you write your question, there are a few simple things that you can do to make it easier for the ‘experts’ to answer (and hence to get...
Ricka on MVC and related Web Technologies
MVC FAQ
Posted
over 3 years ago
by
Rick_Anderson
1
Comments
Please post corrections/submissions to the MVC Forum . Include MVC FAQ in the title. MSDN articles with Full project samples (vb and c#) (MVC 2) MVC Best Practices Kazi Manzur Rashid's MVC Best Practices (great 2 part series) Performance Security...
Ricka on MVC and related Web Technologies
Client Side Validation for MVC 2 P2
Posted
over 3 years ago
by
Rick_Anderson
0
Comments
MVC 2 Preview 1 added support for DataAnnotations . In my MSDN article How to: Validate Model Data Using DataAnnotations Attributes I covered the basics of validation. Preview 2 adds client validation with the addition of one line of code. The following...
Page 1 of 2 (35 items)
1
2