Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Send GridView content to another page

Reply
Thread Tools

Send GridView content to another page

 
 
Mic
Guest
Posts: n/a
 
      08-28-2007
Hi,

I have a GridView control that gets populated at runtime and I need to
print its content. The simplest way I found was to use window.print()
but this prints everything on the page.

But if I can send the GridView content (or copy the GridView) to
another page, I then can use window.print() in that other page.

How can I do that ?

Thanks !

 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      08-28-2007
"Mic" <> wrote in message
news: oups.com...

> But if I can send the GridView content (or copy the GridView) to
> another page, I then can use window.print() in that other page.


Alternatively, you can use a print stylesheet:
http://www.google.co.uk/search?sourc...int+stylesheet


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
 
David C
Guest
Posts: n/a
 
      08-28-2007
Why not just hide your other controls (using Javascript) and then issue the
print. Then you can show the controls again right after you issue the
window.print

David
"Mic" <> wrote in message
news: oups.com...
> Hi,
>
> I have a GridView control that gets populated at runtime and I need to
> print its content. The simplest way I found was to use window.print()
> but this prints everything on the page.
>
> But if I can send the GridView content (or copy the GridView) to
> another page, I then can use window.print() in that other page.
>
> How can I do that ?
>
> Thanks !
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
document.getElementById(), error in content page content page Dave L ASP .Net 3 03-04-2010 08:50 AM
gridview column values to another page via gridview hyperlink column Keith G Hicks ASP .Net 3 02-18-2008 06:17 AM
How send the content of a GridView into another page? Carlos ASP .Net Datagrid Control 0 07-13-2006 07:16 AM
Pre-Send Request Headers, Pre-Send Request Content =?Utf-8?B?S2V2aW4gQnVydG9u?= ASP .Net 0 12-31-2004 06:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57