Ciao a tutti.
In una pagina aspx di un sito web (migrato al framework 3.5) vorrei forzare il postback di un controllo.
Il codice della pagina aspx è:
if ((bGapExist == 1) && (document.getElementById("hdnAttivaGap").value != bGapExist)) {
//imposto readonly i campi
document.getElementById("hdnAttivaGap").value = bGapExist;
__doPostBack("hdnAttivaGap","");
}
dove hdnAttivaGap è così dichiarato:
<input type="hidden" id="hdnAttivaGap" name="hdnAttivaGap" runat="server" />
quello della pagina vb:
Private Sub hdnAttivaGap_ServerChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles hdnAttivaGap.ServerChange
SetUIPerGAP()
End Sub
il problema è che in locale (IIS 6) questo codice funziona, in test (IIS 7) non funziona, quando esegue la riga __doPostBack("hdnAttivaGap",""); mi restituisce un errore javascript Object Required.
Avete qualche idea su come posso risolvere il problema?
Grazie
Modificato da Mirella il 15 aprile 2009 17.51 -