Results 1 to 2 of 2

Thread: asp.net...real time data...how to refresh the controls every once in a second

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    asp.net...real time data...how to refresh the controls 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
    Addicted Member
    Join Date
    Aug 2000
    Location
    Pennsylvania, USA
    Posts
    168
    You can actually do this by adding a META tag to the HTML of the web form within the header.

    Code:
    <META HTTP-EQUIV=Refresh CONTENT="1; URL=yoururl">
    But you might want to ask yourself if you really want to do this. If the page reloads once a second, that is a tremendous amount of hits your your webserver. Users may also get irritating that the page refreshes every second, which may not give them enough time to read the page.

    Perhaps you should actually only refresh the webpage once every 5 or 10 seconds or so.
    Wydok

    "It would appear that we have reached the limits of what it is possible to achieve with computer technology, although one should be careful with such statements, as they tend to sound pretty silly in 5 years."

    -John Von Neumann ca. 1949

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