Salve, Vi spiego il problema.
Sto elaborando un css per la stampa di una pagina realizzata in aspx con C#.
Al momento della creazione del progetto o in debug l'html generato presenta dei tag DIV e javascript di cui non ho il controllo e non posso intervenire quando genero la stampa: mi crea degli spazi vuoti prima della parte interessata da stampare
il codice che mi genera è questo
Codice PHP:<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTMxOTE5Njk5OA9kFgJmD2QWAgIDD2QWBgIDD2QWAgIBD2QWAgIBD2QWAgIBDw8WAh4EVGV4dAXPCTxhIGhyZWY9Imh0dHA6Ly8xOTIuMTY4LjEuNjkvY29hX2RlL21vZF9wcmF0aWNoZS9ocFByYXRpY2hlLmFzcHgiIHRpdGxlPSJQcmF0aWNoZSI+PGltZyBzcmM9J2h0dHA6Ly8xOTIuMTY4LjEuNjkvY29hX2RlL21vZF9wcmF0aWNoZS9pbWcvcHJhdGljaGUuZ2lmJyBzdHlsZT0nYm9yZGVyOjAnIGFsdD0nUHJhdGljaGUnIC8+PC9hPjxhIGhyZWY9Imh0dHA6Ly8xOTIuMTY4LjEuNjkvY29hX2RlL21vZF9jb250YXR0aS9ocENvbnRhdHRpLmFzcHgiIHRpdGxlPSJDb250YXR0aSI+PGltZyBzcmM9J2h0dHA6Ly8xOTIuMTY4LjEuNjkvY29hX2RlL21vZF9jb250YXR0aS9pbWcvY29udGF0dGkuZ2lmJyBzdHlsZT0nYm9yZGVyOjAnIGFsdD0nQ29udGF0dGknIC8+PC9hPjxhIGhyZWY9Imh0dHA6Ly8xOTIuMTY4LjEuNjkvY29hX2RlL21vZF9yaWNoaWVkZW50aS9ocFJpY2hpZWRlbnRpLmFzcHgiIHRpdGxlPSJSaWNoaWVkZW50aSI+PGltZyBzcmM9J2h0dHA6Ly8xOTIuMTY4LjEuNjkvY29hX2RlL21vZF9jb250YXR0aS9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<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script src="/coa_de/WebResource.axd?d=oOR-_tccayaUc-DI7Y79TA2&t=633719388501875000" type="text/javascript"></script>
<div>
<input type="hidden" name="__PREVIOUSPAGE" id="__PREVIOUSPAGE" value="dtmhF0P4jLWB_OQAQFVLtNoU7iJFVOlpOd1XB0nXRIVSnqnACQOYgYUBHpYwTk830" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWCAKtsZW9BQKsxeyyCgKHh7d+ApWIg8IHAo6HwfgGAsPv3eAGAsr8plMCltXr7g2UXZcglRPR4CTUkuSshithgeksVQ==" />
</div>
mi piacerebbe oltre a poter inserire almeno degli ID nei div, anche poter gestire il suffisso "__" alle input e controllo javascript, anch'essi generati in automatico.
Ambiente:
Visual Studio 2005
Sqlserver 2005 Express
Windows xp e windows 2003 server
Grazie

Rispondi quotando