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

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.
LVL 1
emi_sastraAsked:
Who is Participating?
 
amritgillConnect With a Mentor Commented:
or u can even look at this

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

should solve ur problem
0
 
amritgillCommented:
where r the users created as a Db user or r u using your own table to add the users
0
 
emi_sastraAuthor Commented:
Hi,

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

Thank you.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
amritgillCommented:
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
 
emi_sastraAuthor Commented:
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
 
amritgillCommented:
your code is vb this is a java scorpt code
try using the dll from the other link given...
0
 
emi_sastraAuthor Commented:
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
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.

All Courses

From novice to tech pro — start learning today.