Alex Mueller on Software and Technology 
Wednesday, March 09, 2005
I started working with Visual Studio 2005 Beta recently and much has changed. Technology is constantly evolving, and once we seem to get settled something new arrives and it is time to relearn new concepts. In this case, I have really only scratched the surface.

In my aspx pages, “asp” is an unrecognized tag prefix or device filter. In design mode, I am able to add web controls just fine, but when I manipulate them in source mode I am not getting any help from intellisense. Besides these errors, when I run the project it works fine. This is a pain because I do not have access to intellisense when creating my “asp” specific controls. Maybe it is just me or my environment, but hopefully this will be corrected in the alpha release.

In your aspx code behind, you may gain access to the Master page in two ways that I have found. The first is to include a MasterType directive below the Page directive like the following, "MasterType virtualpath="~/MasterPage.master."

The second method is to omit this MasterType directive and access it in the page’s code behind.

void Page_Init(Object sender, EventArgs e)
{
     MasterPage_master mp = (MasterPage_master)this.Master;
     this.lblCompany.Text = mp.CompanyName;
}

Finally, for right now anyway, this is my first experience with partial classes. It is too early for me to formulate an opinion on if I do or do not like using partial classes. I can say using partial classes requires an understanding of ASP.NET 1.x. I would not want to be learning ASP.NET 2.0 without understanding 1.x. I can understand what the partial class is aiming to solve, but I am not sure if it is necessary.

When using partial classes, I now must override or implement basic webform events such as Page_Load or OnLoad when I need to modify logic in these cases. In ASP.NET 1.1, I have noticed when creating web controls in my page, they are not always provided in my code-behind, so I am forced to manually add them. With ASP.NET 2.0, the controls are not documented in the partial class. I do prefer seeing them, as well as seeing the generated code when the classes are created. I guess these are just part of the growing pains of moving from 1.1 to 2.0.
Wednesday, March 09, 2005 4:17:02 PM (Mountain Standard Time, UTC-07:00) | Comments [1] | #
MuellerDesigns.net
Search
On This Page
The Split Personality of the Tester/Developer
Cross Site Scripting (XSS)
Creating files with FSUTIL
PowerShell Management Library for Hyper-V
Installing Windows 7
Installing Linux in Hyper-V
Internet Explorer 8 Release Candidate 1
PowerShell Documentation
Automate Daily Tasks with PowerShell
SketchPath XPath Editor
Software Testing - Revisited
Architecting Buildings and Software
NBCOlympics.com with Silverlight
Marker Interfaces and C# Attributes
Most Popular
JavaScript ReplaceAll Functionality
What is polymorphism?
What is composition?
Sorting with IComparable and IComparer
Applying the Observer Pattern in ASP.NET
MVP in ASP.NET
What is abstraction?
What is encapsulation?
What is a class?
What is inheritance?
Authentication in ASP.NET
Calendar Controls
XPathNavigator.CheckValidity new for 2.0
SQL Server 2005 Connection Issues
Auto-attach to process '[####] aspnet_wp.exe' on m...
What is an object?
FreeTextBox
VMWare and VPC
An Example of Reflection using C#
Changing File Ownership In Vista and Longhorn
Archive
Links
Categories
My Local Blog Map
Blogroll
About
Powered by:

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
MuellerDesigns.net

Sign In

Help Those In Need
The Hunger Site
Ronald McDonald House Charities (RMHC) of Western Washington & Alaska