[Newbee] Print .aspx page...

S

Saravana

In the onclick of that button, use client side code(window.opent) to open a
new window with the page you want to print. In the on_load of the page, just
call window.print() javascript method.
 
A

ares

Hi!

I'm a new bee in asp.net. I have a page that includes a table and a repeater
web control, they have been filled dynamically with a stored procedure. So I
would like to print this page with a print button. When I click the print
button, a new window must be opened and window.print() dialog box must be
appear. But how can I do this? I have no idea. Please help.

Best Regards,
Ares
 
A

ares

Thank you, but I know how I can open new window with js.the Problem is I
don't know how can I transfer my dynamic content - which is formed in a
repeater web control- to another page (opened in new window) and print it.
 
A

ares

I write a java script function, and took my dynamic content into a div. Then
with my js function opened a new window and took div's content into the new
page. So it works!


Thanks for your help.

Ares
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top