![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/05/2006, 02:54
|
| | Fecha de Ingreso: noviembre-2005
Mensajes: 102
Antigüedad: 19 años, 2 meses Puntos: 0 | |
Me pasa algo muy curioso tb, he estado probando RegisterStartupScript y me funciona perfectamente en un .aspx y en otro me lo ignora completamente, alguien sabe porque? esta exactamente igual en ambos .aspx el codigo es el siguiente...
string alert1 = "<script>alert('No se pueden habilitar ambas regulaciones al mismo tiempo')</script>";
if (DropDownList1.SelectedItem.Value == "Habilitar" && DropDownList2.SelectedItem.Value == "Habilitar")
{
RegisterStartupScript("ClientScript", alert1);
} |