Solved

Message box to choose "Yes" and "No" using VBCode.

Posted on 2008-06-17
8
204 Views
Last Modified: 2011-04-14
Hi,

I have web application, when user press "Delete" button, first I want to check his authority to delete.
If he has the authority the I will show the message box for him to choose "Yes" "No".
Then the application will check his response to do something.

Please help how to do it.

Thank you.
0
Comment
Question by:emi_sastra
  • 4
  • 3
8 Comments
 
LVL 3

Expert Comment

by:amritgill
ID: 21810132
where r the users created as a Db user or r u using your own table to add the users
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 21810179
Hi,

I have taken care of the the authority.
I just need to show the "Yes/No" message box.

Thank you.
0
 
LVL 3

Expert Comment

by:amritgill
ID: 21810297
You have 2 choices: alert() or confirm() in JavaScript. Now, if you want
something fancier than that, you will have to write an ActiveX control or
Java applet to do it. My guess is you'll settle for confirm().


<form action="some-script.pl" onsubmit="return confirm ('Are you certain?')">
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Accepted Solution

by:
amritgill earned 500 total points
ID: 21810310
or u can even look at this

http://www.microsoft.com/india/msdn/articles/119.aspx

should solve ur problem
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 21810558
Hi,

Below are my code.

If Not ViewState("DelYN") Then Exit Sub

   If  btndelete.Attributes.Add("onclick", "ConfirmationWindow()") then //how to code this?

        DeleteRows()

   endif

Endif

Your code :
<form action="some-script.pl" onsubmit="return confirm ('Are you certain?')">

How to apply your code to my code?

Thank you.
0
 
LVL 3

Expert Comment

by:amritgill
ID: 21810643
your code is vb this is a java scorpt code
try using the dll from the other link given...
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 21810722
Hi,

I have download the dll, but I can not add the dll at toolbox. There is no add/remove items, just have choose items.

Why is it?

Thank you.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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