For passing data, you can use
Sessions
or
QueryStrings
.
Refer -
How to: Pass Values Between ASP.NET Web Pages[
^]
Quote:
yaa... i have done this by using session. But the values are displayed in lables. how to print those values?
You just need to place a
Print Button in the second
aspx
page like below.
<button onclick="printPage()">Print this page</button>
Add
JavaScript
function like...
<script>
function printPage()
{
window.print();
}
</script>
so, when you click on the
Button, it will print all the things showing on that
aspx
page. As simple as that.
Keep coding. :)