Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

123
Views
LinkButton and jquery

<script type="text/javascript">
    $(function () {
        $("[id*=btnDelete]").removeAttr("onclick");
        $("#dialog").dialog({
            modal: true,
            autoOpen: false,
            title: "Confirmation",
            width: 350,
            height: 160,
            buttons: [
                {
                    id: "Yes",
                    text: "Yes",
                    click: function () {
                      $("[id*=btnDelete]").attr("rel", "delete");
                        $("[id*=btnDelete]").click();
                    }
                },
                {
                    id: "No",
                    text: "No",
                    click: function () {
                        $(this).dialog('close');
                    }
                }
            ]
        });
      $("[id*=btnDelete]").click(function () {
            if ($(this).attr("rel") != "delete") {
                $('#dialog').dialog('open');
                return false;
            } else {
                __doPostBack(this.name, '');
            }
        });
    });
</script>
  <asp:LinkButton ID="btnDelete"   CssClass="ui-icon" runat="server"  OnClick="DeleteRecord" >
                  <div  class="icon-lougou"></div><br /> <span>logout</span></asp:LinkButton>

   

the dialog is show put not firing on onclick DeleteRecored can not firing the onlick after show dialog

the dialog is show put not firing on onclick DeleteRecored can not firing the onlick after show dialog

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use OnClientClick property:

<asp:LinkButton ID="btnDelete"   CssClass="ui-icon" runat="server"  OnClientClick="DeleteRecord();" >

As per the docs:

The OnClientClick property is used to sets a client side script to be run when the Button control is clicked

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!