Hello everyone !!

This is my problem, Im justing a alert to ask the user to if he is realy sure to delete something. If he clicks ok it is delete of not, nothing happens.
Everything was fine so far.

(btw I'm talking about a code behinde page combined with asp.net)

This is how I lanch the popup
Code:
Button2.Attributes.Add("OnClick","return confirm('Are you sure you want to delete the item?')");
So I add an Attribiute to my button.

Next I use a RequiredFieldValidator to check if a textbox is fill in.
Code:
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
and in my asp page
Code:
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
Now the problem is, that the validation works, but one way or an other it cancels the pop up.

Does someone know what the problem is , or if there is a way to use them both at the same time?

Greetzz ChenZy