220 likes | 384 Vues
ASP to ASP.net Migration. Harish Ranganathan Live Web Developer Evangelist | Microsoft India http://geekswithblogs.net/ranganh | hrangan@microsoft.com. Understanding versions. ASP.NET 1.0 ~ Visual Studio .NET 2002 ASP.NET 1.1 ~ Visual Studio .NET 2003
E N D
ASP to ASP.netMigration Harish Ranganathan Live Web Developer Evangelist | Microsoft India http://geekswithblogs.net/ranganh | hrangan@microsoft.com
Understanding versions • ASP.NET 1.0 ~ Visual Studio .NET 2002 • ASP.NET 1.1 ~ Visual Studio .NET 2003 • ASP.NET 2.0 ~ Visual Studio 2005 • ASP.NET 3.5 ~ Visual Studio 2008
DEMO ASP.NET and Visual Studio
Key Changes • Scripting vs Code Behind • VB Script vs VB.NET/C# • Embedded in HTML / Code Behind ~ Beside • HTML Controls vs Server Controls • Virtual Directory vs Application
DEMO Code behind ~ beside
Server Controls • Generate HTML Code at runtime • Work on Post Back Model • Flexible server side handling • Stores post back data using View State • Can become heavier with extensive usage • Virtual Directory vs Application
DEMO Server Controls
Configuration • Web.Config for Application Settings • Machine.config for System Settings • Global.asax for Application Event Handling • Virtual Directory marked as Application • Needs ASP.NET Enabled in IIS 6.0 / 7.0 • Virtual Directory vs Application
DEMO Configuration
Chosing the Migration Model • Side by side: Classic ASP with ASP.NET Pages • All pages converted to ASP.NET • Both work well
Horizontal Migration ASP.net ASP.net ASP ASP COM wrapper COM COM ADO / C++ ADO / C++
Vertical Migration ASP.net ASP.net ASP ASP .NET Class Library COM ADO.NET ADO / C++
How do I chose? • Depends on various factors • Long term approach must be Vertical Migration • Quick migration would be Horizontal, side-by-side with ASP and writing COM Wrapper
What I miss in Vertical • Effort that went into designing DAL / BL • Business requirements, modifications to methods / return type data • Flexibility of an early roll-out
What I miss in Horizontal • Pretty much everything i.e. Robustness, Databinding, ADO.NET, Performance etc., • Residing in unmanaged COM World • Disconnected architecture of ADO.NET (Applies to Data Set only)
Top sites migrated to ASP.NET • Dell.com • Monster.com • MSN.com • LondonStockExchange.com • Microsoft.com (Yes, its equally difficult here)
Resources • ASP.NET Learning http://www.asp.net/learn • Get Started http://www.asp.net/get-started/
Feedback / QnA • Your Feedback is Important! Please take a few moments to fill out our online feedback form • Use the Question Manager on LiveMeeting to ask your questions now!
Contact (optional slide) • Blog Address http://geekswithblogs.net/ranganh • Email Address hrangan@microsoft.com