Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh part of a web page (only)

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
We've got a form acting as a visual representation of how far a process has gone following a button click.
We've got a progress bar of sorts that edges up as progress is being made.
In order to refresh the web page we're calling the syntax :

Response.AddHeader("Refresh", "2");

.. which in turn is causing the page (in the web browser) to flicker - which is something of an annoyance.

Is there any means of only refreshing part (or parts) of a particular web page ?

[It's a shot in the dark I know ....]

Thanks in advance,
Steve
 
Only in javascript (as you don't want to post back to the server).

Try having a look at some javascript progress bars instead. is always a good starting place.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
That website seems to have some great script snippets - Thank you !
However we need our ProgressBar to work by reading values in ASP.NET (C# code) from the 'Session' object.
The samples on the website suggested only deal with progress bars that progress at regular intervals - rather than reading the actual progress (which will not be a constant regular flow - i.e. one notch per second)....
Steve
 
Unfortunately if you want to get data from the server you will have to take a trip to the server to get that data! So if you want to get values for your progress bar you will have to make a postback. The javascript progress bars obviously can't be updated with server data (unless you make that postback) and therefore just use regular intervals.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top