?
Solved

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

Posted on 2008-06-17
8
Medium Priority
?
209 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
7 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 3

Accepted Solution

by:
amritgill earned 2000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses

749 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