Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pop up auto close after button click event--asp.net #19

Open
yongwc2710 opened this issue Aug 15, 2016 · 1 comment
Open

pop up auto close after button click event--asp.net #19

yongwc2710 opened this issue Aug 15, 2016 · 1 comment

Comments

@yongwc2710
Copy link

 <script type="text/javascript" src="../js/showModalDialog.js"></script>        
<script type="text/javascript"> function AdminshowAssignSold() { var answer = window.showModalDialog("AssignSold.aspx?ProID=<%=Request.QueryString("id") %>",null, "dialogWidth:500px; dialogHeight:500px; center:yes"); answer.focus(); if (answer == "1") location.reload(); } </script>

Please assist on this . the pop up windows close automatically after finishing the click event from parent page :
<asp:Button ID="btnSold" runat="server" Text="Mark as SOLD" CausesValidation="False" />
vb.net:
btnSold.Attributes.Add("onClick", "AdminshowAssignSold();")

@mrwoodo
Copy link

mrwoodo commented Sep 2, 2021

Same as #9 Problem with pages .aspx, have added example workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants