Solved

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

Posted on 2008-06-17
8
201 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now