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
So I add an Attribiute to my button.Code:Button2.Attributes.Add("OnClick","return confirm('Are you sure you want to delete the item?')");
Next I use a RequiredFieldValidator to check if a textbox is fill in.
and in my asp pageCode:protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
Now the problem is, that the validation works, but one way or an other it cancels the pop up.Code:<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
Does someone know what the problem is , or if there is a way to use them both at the same time?
Greetzz ChenZy




Reply With Quote