Welcome Guest Search | Active Topics | Sign In | Register

MsgBox1_ButtonClick No se ejecuta Options
Joe
Posted: Tuesday, February 26, 2013 7:05:56 PM
Rank: Newbie
Groups: Member

Joined: 2/26/2013
Posts: 1
Estoy probando el control msgbox con el código de ejemplo:


protected void Button1_Click(object sender, EventArgs e)
{

MsgBox1.Show("Confirm Delete",
"Please confirm if you wish to delete this record (Just a demo, nothing is to be deleted really).", null,
new EO.Web.MsgBoxButton("Yes", null, "Delete"),
new EO.Web.MsgBoxButton("Cancel"));


}


protected void MsgBox1_ButtonClick(object sender, System.Web.UI.WebControls.CommandEventArgs e)
{
//Use the command name to determine which
//button was clicked
if (e.CommandName == "Delete")
{
//Proceed to delete....
TextBox5.Text = "Record has been deleted (Just a demo, nothing was really deleted).";
}
}

Pero el evento MsgBox1_ButtonClick no se ejecuta nunca, hay que considerar algo en especial?

Gracias.
eo_support
Posted: Wednesday, February 27, 2013 2:33:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Your code looks correct. You will want to check whether your MsgBox1_ButtonClick event handler is correctly hooked up (whether you have OnButtonClick="MsgBox1_ButtonClick" in your ASPX).

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.