ASP prompt issue

Peter_1985 2,546 Reputation points
2021-08-11T04:07:29.3+00:00

Hi,
In ASP, is there one example to show message prompt below?
122136-prompt-message.png

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,239 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,313 questions
{count} votes

10 answers

Sort by: Most helpful
  1. Peter_1985 2,546 Reputation points
    2021-08-15T07:31:00.587+00:00

    Hi,
    When displaying message like

    Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "ShowMessage('Message to display');", true);

    How to ensure it can be showing it with class details/effects below?

    <div class="modal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
    <div class="modal-content">
    <div class="modal-header">
    <h5 class="modal-title">Modal title</h5>
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
    <span aria-hidden="true">×</span>
    </button>
    </div>
    <div class="modal-body">
    <p>Modal body text goes here.</p>
    </div>
    <div class="modal-footer">
    <button type="button" class="btn btn-primary">Save changes</button>
    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
    </div>
    </div>
    </div>
    </div>

    0 comments No comments

  2. Yijing Sun-MSFT 7,071 Reputation points
    2021-08-16T05:37:56.043+00:00

    Hi @Peter_1985 ,
    Do you want to trigger a Bootstrap Modal Pop-up from Code-behind? You could refer to below codes:

    123438-new-text-document-2.txt

    If you still have problems,you could post us more details of your requirement clearly.

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Peter_1985 2,546 Reputation points
    2021-08-16T09:08:56.5+00:00

    Is there any issue to highlighted lines below?
    123509-2e.png


  4. Peter_1985 2,546 Reputation points
    2021-08-17T07:11:59.807+00:00

    I cannot raise reply to this. See error below

    Access Denied
    You don't have permission to access "http://learn.microsoft.com/answers/answers/509073/post.html" on this server.
    Reference #18.6edb0d17.1629184228.2d1aac70

    0 comments No comments

  5. Peter_1985 2,546 Reputation points
    2021-08-17T07:56:10.767+00:00

    Hi,
    What is reason for current error in above? What issue is leading to such problem? I cannot put proper reply to this.