Hi
I have below code and i want when user click on linkbutton confirmation dialog should open. If user press ok then function should get executed.
Code
Push SessionThanks
Hi
I have below code and i want when user click on linkbutton confirmation dialog should open. If user press ok then function should get executed.
Push SessionThanks
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
Rajkiran SwainRank #165 · 14.4K reputationPosted Mar 30, 2023, 9:47 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Mar 30, 2023, 9:49 AM EDT
Hi Rajkiran
Can't modal form can get opened
Thanks
Rajkiran SwainRank #165 · 14.4K reputationPosted Mar 30, 2023, 9:56 AM EDT
It is possible to open a modal form when the LinkButton is clicked, but it requires additional code to be added to the OnClick event handler. Here is an example of how to open a modal form using Bootstrap and jQuery:
$(document).ready(function() { $("#lnkPush").click(function() { $("#myModal").modal(); }); });When the LinkButton is clicked, the modal form will be displayed. You can customize the modal form by changing the HTML and CSS.
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 30, 2023, 11:58 AM EDT
Hello Ramco,
You can try this one,
div class="col-md-6"> Push Session $(function () { $("#lnkPush").click(function (e) { if (confirm("Are you sure?")) { console.log('Form is submitting'); } else { console.log('User clicked no.'); } }); });