JavaScript refreshes the page in several ways:
1 history.go (0)
2 Location.reload ()
3 location=location
4 Location.assign (location)
5 Document.execcommand (' Refresh ')
6 Window.navigate (location)
7 Location.replace (location)
8 document. Url=location.href.
____________________________________________
Frames page: (One of the sub-pages in a frames page)
Top.location.reload (); Refresh full Page
Self.location.reload (); Refresh this page
window.parent.location.href= ' frames page redirection
_____________________________________________
How to automatically refresh the page: 1. Automatic page refresh: Add the following code to the
Example: The data added successfully after the dialog box and refresh the page
if (Infoaction_sort.insert (Info_sort))
{
Scriptmanager.registerstartupscript (this. UpdatePanel, this. GetType (), "Alert", "alert (' Add Success for album classification '); Window.location.reload ();", true);
Alert ("album Classification created successfully");
Response.Redirect (Request.Url.ToString ());//Refresh this page
This.txt_AddSort.Text = "";
This.txt_SortDepict.Text = "";
}
Several methods of page refresh