Multiple-Window/Download Question

  • Thread starter Thread starter hunt n peck
  • Start date Start date
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?
 
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
 
Back
Top