Displaying Resultset output in Excel format in a NEW window

S

Sushmita

Hi,

I have written an ASP script that connects to a database
and runs a stored procedure and displays the results in
text format ...using the <TABLE> tag. But I would like to
have these results appear in a NEW Window in an Excel
format.

I used :

<%
Response.ContentType = "application/vnd.ms-excel"
Response.Buffer = true
Response.Clear
%>

This opens up Excel in the same window and usually does
not refresh my data ...even though the stored procedure is
actually running on the database server.



Please help!!

thanks.
 
B

Bob Barrows

You can't open a new window in server-side code. It's just not possible. You
will need to use client-side code to achieve this. Please see a dhtml
newsgroup (or m/p/scripting.jscript).

Bob Barrows
 

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

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top