Archives
-
Determining a SiteMapNode's visibility at runtime
Just a random thought. Wouldn’t it be nice if the XmlSiteMapProvider or SiteMapDataSource had a CheckAccessibility event? All we would have to do is handle this event and set a property that determines if the node should be displayed or not.
This way, we can control a nodes visibility using some custom rules rather than role based visibility.
The provider would look like this -
Page Event handlers in ASP.net 2.0
In ASP.net 2.0, you can declaratively wire an event to a control by adding an attribute/value to your control. The attribute name is the event name and the attribute value is the method to call. VS 2005 will also create the handler for you as shown below.
-
Tip to optimize C# Refactoring in Web Projects
Scott has posted a great tip for speeding up refactoring performance with Web Projects in VS 2005.