Resetting page values


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Resetting page values

  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

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center