Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/11/2007, 15:24
borjagat
 
Fecha de Ingreso: junio-2007
Mensajes: 380
Antigüedad: 16 años, 11 meses
Puntos: 0
ONClientClick ONClick

Hola
TEngo un boton con un onclientclick y onclick y no sé porque solo se ejecuta el onclientclick y no se hace el postaback.

protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this.ButtonSubir.Attributes.Add("onclick", "javascript:alert('hola');"+this.FindFile.ClientID +".click();"+"copy(\'" + this.FindFile.ClientID+"\', \'"+ TextBoxFichero.ClientID + "\');alert('adios');");

}
}

<asp:Button ID="ButtonSubir" runat="server" CommandName="edit2" OnClick="borja" />

--> El código generado solo incluye los atributos. Que he realizado mal?