DevExpress Mail Demo (deprecated)

Update: This demo has been deprecated and the url now points to our native ASP.NET MVC Extensions, thank you.

Check out this demo which shows you how to use our current ASP.NET controls in an ASP.NET MVC environment.

Disclaimer: These are NOT ASP.NET MVC controls. Rather, they demonstrate how to use and leverage the current DevExpress WebForms ASP.NET controls in an ASP.NET MVC based website (more on this below). The good news is that we’re working on a native ASP.NET MVC control: MVCxGrid.

This demo is intended to show you how many of our current WebForms controls, which have a ton of functionality, can be used within ASP.NET MVC. Using the current controls means your previous investment still pays off, both in terms of the rich ClientSide-API, feature set, and your general understanding of the current controls.

Here’s a screenshot of the mail demo website that’s using the ASPxGridView (and several other DevExpress ASP.NET controls):



The ASP.NET team has created a slick demo application that shows how to use our current ASP.NET controls in an ASP.NET MVC environment.

Check out the sample here:

The MVC Mail demo is an online mail application similar in basic features to or So have fun playing around with it. And don’t worry about breaking the database because there isn’t one. Instead, this demo uses session state to persist the tiny amount of data. This allows you to tweak and bend the demo without us having to reset some database.

So go ahead and …

  • Compose new emails
  • Save email drafts
  • Delete emails
  • Move emails
  • Browse folders
  • Mark emails as read/unread
  • Add contacts to Address book
  • Delete contacts
  • Check for new mail Smile

And as you’re doing all these activities, check out the DevExpress controls used in the demo. For example, in the Inbox folder (or the Mail/List view), check out the ASPxGridView’s features. Try sorting, column moving, or filtering. These features work seamlessly in ASP.NET MVC.

The MVC Mail demo uses a ton of the DevExpress ASP.NET controls. Here’s a full list:

  • Grid View (ASPxGridView)
  • Combo Box (ASPxComboBox)
  • Html Editor (ASPxHtmlEditor)
  • Menu (ASPxMenu)
  • Navigation bar (ASPxNavBar)
  • Page control (ASPxPageControl)
  • Text box (ASPxTextBox)
  • Memo (ASPxMemo)
  • Label (ASPxLabel)
  • HyperLink (ASPxHyperLink)
  • Popup control (ASPxPopupControl)
  • Button (ASPxButton)
  • Upload control (ASPxUploadControl)


Because these are WebForms controls used in an ASP.NET MVC environment, there are some drawbacks. For example, it’s necessary to use the <form runat=server> which generates a little ViewState.

In the mail demo’s source code (web.config), you’ll see that the Pages->ViewState is set to false. However, in any ASP.NET page the Form element with server tag will generate a hidden field with a small amount of ViewState. And our WebForm controls require a server form even if our ASP.NET control’s ViewState is disabled.

Test Drive

Want to download this entire demo and test it in your development environment? Here’s what you do:

  1. First read this knowledgebase article: How to use DevExpress web components in ASP.NET MVC apps
  2. Then, grab either the C# or VB.NET versions of the code at the bottom of the knowledgebase article.
  3. Load the solution in your Visual Studio and have fun!

Skill Level

ASP.NET MVC is a new framework for ASP.NET projects which has some benefits (testing, separation of concerns). If you’ve never played with ASP.NET MVC before then I’d recommend checking out the introductory videos at I encourage developers at all levels to download and try our mail demo project in your local machines.

If you’re not interested in ASP.NET MVC then rest assured that the DevExpress ASP.NET controls will still work in your WebForms projects.


The ASP.NET MVC mail demo source code is completely free. You’ll need the DevExpress ASP.NET controls installed in your Visual Studio instance. And you can get a free copy of the fully-functioning trial here:

I look forward to seeing what kind of websites you create in ASP.NET MVC. So be sure to post any links and images of your ASP.NET MVC websites that use the DevExpress ASP.NET controls.

So what are you waiting for? Download the sample code and have fun.

DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now:





24 comment(s)

Pingback from  ASP.NET MVC Archived Buzz, Page 1

12 August, 2009

This is nice, but are you planning on native MVC controls rather than just retrofitting the current WebForms controls?

12 August, 2009

Hi Craig,


It depends on customer demand. We are working on a separate grid control for MVC though it's still in development:

12 August, 2009
Kyle Banashek

What product would I need to purchase in order to have all of the required components listed above?

12 August, 2009

Hi Kyle,

You want the DXperience ASP.NET Subscription which has ALL of our ASP.NET controls:

12 August, 2009

Hi all. So, the guys from Developer Express can't be far behind, actually today they also announced officially

12 August, 2009

Pingback from  The ASP.NET Capsule #22: Official Support for ASP.NET MVC by DevExpress | I love .NET!

12 August, 2009

Example of retrofitting ASP.NET Webform Server Controls in an ASP.NET MVC Website.

12 August, 2009

Pingback from  Twitted by patramadass

13 August, 2009
Bob Armour


We're looking at using the DevEx components, as they (hopefully) give us a certain level of consistency between desktop apps and webapps.

Our current web development efforts are centred around ASP.NET MVC, so we really wanted to check out how things work in that arena, and were pleased when we discovered this example code.

Our pleasure was, however, short-lived - it turns out that the example code uses V9.2 of the components, but the evaluation version of the components is at V9.1 (And this is missing some of the classes required by the example)

I'm about to embark on some experiments, based upon looking at the example source code, but an evaluation version of the V9.2 components would be much nicer.

Any chance of an updated evaluation package?



13 August, 2009

Pingback from  The ASP.NET Capsule #22: Official Support for ASP.NET MVC by DevExpress |

13 August, 2009

Hi Bob,

The 2009v2 trial will be out soon, probably within a couple of weeks.

13 August, 2009
Bob Armour


Good news about the imminent V9.2 trial - will wait for it to be released

17 August, 2009

I am having this error while trying to load the application. Not sure how to fix it.

Could not load file or assembly 'DevExpress.Web.v9.2, Version=, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

25 August, 2009


Please make sure you have DXperience 2009 volume 2 installed:

2 September, 2009

Hi Bob,

Btw, the DXperience 2009 volume 2 is officially out and you can get a fully-functioning trial copy here:

7 September, 2009

DotNetBurner - burning hot .net content

12 September, 2009
Vitali Balyshau

Hi, everyone.

I faced with the same problem which Mindy described above (Could not load file or assembly 'DevExpress.Web.v9.2, Version=, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)). The reason of this problem is in assembly version. If you download latest version of DevExpress components ( you have to change current version which is used in ASP.NET MVC: DevExpress Mail Demo and equals to to new version equals to in all assembly references to DevExpress (web.config and etc.)

15 September, 2009

Hi Vitali and Mindy,

Please make sure you have the latest version of our controls installed:

If that doesn't help then please contact our support team:

24 September, 2009

Vitali is absolutely correct. I already had latest version of the library installed, but the demo just refused to run. I did a GLOBAL Find/Replace and changed to Works perfectly. Thanks Vitali!

18 October, 2009


nice articel but i have a question : what points shoulde we consider in using control (.net or devexpress) in mvc?is there any potential problem in using control in mvc.

24 November, 2009

Hi Behnam,

There are no issues in using the control with MVC. However, if you have any trouble then please feel to contact our support and they'll help you find a solution:

24 November, 2009


I wanted know if this aplication code source is avable thanks

28 October, 2011


This demo is not available. But a newer and better demo is coming out soon in the next release. Check out a preview here:


28 October, 2011

Please login or register to post comments.