Blogs

This Blog

Subscribe (RSS, Email)

Mehul Harry's DevExpress Blog

JavaScript, HTML 5, ASP.NET, DevExpress, ASP.NET MVC & WebForms, and News - Mehul Harry's DevExpress blog

DevExpress Mail Demo (deprecated)

Update: This demo has been deprecated and the http://MVC.DevExpress.com 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):

image

ASP.NET MVC Mail Demo

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: http://mvc.devexpress.com

The MVC Mail demo is an online mail application similar in basic features to gmail.com or mail.com. 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)

WebForms In ASP.NET MVC

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 http://asp.net/mvc/learn/. 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.

Free

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:

http://www.devexpress.com/Downloads/NET/DXperience/

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: http://www.devexpress.com%

 

 

 

 

Published Aug 12 2009, 01:00 PM by
Bookmark and Share

Comments

ASP.NET MVC Archived Buzz, Page 1

Pingback from  ASP.NET MVC Archived Buzz, Page 1

August 12, 2009 4:32 PM

Craig

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

August 12, 2009 6:31 PM

Mehul Harry (DevExpress)

Hi Craig,

Thanks.

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

community.devexpress.com/.../from-the-devexpress-labs-early-preview-of-asp-net-mvc-grid.aspx

August 12, 2009 7:07 PM

Kyle Banashek

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

August 12, 2009 7:36 PM

Mehul Harry (DevExpress)

Hi Kyle,

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

www.devexpress.com/.../editionASPNET.xml

August 12, 2009 7:51 PM

Jose R. Guay Paz

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

August 12, 2009 8:02 PM

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

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

August 12, 2009 9:55 PM

David Hayden - Florida .NET Developer - C# and SQL Server

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

August 12, 2009 10:17 PM

Twitted by patramadass

Pingback from  Twitted by patramadass

August 13, 2009 6:07 AM

Bob Armour

Mehul,

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?

Regards,

Bob

August 13, 2009 6:34 AM

The ASP.NET Capsule #22: Official Support for ASP.NET MVC by DevExpress | rapid-DEV.net

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

August 13, 2009 7:05 AM

Mehul Harry (DevExpress)

Hi Bob,

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

August 13, 2009 7:48 AM

Bob Armour

Mehul,

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

August 17, 2009 3:31 AM

Mindy

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=9.2.0.0, 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)

August 25, 2009 2:51 PM

Mehul Harry (DevExpress)

Mindy,

Please make sure you have DXperience 2009 volume 2 installed:

www.devexpress.com/.../DXperience

September 2, 2009 5:26 AM

Mehul Harry (DevExpress)

Hi Bob,

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

www.devexpress.com/.../DXperience

September 7, 2009 4:25 PM

DotNetBurner - ASP.net MVC

DotNetBurner - burning hot .net content

September 12, 2009 6:04 PM

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=9.2.0.0, 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 (9.2.4.0) you have to change current version which is used in ASP.NET MVC: DevExpress Mail Demo and equals to 9.2.0.0 to new version equals to 9.2.4.0 in all assembly references to DevExpress (web.config and etc.)

September 15, 2009 10:27 AM

Mehul Harry (DevExpress)

Hi Vitali and Mindy,

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

www.devexpress.com/.../DXperience

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

www.devexpress.com/.../CreateIssue.aspx

September 24, 2009 7:37 PM

anon

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 9.2.0.0 to 9.2.6.0. Works perfectly. Thanks Vitali!

October 18, 2009 4:37 PM

behnam

hi

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

November 24, 2009 2:15 AM

Mehul Harry (DevExpress)

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:

www.devexpress.com/.../CreateIssue.aspx

November 24, 2009 4:55 PM

Jeysson Paiva

Hi

I wanted know if this aplication code source is avable thanks

October 28, 2011 5:11 PM

Mehul Harry (DevExpress)

Jeysson,

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

community.devexpress.com/.../asp-net-outlook-style-demo-applications.aspx

Thanks.

October 28, 2011 5:19 PM

About Mehul Harry (DevExpress)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2014 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners