Tuesday 17 November 2009

Generic method to get control from LoginView

private T GetLoginViewControl(string name) where T : Control
{
return LoginView1.FindControl(name) as T;
}

Sunday 8 November 2009

Dual monitors not working for new install of Windows 7 on Dell M2300 laptop

I recently did a brand new install of Windows 7 Professional on my Dell Precision M2300 laptop. When I connected my monitor or TV to the laptop it was not picked up by 7.

The solution was to go onto Dell.co.uk and download the Nvidia Quadro FX 360 for Vista 32bit not Windows 7 as it is not supported.

Thursday 5 November 2009

Browser CSS Overrides

The following is a quick reference on how to override CSS styles in different browsers.

#body
{
margin:10px; /* All browsers */
}
#body
{
margin:10px;
*margin:5px; /* IE6 Override */
}
#body, x:moz-any-link
{
margin:4px; /* Only Firefox */
}

This link is very useful: CSS Hacks