Solved

Open dialog form from code behind in middle of sub

Posted on 2013-12-09
3
267 Views
Last Modified: 2014-03-04
I have a scenario where the user clicks a button. The code behind checks a few things and if  certain conditions exist, then I need to popup a box asking for a supervisor password. If the password is correct, the code should continue processing.

I am able to do this with a simple javascript prompt box but the problem is the password input really should be masked. So I thought I should create a custom dialog where I could control the input textbox. This custom dialog is simply another form.

I have tried a numerous versions of javascript to get this to work, but have failed in every attempt. Can anyone help me?

The button click event ideally would go like this:
If ..... then
     show dialog form
     if password = false then
           exit sub
    end if
Continue on with the code behind
0
Comment
Question by:Lisa412
[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
3 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 500 total points
ID: 39707661
Have you checked out jQuery UI?  jQuery UI provides highly customizable dialog boxes that can be easily programmed to do just about anything you need it to do.  Check out the example of the masked password here (you'll need to click on the link that says "Modal form", then the button that says, "Create new user", then type something into the password field to see the example.)  You can add AJAX to the back end so that you can do database queries and verify passwords very easily.  If you like the idea of using this UI, I can give you some examples of how the AJAX interface would work.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 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