Solved

Pop Bootstrap Modal On Load MVC

Posted on 2016-08-23
2
58 Views
Last Modified: 2016-08-24
I use to use this using webforms to pop a modal on load

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        ScriptManager.RegisterStartupScript(Me, [GetType](), "Show Modal Popup", "$('#modalSearch').modal('show');", True)
    End Sub

Open in new window


Can anyone tell me how to do it using MVC
0
Comment
Question by:edjones1
2 Comments
 
LVL 11

Accepted Solution

by:
louisfr earned 500 total points
ID: 41768284
I would put it in the page directly.
<script type="text/javascript">
    $(function() {
        $('#modalSearch').modal('show');
    });
</script>

Open in new window

0
 

Author Closing Comment

by:edjones1
ID: 41768341
Perfect
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now