Month: April 2007

Style Sheet Expressions

No Picture

A quick note: In Internet Explorer, you can dynamically define css properties via expressions. I believe that this is unsupported in other browsers; you are probably best off trying to dynamically set css properties via separate JavaScript. Example…

Read More »

MOSS: Security Notes

No Picture

When I set up SharePoint, I normally create a few groups before setting up service accounts / users. This way, when the required accounts, I only need to add them to specific AD groups, as opposed to logging…

Read More »

ASP.NET Controls: ClientID

No Picture

If you are using a control hierarchy that implements INamingContainer, when the controls render to a browser the ID property (viewed from the html source) will not be the same as the ID you have set programatically (by…

Read More »

Asp.net 1.0 / 1.1: Enter key for multiple forms

No Picture

In asp.net 1.0 and 1.1, there seems to be no easy way of having multiple forms on a webpage that each perform separate actions when you press the enter button from within them (instead of clicking a button…

Read More »

Nant: Building and deploying cab files

No Picture

It appears that there is no nant / nantcontrib task to create CAB files (ie build .vdproj projects). Nant seems to only be capable of handling C#, VB.NET and C++ projects. To overcome this, you need to call…

Read More »

C# 2.0: Dynamically Adding Controls To A Web Page

No Picture

Quick note: I have just learnt a more elegant way to dynamically add controls to a webpage and then access then via events etc. See code below. Note that most crucial part of this is the call to…

Read More »