Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda