2
Answers

How to refresh a specific part of a webpage

saifullah khan

saifullah khan

13y
1.2k
1
Hi,

I have a api(asp.net webpage) that takes feeds from a website. then this api(asp.net web page) saves the data in database that is recieved from that website. now the feeds comes after every 3 seconds. so my api(asp.net) page needs to b refresh after 3 seconds in order to revieve the feeds and store it in database. i am using asp.net with c#. can somebody plz tell me what i need to do?
Answers (2)
0
Zoran Horvat

Zoran Horvat

NA 5.7k 516.3k 13y
You can create framed Web page. Then in the frame which should depict the latest feed contents you load HTML which automatically reloads every, say, 30-60 seconds (don't do it more often unless you're absolutely sure that client can refresh contents in time much shorter than 1 second anywhere in the world).

Make sure that this HTML is small and loads very quickly or otherwise users will have discomfort looking at the page which spends significant time in incomplete state.

If you can't load it quickly then make a background process which does the heavy job processing latest feed state, and simply creates fixed HTML which would then quickly be presented to users on every reload.

Zoran
Accepted
0
Jiteendra Sampathirao

Jiteendra Sampathirao

NA 6.9k 1.5m 13y

Hi,
use AJAX to refresh the specific part of the page.........