I want to calling a javascript function from a asp.net modal window using vb. The javascript function is to close the same modal window.
The function I want call is: function CloseModalWindow(winName)
I tried
Page.ClientScript.RegisterStartupScript
but that does not work. How can I do that from vb.net code behind?
If you are looking to close a modal window, perhaps place a label on the aspx side, and then use a label with similar to:
<a href="javascript:CloseModalWindow('ThisWindow')"><asp:Label runat="server" Text="Close Me"></Label></a>
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With