DATA in the CLOUD CUTTING EDGE Dynamic Action Filters Introducing Datamarket in ASP.NET MVC Elisa Flasko
Total Page:16
File Type:pdf, Size:1020Kb
THE MICROSOFT JOURNAL FOR DEVELOPERS NOVEMBER 2010 VOL 25 NO 11 COLUMNS DATA IN THE CLOUD CUTTING EDGE Dynamic Action Filters Introducing DataMarket in ASP.NET MVC Elisa Flasko .............................................................................. 26 Dino Esposito page 6 Getting Started with SQL Azure Development FORECAST: CLOUDY SQL Azure and Windows Azure Lynn Langit ............................................................................. 30 Table Storage Joseph Fultz page 12 Synchronizing Multiple Nodes in Windows Azure DATA POINTS Joshua Twist ............................................................................ 40 Using the Entity Framework to Reduce Latency Connecting SharePoint to Windows Azure to SQL Azure with Silverlight Web Parts Julie Lerman page 23 Steve Fox ................................................................................ 50 TEST RUN Web UI Test Automation with the WebBrowser Control PLUS: James McCaffrey page 78 THE WORKING Scalable Multithreaded Programming with Tasks PROGRAMMER Ron Fosner .............................................................................. 58 Multiparadigmatic .NET, Part 3: Procedural Programming A Coder’s Guide to Writing API Documentation Ted Neward page 82 Peter Gruenbaum .................................................................... 70 SECURITY BRIEFS Web Application Confi guration Security Revisited Bryan Sullivan page 86 UI FRONTIERS The Intricacies of Touch Controls Charles Petzold page 92 DON’T GET ME STARTED A Real Pain in the Neck David Platt page 96 ... ............................................................................................ Using Quince™, you and your team can collaborate on the user interface using wireframes, designs and examples. ....................................................................... Then use NetAdvantage® UI controls, like the map control used here, to bring the application to life quickly & easily. Untitled-2 2 10/13/10 11:40 AM .............................................................................................................................. From start to finish, Infragistics gives you the tools to create impressive user experiences that'll make end users happy! ... SEE HOW WE USE THE TOOLS TO CREATE THIS KILLER APP AT INFRAGISTICS.COM/IMPRESS Infragistics Sales 800 231 8588 • Infragistics Europe Sales +44 (0) 800 298 9055 • Infragistics India +91 80 6785 1111 • @infragistics Untitled-2 3 10/13/10 11:40 AM NOVEMBER 2010 VOLUME 25 NUMBER 11 magazine LUCINDA ROWLEY Director DIEGO DAGUM Editorial Director/[email protected] KERI GRASSL Site Manager KEITH WARD Editor in Chief/[email protected] TERRENCE DORSEY Technical Editor DAVID RAMEL Features Editor WENDY GONCHAR Managing Editor KATRINA CARRASCO Associate Managing Editor SCOTT SHULTZ Creative Director JOSHUA GOULD Art Director ALAN TAO Senior Graphic Designer CONTRIBUTING EDITORS K. Scott Allen, Dino Esposito, Julie Lerman, Juval Lowy, Dr. James McCaffrey, Ted Neward, Charles Petzold, David S. Platt Henry Allain President, Redmond Media Group Matt Morollo Vice President, Publishing Doug Barney Vice President, Editorial Director Michele Imgrund Director, Marketing Tracy Cook Online Marketing Director ADVERTISING SALES: 508-532-1418/[email protected] Matt Morollo VP, Publishing Chris Kourtoglou Regional Sales Manager William Smith National Accounts Director Danna Vedder Microsoft Account Manager Jenny Hernandez-Asandas Director Print Production Serena Barnes Production Coordinator/[email protected] Neal Vitale President & Chief Executive Offi cer Richard Vitale Senior Vice President & Chief Financial Offi cer Michael J. Valenti Executive Vice President Abraham M. Langer Senior Vice President, Audience Development & Digital Media Christopher M. Coates Vice President, Finance & Administration Erik A. Lindgren Vice President, Information Technology & Application Development Carmel McDonagh Vice President, Attendee Marketing David F. Myers Vice President, Event Operations Jeffrey S. Klein Chairman of the Board MSDN Magazine (ISSN 1528-4859) is published monthly by 1105 Media, Inc., 9201 Oakdale Avenue, Ste. 101, Chatsworth, CA 91311. Periodicals postage paid at Chatsworth, CA 91311-9998, and at additional mailing offi ces. Annual subscription rates payable in US funds are: U.S. $35.00, International $60.00. Annual digital subscription rates payable in U.S. funds are: U.S. $25.00, International $25.00. Single copies/back issues: U.S. $10, all others $12. Send orders with payment to: MSDN Magazine, P.O. Box 3167, Carol Stream, IL 60132, email [email protected] or call (847) 763-9560. POSTMASTER: Send address changes to MSDN Magazine, P.O. Box 2166, Skokie, IL 60076. Canada Publications Mail Agreement No: 40612608. Return Undeliverable Canadian Addresses to Circulation Dept. or IMS/NJ. Attn: Returns, 310 Paterson Plank Road, Carlstadt, NJ 07072. Printed in the U.S.A. Reproductions in whole or part prohibited except by written permission. Mail requests to “Permissions Editor,” c/o MSDN Magazine, 16261 Laguna Canyon Road, Ste. 130, Irvine, CA 92618. Legal Disclaimer: The information in this magazine has not undergone any formal testing by 1105 Media, Inc. and is distributed without any warranty expressed or implied. Implementation or use of any information contained herein is the reader’s sole responsibility. While the information has been reviewed for accuracy, there is no guarantee that the same or similar results may be achieved in all environments. Technical inaccuracies may result from printing errors and/or new developments in the industry. Corporate Address: 1105 Media, Inc., 9201 Oakdale Ave., Ste 101, Chatsworth, CA 91311, www.1105media.com Media Kits: Direct your Media Kit requests to Matt Morollo, VP Publishing, 508-532-1418 (phone), 508-875-6622 (fax), [email protected] Reprints: For single article reprints (in minimum quantities of 250-500), e-prints, plaques and posters contact: PARS International, Phone: 212-221-9595, E-mail: [email protected], www.magreprints.com/ QuickQuote.asp List Rental: This publication’s subscriber list, as well as other lists from 1105 Media, Inc., is available for rental. For more information, please contact our list manager, Merit Direct. Phone: 914-368-1000; E-mail: [email protected]; Web: www.meritdirect.com/1105 All customer service inquiries should be sent to [email protected] or call 847-763-9560. Printed in the USA Your best source for software development tools! ® LEADTOOLS Document STOP OVERBUYING SOFTWARE TODAY! VMware vSphere Imaging v17.0: Eliminate Wasteful Software Essentials Kit Bundle vSphere Essentials provides an all-in-one by LEAD Technologies License Spend: LEADTOOLS Document Imaging has every solution for small offices to virtualize three component you need to develop powerful • Control your software physical servers for consolidating and image-enabled business applications including licensing costs managing applications to reduce hardware specialized bi-tonal image display and and operating costs with a low up-front • Stop paying for licenses investment. vSphere Essentials includes: processing, document clean up, annotation, you’re not using high-speed scanning, advanced compression • VMware ESXi and VMware ESX (CCITT G3/G4, JBIG2, MRC, ABC) and more. • Reduce your license spend (deployment-time choice) by $300+ per desktop user • VMware vStorage VMFS • Multi-threaded OCR/ICR/OMR/ for 3 hosts MICR/Barcodes (1D/2D) • Four-way virtual SMP Paradise # • Forms recognition/processing FREE 30-DAY • VMware vCenter Server Agent V5585101C02 Paradise # • PDF and PDF/A PROOF OF CONCEPT • VMware vStorage APIs/VCB L05 03301A01 • Win32/x64 binaries for C/C++, .NET, $ 99 • VMware vCenter Update Manager 446. $ 99 Silverlight, WPF, WCF, & WF Learn more: 2,007. programmers.com/LEAD programmers.com/eliminate-wasteful-license-spend • VMware vCenter Server for Essentials programmers.com/vSphere “Pragma SSH for Windows” InstallShield Professional Best SSH/SFTP/SCP Servers for Windows 2011 BUILD ON NEW and Clients for Windows by Flexera Software RELEASE! VMWARE ESXi by Pragma Systems If your software targets Windows®, AND VSPHERE InstallShield® is your solution. It makes it Get all in one easy to use high performance for Centralized Management, package. FIPS Certified and Certified for Windows. easy to author high-quality reliable Windows Installer (MSI) and InstallScript installations Continuous Application • Certified for Windows Server 2008R2 and App-V™ virtual packages for Windows Availability, and Maximum • Compatible with Windows 7 platforms, including Windows 7. InstallShield, Operational Efficiency in Your Certified • High-performance servers with Upg from any the industry standard for MSI installations, Virtualized Datacenter. for Windows centralized management also supports the latest Microsoft technologies Active IS Pro + 7/2008R2 • Active Directory & GSSAPI authentication including Visual Studio 2010, .NET IS Pro Silver Mtn Programmer’s Paradise invites you to take advantage • Supports over 1000 sessions Framework 4.0, IIS7.0, SQL Server 2008 Paradise # of this webinar series sponsored by our TechXtend I21H02401B01 solutions division. Paradise # • Hyper-V and PowerShell support SP1, and Windows Server 2008 R2 and Windows Installer 5, keeping your customers P35 04201A01 • Runs in Windows 2008R2/2008/2003/ $ 99 FREE VIRTUALIZATION WEBINAR SERIES: 7/Vista/XP/2000 happy and your support costs down. 1,384. $ 99 REGISTER TODAY! TechXtend.com/Webinars