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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UserControl to reload page it's in?

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I have a page that contains a series of UserControls - which are created dynamically according to a number of database records.
Within the UserControl I allow the editing / saving / deleting of the underlying information (each UserControl represents one record in the database).

When I delete the record I want the page to reload / refresh - so that that instance of the UserControl no longer exists (because the record is now gone).

How can I go about doing this?
Any help would be appreciated.

Thanks in advance.
Steve
 
Hi,

Firstly when you said page I am presume this is a ASP.NET page with C# server side code.

You cannot force the client side to refresh from the server side, unless you provide response upon request.

The method to refresh from the client side is

<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="300">
</HEAD>

300= No. of secs until refresh.

THE GOV' NOR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top