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.
|
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!
|