DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Posts
    1

    Resetting page values

    Hello everyone,

    This is my first post here, so I hope I have it in the right place.

    I have an ASP page written in VB6 COM+ which gets data from a MS SQL Server database then moves to another page where the data is either displayed on the page using a dynamically built HTML table, or exported to an Excel spreadsheet. My problem is, when I export to Excel I am left with a blank page in my browser. I have redirected back to the original search page but I want to remember all the entere values (search criteria) so that from a user perspective it will appear as if they never left the original page. Can anyone help me with this?

    Thank You
    Shane

  2. #2
    Join Date
    Jan 2004
    Location
    Alexandria, VA
    Posts
    392
    You could save them to session variables:

    Code:
    Save:
    Session("Input1") = Request.Form("Input1")
    
    Reload:
    <INPUT value=<%=Session("Input1")%>
    It gets a little trickier for other types of controls (such as "SELECT" controls). There may be a simpler solution than this; you should try the "Web" fourm.
    Bob Rouse
    Dimension Data

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links