Hi
I want to display message in BootStrap Modal Popup if Result != null
JavaScript
if (Result != null)
{
ShowMessage("Error", "Invalid Date or Time Selected", "error");
}Thanks
Hi
I want to display message in BootStrap Modal Popup if Result != null
if (Result != null)
{
ShowMessage("Error", "Invalid Date or Time Selected", "error");
}Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tuhin PaulRank #7 · 71.9K reputationPosted Apr 2, 2023, 5:33 PM EDT
I think you should add a div element for the modal popup in your HTML
now you should add a script to show the modal popup if Result is not null
@if (Result != null) { $(document).ready(function () { $('#myModal').modal('show'); }); }Sachin SinghRank #66 · 26.2K reputationPosted Apr 2, 2023, 2:14 PM EDT
please share you ShowMessage function, also what does Result variable returns ?