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.
<form runat="server">
<asp:TextBox ID="txtBoxEvent" runat="server"></asp:TextBox>
<asp:LinkButton ID="lbClickEvent" runat="server" Text="Yo!" OnClick="launchServerEvent"></asp:LinkButton>
<br />
<asp:Label ID="lblMessage" runat="server"></asp:Label>
</form>
Sub Page_Load()
If Not Page.IsPostBack Then
txtBoxEvent.Attributes.Add("onfocus", Page.ClientScript.GetPostBackClientHyperlink(lbClickEvent, "", False))
End If
End Sub
Sub launchServerEvent(ByVal sender As Object, ByVal e As EventArgs)
lblMessage.Text = "I Did it with JavaScript!"
'Endless loop if you enable below!
'SetFocus(txtBoxEvent)
End Sub