prova con
Page.RegisterStartupScript
invece di
Me.RegisterStartupScript