Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

124
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda