I'm working on excel sheet where I'm writing data to the excel sheet after data being entered in the excel I'm downloading it to the local disk.
Then I want to show the popup that it has been downloaded successfully and written this code
ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "openModal();", true);
lblLog.Text = "Successfully Downloaded";
My JavaScript
is
function openModal() {
$('#myModal').modal('show');
}
My clickevent
<asp:LinkButton ID="linkbutton" runat="server" class="btn btn-primary btn-block" OnClick="linkbutton_Click" Text="Submit" data-target="#myModal"></asp:LinkButton>
The excel is being downloaded but the popup is not showing