private void Page_Load(object sender, System.EventArgs e)
{
//Verifichiamo il browser
bool isIE = this.Request.Browser.Browser.IndexOf("IE")>=0;
//Controlliamo che lo script non sia già stato registrato
if(!this.IsClientScriptBlockRegistered("myCSS"))
{
//Se è Explorer mandiamo il css IE.css
if(isIE)
{
this.RegisterClientScriptBlock("myCSS","<LINK href='styles/ie.css' type='text/css' rel='stylesheet'>");
}
else
{
//altrimenti mandiamo un generico mycss.css
this.RegisterClientScriptBlock("myCSS","<LINK href='styles/mycss.css' type='text/css' rel='stylesheet'>");
}
}
}