zondag, juli 30, 2006

 

NOT - Much improved NDoc for .Net 2.0

the .Net 2.0 port of NDoc 1.3.1 to generate decent output for the MSDN and MSDN2 documenters. I mostly use the MSDN documenter so there might be some more features in that doumenter, e.g. support for sealed classes

Anyone interested can download source and binaries here: (currently at internal revision 15)ndoc-src-1.3.1-v15.zip - source code that builds with Visual Studio 2005 ndoc-bin-1.3.1-v15.zip - binaries built with .Net 2.0

What a hell, exceptions everywhere, MSDN template doesnt work, path too long errors $$%^$$^ now im pissed! sucks up my sleeping hours..

 

Visual studio 2005 Add-In project - Linecounter

This project shows you how to write an addin for Visual Studio 2005. Read the documentation well! There are some crucial steps needed to get the add-in registred.

http://www.codeproject.com/useritems/LineCounterAddin.asp


Dont forget!:

// Only execute the startup code if the connection mode is a startup mode
if (connectMode == ext_ConnectMode.ext_cm_AfterStartup connectMode == ext_ConnectMode.ext_cm_Startup)

The project itself didnt work as expected but I could use lots of bits and pieces for my own addin. For your information, im working on an addin which can repair relation graphics in the classdesigner. The out of the box version is a pain in the @$$

vrijdag, juli 28, 2006

 

Best Practice Analyzer for ASP.NET


Pretty handy-dandy tool to check your config settings before putting your site in production.

http://www.microsoft.com/downloads/details.aspx?FamilyID=d2717206-e804-415e-9173-c7b7327289e4&displaylang=en

Related webcast:
http://port25.technet.com/archive/2006/06/29/2666.aspx

zondag, juli 23, 2006

 

CSS versus XSL

Working on a default webcontrol interface, I was wondering what to use, XML and XSL only or with CSS. Well the article describes what the differences are. XSL only is prob. best for printwork, but for formating webpages I guess its better to stick with CSS (XML(data)-XSL(layout)-CSS(format)). Personally I think this is a cleaner model.
http://www.xml.com/pub/a/2005/01/19/print.html

vrijdag, juli 21, 2006

 

The (non)limits of css

nice demo site of what you can do with css
http://www.csszengarden.com/

dinsdag, juli 18, 2006

 

Dynamic metadata

Saw some plp asking how to set metadata dynamically, well here the answer:

//*** page title ***
this.Page.Title = "http:\\dotnetpret.blogspot.nl";

myHeadDummy.Text = "\n";
this.Page.Header.Controls.Add(myHeadDummy);

//*** page keywords ***
HtmlGenericControl Keywords = new HtmlGenericControl("meta");
Keywords.Attributes.Add("NAME", "Keywords");
Keywords.Attributes.Add("CONTENT", "c#,.Net,dotnet,ASP.NET")
this.Page.Header.Controls.Add(Keywords);


