Board index » Visual Studio » ASP.NET: VSNET2003 to VSNET2005
|
steenbt
|
ASP.NET: VSNET2003 to VSNET2005
Visual Studio36
I just upgraded from Visual Studio .NET 2003 to Visual Studio .NET 2005. There are several questions I have about the code differences between them (I use VB.NET for as my language of choice): 1. 2003 used "Public Class classname" and 2005 uses "Partial Class classname". What, if any, difference is there between these? 2. The following things are included in the #Region " Web Form Designer Generated Code " part of 2003's code, and are not included automatically in 2005: <System.Diagnostics.DebuggerStepThrough()>Private Sub InitializeComponent() End Sub Control declarations, such as: Protected WithEvents lblWebsite As System.Web.UI.WebControls.Label Private designerPlaceholderDeclaration As System.Object Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init InitializeComponent() End Sub Do I need to include any of these manually or anything else that serves their purpose? 3. In 2003 the Page Events use clauses such as Handles MyBase.Load while 2005 uses Handles Me.Load. I am assuming that these will work the same? I am sure that I will run into the other differences between the two, but these are some of the important ones for me right now. Thanks. -- Nathan Sokalski njsokalski@hotmail.com www.nathansokalski.com/ - |
