Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/02/2010, 09:11
chamako1988
 
Fecha de Ingreso: octubre-2009
Mensajes: 14
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: imagenbutton + confirm de javascript

Tu funcion javascript que se esta

function mensajeConfirm(e, mensaje)
{
if(!confirm(mensaje)){
if(window.event){
window.event.cancelBubble=true;
window.event.returnValue=false;
}
if(e && e.preventDefault){
e.preventDefault();
e.stopPropagation();

}
}
}

Y EN EL IMAGEBUTTON DEL GRIDVIEW LE PONES ASI

<asp:TemplateField><ItemTemplate>
<asp:ImageButton ID="ImbEliminar" CssClass="detail" runat="server" CommandArgument='<% # Container.DataItemIndex %>'
CommandName="Del" ImageUrl="~/imagen/btnDelete.gif" OnClientClick="mensajeConfirm(event, '¿ Desea Eliminar el Tipo De Administrado Seleccionado ?')"
ToolTip="Eliminar" />

</ItemTemplate>

<ItemStyle Width="15px"></ItemStyle>
</asp:TemplateField>


ME AVISAS QUE TAL TE FUE SUERTE