Link to home
Start Free TrialLog in
Avatar of stev0931
stev0931

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of TornadoV
TornadoV
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stev0931
stev0931

ASKER

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)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial