Ed
asked on
Bootstrap Modal from Code
Could anyone tell me how to fire a modal popup (bootstrap) from vb code.
Using Ajax modal it would be modalname.show()
I have tried
but it does not work..
<asp:Button ID="btnCancelApt" runat="server" Visible ="true" Text="Cancel" CssClass="btn btn-primary btn-xs" CommandName="Cancel" data-toggle="modal" data-target="#CancelApt" />
Using Ajax modal it would be modalname.show()
I have tried
Protected Sub btnCancelApt(sender As Object, e As EventArgs)
ScriptManager.RegisterStartupScript(Me, [GetType](), "Show Modal Popup", "#CancelApt();", True)
End Sub
but it does not work..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect Solution
Glad it helped :-)
ASKER