• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

Posting an OK/cancel dialogue box using ASP.NET/VB.NET 2005

I have used the following code:

im.Attributes.Add("onclick", "if(confirm('The selected record will now be removed.')){}else{return false}")
(where im is a hyperlink or imagebutton)

to make a dialogue box appear that has the options OK and cancel, where cancel does nothing and OK will go to the navigateurl method of the hyperlink.

The problem is this: I would like to make 2 customizations of this dialogue box:
  1) Display a custom title, rather than Microsoft Internet Explorer
  2) Have the buttons say YES and NO, YES and CANCEL, or YES, NO, AND CANCEL

Any suggestions would be most appreciated.
  • 2
2 Solutions
Here you can download a solution:

stev0931Author Commented:
Is there anyway I can accomplish what I'm after with a slight modification of the code I already have? (Since that would keep this quite simple)
Unfortunately the answer is 'No', I don't think you can customize confirm message box to accommodate your requirements.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now