Solved

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

Posted on 2008-06-17
8
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

688 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