Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
this codes in the HTML of your page
function myRefresh()
{
//Writes out the __doPostback call to the page. This is called when the pop-up window is closed to refresh the screen.
//The pop-up window calls this function, which in turn calls the Click event of the btnHiddenRefresh button.
// __doPostBack('thisPage:btnHiddenRefresh','');
<%=strRefresh %>;
}
<asp:Button ID="btnHiddenRefresh" runat="server" />
In the code behind:
'Global variable
Public strRefresh As String
Protected Sub btnHiddenRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHiddenRefresh.Click
'This is a hidden button. The click event is fired when the pop-up window is closed.
'//The pop-up window calls the JS MyRefresh() function, which in turn calles this through the __doPostBack() call.
'' Do your database call here and refresh the conrol.
End Sub