beautifulmind84
Programmer
this works with html, but not with asp.net, why?
<LINK REL="alternate" MEDIA="print" id="PrintLink" HREF="1.htm">
<script>
function printPage(item)
{document.getElementById('PrintLink').href=item.getAttribute('page');
window.print();}
</script>
<input name="1" type="button" value="Print this page"
page="1.htm" onClick="printPage(this)">
<input name="1" type="button" value="Print this page"
page="1200.htm" onClick="printPage(this)">
<input name="1" type="button" value="Print this page"
page="1200000.htm" onClick="printPage(this)">
<LINK REL="alternate" MEDIA="print" id="PrintLink" HREF="1.htm">
<script>
function printPage(item)
{document.getElementById('PrintLink').href=item.getAttribute('page');
window.print();}
</script>
<input name="1" type="button" value="Print this page"
page="1.htm" onClick="printPage(this)">
<input name="1" type="button" value="Print this page"
page="1200.htm" onClick="printPage(this)">
<input name="1" type="button" value="Print this page"
page="1200000.htm" onClick="printPage(this)">