Ho il seguente problema:
per scrivere in un div o in uno span uso
document.getElementById(idDiv).innerHTML = "testo";
per scrivere in un campo di testo uso
document.getElementById(idText).value = "testo";
ma nel momento in cui premo su un tasto che causa un postback, il testo scritto nel campo di testo rimane mentre quello scritto nel div o nello span torna al suo stato originale.
C'è un modo per fare in modo che il testo nel div, cambiato con javascript, permanga anche quando effettuo un postback?