Modal Dialog Box not showing in ASP.NET web

Arane

I am currently trying to use Modal Dialog box from Bootstrap. I have did exactly what the tutorial shows but whenever I click on my button, the Modal Dialog does not show. May I know why?

Here's my code

<body>
    <form runat="server">
            <asp:ImageButton runat="server"  ImageUrl="image.url" data-toggle="modal" data-target="#login" />

            <div class="modal" id="login" tabindex="-1">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <label>Login</label>
                        </div>
                        <div class="modal-body">
                            <form>
                                <div class="form-group">
                                    <label>EmAIL-iD</label>
                                    <input type="text" placeholder="Email-Id" id="email" />
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button value="Login" id="login"></button>
                        </div>
                    </div>
                </div>
            </div>

</form>
</body>

<script type="text/javascript" src="Scripts/bootstrap.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
AndyM

Bootstrap depends on jQuery already being loaded so it should be imported before the bootstrap.js file.

<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" src="Scripts/bootstrap.js"></script>

If that is your issue you'll be seeing a jQuery is not defined error in the browser console.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

TeamCity with showing a modal dialog box

From Dev

Show Modal Dialog/Confirmation Box Based on User Input in Code Behind/ASP.net

From Dev

Elm modal dialog box

From Dev

alert box not showing asp.net

From Dev

ASP.net Button on click not firing using Jquery Modal Dialog

From Dev

Open a jQuery (modal form) dialog form in ASP.NET gridview

From Dev

Modal dialog not showing on PrimeFaces 5

From Dev

Showing a modal dialog and getting results

From Dev

Textbox is not getting printed from a Dialog box in Javascript/Asp.net

From Dev

Regular Expression Validator Error in Dialog Box in Asp.net

From Dev

Asp.net required field validator issue with jquery dialog box

From Dev

Ways to open Save as Dialog box on button click in asp.net

From Dev

Color Dialog box not showing up

From Dev

Boostrap modal not showing on ASP.NET GridView template button click

From Dev

asp.net showing a box with a ok button when a link is clicked

From Dev

Modal Dialog Box using JQuery & AJAX

From Dev

How to handle modal-dialog box in Protractor?

From Dev

How to handle modal dialog box in Selenium?

From Dev

How to display a modal dialog box in ReactJS?

From Dev

Positioning a Modal-Dialog box within a Canvas

From Dev

Showing multiple templates within a single modal dialog

From Java

ActivityCompat.requestPermissions not showing dialog box

From Dev

android check box in alert dialog not showing

From Dev

Progress dialog box not showing in global AsyncTask class

From Dev

Angular material dialog box is not showing properly

From Dev

showing a dialog box based on a if/else statement

From Dev

ASP.NET MVC jQuery Ajax - close and refresh parent table from modal dialog

From Dev

ASP.NET C# open dialog box from code behind

From Dev

How to retrieve value from a form and insert into Modal Box using asp.net mvc4

Related Related

  1. 1

    TeamCity with showing a modal dialog box

  2. 2

    Show Modal Dialog/Confirmation Box Based on User Input in Code Behind/ASP.net

  3. 3

    Elm modal dialog box

  4. 4

    alert box not showing asp.net

  5. 5

    ASP.net Button on click not firing using Jquery Modal Dialog

  6. 6

    Open a jQuery (modal form) dialog form in ASP.NET gridview

  7. 7

    Modal dialog not showing on PrimeFaces 5

  8. 8

    Showing a modal dialog and getting results

  9. 9

    Textbox is not getting printed from a Dialog box in Javascript/Asp.net

  10. 10

    Regular Expression Validator Error in Dialog Box in Asp.net

  11. 11

    Asp.net required field validator issue with jquery dialog box

  12. 12

    Ways to open Save as Dialog box on button click in asp.net

  13. 13

    Color Dialog box not showing up

  14. 14

    Boostrap modal not showing on ASP.NET GridView template button click

  15. 15

    asp.net showing a box with a ok button when a link is clicked

  16. 16

    Modal Dialog Box using JQuery & AJAX

  17. 17

    How to handle modal-dialog box in Protractor?

  18. 18

    How to handle modal dialog box in Selenium?

  19. 19

    How to display a modal dialog box in ReactJS?

  20. 20

    Positioning a Modal-Dialog box within a Canvas

  21. 21

    Showing multiple templates within a single modal dialog

  22. 22

    ActivityCompat.requestPermissions not showing dialog box

  23. 23

    android check box in alert dialog not showing

  24. 24

    Progress dialog box not showing in global AsyncTask class

  25. 25

    Angular material dialog box is not showing properly

  26. 26

    showing a dialog box based on a if/else statement

  27. 27

    ASP.NET MVC jQuery Ajax - close and refresh parent table from modal dialog

  28. 28

    ASP.NET C# open dialog box from code behind

  29. 29

    How to retrieve value from a form and insert into Modal Box using asp.net mvc4

HotTag

Archive