Home » 2011 » January » 05

Archive for January 5, 2011

OnClientClick

OnClientClick properties to close pop-up window and redirect visitor back to parent page when using jQuery. <asp:Button ID=”InsertCancelButton” runat=”server” Text=”Cancel” PostBackUrl=”~/ManageAccounts.aspx” OnClientClick=”window.document.forms[0].target=’_parent’;”  /> Code behind – Login.aspx.vb Partial Class Login Inherits System.Web.UI.Page Protected Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit.Click ‘/ define vars Dim usn As TextBox Dim pwd As TextBox […]