p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   Refresh UserControl (http://p2p.wrox.com/showthread.php?t=16984)

jpfree71 August 17th, 2004 10:14 AM

Refresh UserControl
 
I have a user control that I am using on my index page. The control displays product info. that is pulled from a database. How can I refresh the product info. at certain intervals on the index page?
Please be descriptive, I am a beginner.

Thanks


planoie August 17th, 2004 10:22 AM

In order to refresh a user control, you'll need to refresh the page that control is on. You can do this with standard HTML refresh techniques.

jpfree71 August 17th, 2004 11:45 AM

Is there any way to update a user control without refreshing the entire page?


planoie August 17th, 2004 12:31 PM

The end result of a user control is HTML. That HTML is lumped together with all the HTML of the page it's on. If you want to refresh the control, you need to refresh the whole page. If you wish to have a part of the page be able to refresh without refreshing the whole entire page, then you need to utilize whatever capabilities HTML has (to the extent and capabilities you wish to support). One such means is using an iframe for the refreshable part of the page. But then you aren't really using a user control, but putting another page in a frame.


All times are GMT -4. The time now is 05:41 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.