Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2006-05-15
3
Medium Priority
?
252 Views
Last Modified: 2008-01-09
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.
0
Comment
Question by:stev0931
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
TornadoV earned 1500 total points
ID: 16684622
Here you can download a solution:

http://www.metabuilders.com/Tools/DialogWindow.aspx
0
 

Author Comment

by:stev0931
ID: 16684721
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)
0
 
LVL 11

Assisted Solution

by:TornadoV
TornadoV earned 1500 total points
ID: 16684780
Unfortunately the answer is 'No', I don't think you can customize confirm message box to accommodate your requirements.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question