Multiple-Window/Download Question

H

hunt n peck

I have had some trouble resolving this issue. Here is what I am trying to
do:

I use ADO.NET to grab data from a DB and then use ASP.NET to display it in a
table.
I want to add a button to the page that pops up a new window with the same
table of data as an Excel spreadsheet.

I want the ASPX page to be able to both generate the HTML table as well as
launch a new window with the same data but customized with the EXCEL MIME
type.

I know how to generate EXCEL MIME types. I am just trying to figure out how
to get a single ASPX page to launch more than one window. I don't want to
use two ASPX pages - one for the HTML grid and one for the EXCEL data. Is
there no way for one ASPX page to manage/communicate with more than one
browser?
 
N

Natty Gur

I forget you need to change the ContentType.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top