I'm having trouble figuring out how to use the Bootbox's prompt functionality in my ASP.NET webforms.Currently I'm using the default JS prompt as follows:
<script language='javascript'>
function defaultval() {
var pmt = prompt('Please enter a name for the template.',
document.getElementById('HiddenFieldCurrentTemplate').value);
return pmt;
}
</script>
<asp:Button ID="btnSaveTemplate" runat="server" CssClass="btn-primary" OnClientClick="HiddenField1.value = defaultval()" Text="Save as Template" />
Basically I need help in replacing the default JS prompt with Bootbox's prompt and assign the value returned by the prompt to a hidden field like I currently doing with OnClientClick="HiddenField1.value = defaultval()"