Results 1 to 5 of 5

Thread: real time data..how to refresh every once in a second

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    real time data..how to refresh every once in a second

    I have about 20 text boxes on a web form and the data source is a oracle table. the content in the table changes every once in a second. So I need to refresh the contents on the web form every once in a second. How can I achieve this?

    thank you
    nath

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You would need to implement something other than static html. Maybe use a java applet like some games use? Every second refreshing the page would be a pain in the ass for the user.

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    It may be better to have a windows application that interfaces via the web (web services or remoting).

  4. #4
    Junior Member
    Join Date
    Oct 2003
    Location
    Earth
    Posts
    23
    I don't know about "how-to" refresh directly within the oracle, but I think you can use this trick for your aspx page :

    HTML :
    Code:
    <script language="javascript">
    		setTimeout('location.href ="Default.aspx"',1000);
    		</script>
    Code Behind :
    Code:
    Response.Cache.SetExpires(DateTime.Now.AddSeconds(1))

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You can do it, but it will be horrible for the user, look into a java applet or something if it has to be real time from the web, if it can be a user app, then yes, what edneeis said, windows app.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width