asp refresh on IIS server side

Posted on 2004-10-25
Last Modified: 2010-04-17
Dear Support,

I wrote a standard asp page use Dreamweaver MX which it connect to the MS Access database use DNSLess connection methold.  

The list of table show the company's order history, by date, item#, description, unit price.  Once the sales order has been generate after customer check out the shopping cart.  The update order history will show on the order list table.  

How I can write a vb script to refresh the browser on the situation without click on the refresh button from browser?

I wrote a javascript for timer to refresh direct browser, but I like to do the refreshing from server IIS data directory.  or send the script to current browser to refresh automatically by itself.  

I also will pay the compensation if someone will do the plug-in programming for me.
Question by:kaiwuasp
    LVL 21

    Expert Comment

    This is a not a pay site.  We do our work for FREE.

    If you want to pay someone, go to
    LVL 21

    Accepted Solution

    To answer your question.

    HTML is a stateless connection between client and server.  This means that the server cannot notify the client to update itself.

    BUT, what you can do is periodically refresh the page and poll to see if the database is updated:

     <%@ Language=VBScript %>
        <%...DB logic check if order was processed

              IF OrderComplete THEN
                   Response.Redirect "OrderComplete.asp"
              Response.Expires = 0
              Response.Buffer = True
              Response.AddHeader "Refresh", "10"
             END IF
        <H1>Processing order...Please wait</H1>


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    This is an explanation of a simple data model to help parse a JSON feed
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    911 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now