//*** page description ***
HtmlGenericControl Description = new HtmlGenericControl("meta");
Description.Attributes.Add("NAME", "Description");
Description.Attributes.Add("CONTENT", 'if its .net its here");
this.Page.Header.Controls.Add(Description);

maandag, juli 17, 2006

 

Tech podcasts + Technet magazine

http://www.microsoft.com/technet/technetmag/subscribe.aspx
US= free
The Netherlands = $70 :-(

 

System.Web.UI.WebControls.Xml: XML + XSL source from url

System.Web.UI.WebControls.Xml normally doesnt except urls for getting its sources, with this extended control, you can

http://www.eggheadcafe.com/articles/20060603.asp
http://www.eggheadcafe.com/articles/20060603.zip

 

VS macros

Mark Miller explains use of macros in VS
http://www.doitwith.net/2006/06/18/AwesomeVisualStudioUsabilityTip.aspx

 

Guidance Automation Extensions and Toolkit: June 2006 Release

GAX and GAT are really the foundation of Microsoft's Software Factories initative. Software Factories built on these technologies are collections of guidance that help architects and developers build specific types of applications with improved consistency, quality and productivity. This is achieved by integrating automated guidance related to the factory's application scenario deeply into Visual Studio - for example, using templates, wizards, recipes and code generation, along with supporting patterns and architectural documentation. The patterns & practices team is currently working on several Software Factories, including the Web Service Software Factory, Smart Client Software Factory and Mobile Client Software Factory.

 

Keep Sites Running Smoothly By Avoiding These 10 Common ASP.NET Pitfalls

This article discusses:
Caching and forms authentication
View state and session state
Profile property serialization
Thread pool saturation
Impersonation and profiling
http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/default.aspx

 

Asynchronous Web Parts

building a customizable Web site complete with a collection of pluggable Web Parts is fairly easy with the portal infrastructure of ASP.NET 2.0. This model is very flexible, allowing users to easily place your Web Parts anywhere on the Web page so they are free to customize your site. However, these advantages can also lead to inefficiencies that may degrade the user experience, since you may not know beforehand which components will be used together, and therefore can’t make specific data retrieval optimizations for each individual component.
The most common inefficiency in a typical portal site occurs when multiple Web Parts simultaneously make network requests for data. Each request, whether to a Web service or a remote database, ends up adding to the overall time it takes to process the page even though the requests are typically independent of each other and could conceivably be issued in parallel.
Fortunately, ASP.NET 2.0 also introduces an easy-to-use asynchronous page model that, when used in combination with asynchronous Web service calls and asynchronous database access, can significantly improve the response time for a portal page as several independent Web Parts collect data in parallel. Here I’ll look at techniques for building Web Parts that perform their data retrieval asynchronously to make the portal pages that contain them more responsive and scalable.

 

Atlas slider

Cewl slider implentation based on ATLAS. Demo appears a bit slow :-(
http://aspadvice.com/blogs/garbin/archive/2006/06/30/18988.aspx
Demo:
http://webfx.eae.net/dhtml/slider/slider.html


YOU KNOW WHAT? THIS IS POST 300! ;-)

 

C# ICloneable

nice article on cloning
http://blogs.msdn.com/abhinaba/archive/2006/04/19/578518.aspx

zondag, juli 16, 2006

 

DSL SDK, pretty cool

zaterdag, juli 15, 2006

 

embed (javascript) sources in your dll

As i'm working on my googlemaps.net framework project I would like to include some Javascript files. Well here is an article on how to do that.
http://www.dotnetbips.com/articles/displayarticle.aspx?id=500

another one, also css:
http://www.codeproject.com/aspnet/MyWebResourceProj.asp

 

Writing Object-Oriented JavaScript Part 1

Nice article on writing OO-Javascript

part 1:
http://www.codeproject.com/aspnet/JsOOP1.asp
part 2:
http://www.codeproject.com/aspnet/JsOOP2.asp

Good & simple demos (esp. the soap class)
http://www.guru4.net/articoli/javascript-soap-client/demo/en.aspx

donderdag, juli 13, 2006

 

Javascript threading

pers link ref
Lightweight threads with Narrative Javascript

woensdag, juli 12, 2006

 

VS2005 TS designers

zondag, juli 09, 2006

 

hive7 AJAX project

Nice example of a AJAX implementation

maandag, juli 03, 2006

 

cool tool Fiddler

Nice tool i found by listening to the msdn webcast Building Powerful AJAX-style solution. Keep track of what is going down the line. Helpfull when developing webservices.
http://www.fiddlertool.com
more tools:
http://dotnetpret.blogspot.com/2006/04/tools-tools-and-more-tools.html

 

Webpart body hardcoded 5px padding setting

I ran into this weird problem of not getting rid of the 5 px padding in the body of my webparts. Well it seems to be a known 'bug'. MS probably fixes it in the next release. There is a workaround to overcome the prblem. Took me some time to figure out what they had in mind.

Bug report:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=105167


WebPartChrome and WebPartZone derived classes you need.
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartchrome.aspx


download fixed classes:

http://www.overnight.nl/download/OvernightWebPartChromeAndZone.rar

 

ASP.NET 2.0 Menu control + XML + XSL

The use of the menu webcontrol is well documented with the use of a sitemap. Use with XML datasource isnt that well documentated, here a nice sample of how to do this.

http://www.overnight.nl/download/dbmenu.zip

I couldnt find the URL of where I found it anymore, sorry 4 that.