Hi
I develop a custom control inheriting from System.Web.UI.WebControls.WebParts.WebPart.
I have this code in a button in the control:
private Button btnSave = new Button();
btnSave.Text = " Save ";
btnSave.OnClientClick = "confirm('client');";
btnSave.Click += new EventHandler(btnSave_Click);
and so on
But when the user clicks on the button, I get the confirm pop up message. But even when I click Cancel there is still a postback
Do u have a trick for me pls?
Thanks




Reply With Quote