[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

asp refresh on IIS server side

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.
0
kaiwuasp
Asked:
kaiwuasp
  • 2
1 Solution
 
MogalManicCommented:
This is a not a pay site.  We do our work for FREE.

If you want to pay someone, go to www.rentacoder.com.
0
 
MogalManicCommented:
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"
          ELSE
          Response.Expires = 0
          Response.Buffer = True
          Response.Clear
          Response.AddHeader "Refresh", "10"
         END IF
     %>
    <H1>Processing order...Please wait</H1>

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now