Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 10th, 2004, 01:27 PM
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Issue of downloading Excel file(resent)

Hi there,
I have an asp program that generate Excel file it works on my local machine even for a big file(3 M). But after It is deployed to web server(IIS 5), it works for a small file(1.7M), but id does not work for a bigger file(3M). I debugged and found out script timeout. So I changed server.scripttimeout into 900 seconds, but it does not work yet. By the way I use HTTPS on server. Any one who knows how to fix it please help. Thanks a lot.
The following code is example of my ASP file.

<%@ Language=VBScript %>
<%response.ContentType="application/vnd.ms-excel"%>
<html>
<head>
<body>
<%

    Rs.Open "strSQL", "cnString"

    if not rs.EOF then
        Response.Write("<table border=1 align=center cellSpacing=0 > ")
        fldsNum=Rs.Fields.Count
        'Display details of the records in the current page
        jj=0
            Response.Write(" <tr> ")

            for i=0 to fldsNum-1
                Response.Write("<td>"&Rs.Fields.Item(i).Name&" </td>")
            next
            Response.Write(" </tr> ")
        while not rs.EOF
            Response.Write(" <tr> ")

            for i=0 to fldsNum-1
                Response.Write("<td nowrap>"&Rs.Fields.Item(i).Value&" </td>")
            next
            Response.Write(" </tr> ")
            Rs.MoveNext()
            jj=jj+1
        wend
        Response.Write(" </table><BR> ")
        Response.Write("<p> Records found: "&jj&"</P><BR><BR>")
    else
        Response.Write("No records are found in this search!")
    end if
    rs.Close
    set rs=nothing
%>
</body>
</html>



Reply With Quote
  #2 (permalink)  
Old June 10th, 2004, 05:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

check out http://www.greggriffiths.org/webdev/both/excel/ which covers this topic.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue after downloading file in ASP.NET page subhasps8 SharePoint Development 0 December 24th, 2007 08:07 AM
Downloading Excel File hugh@kmcnetwork.com VB How-To 0 October 28th, 2004 11:40 AM
Issue of downloading Excel file(resent) zuolinbai Classic ASP Professional 3 June 15th, 2004 11:10 AM
Issue of downloading Excel file zuolinbai Classic ASP Professional 1 June 7th, 2004 05:50 PM
.csv file saved with Excel, issue with date forma pitophe Excel VBA 0 March 25th, 2004 07:14 PM



All times are GMT -4. The time now is 06:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.