Avatar of santaspores1
santaspores1
Flag for United States of America asked on

Modal windows in asp.net

Hi,

I am developing .net apps using vb.net.  I would like to explore options for replacing popup windows (which users can disable) with modal windows of some kind.  There are going to be endless amounts of code for this by now, so I just want some help weeding through them.  My first use of this technique (and typical of what I want to do) is:  The user will be looking at a calendar.  When he/she clicks a date I want a modal window to display the events associated with that day and have options for adding and deleting events.  If events are changed in any way, closing the modal window will refresh the underlying calendar view.  

 In a perfect world, what I would like to find is:

Reliable well-proven methods that will work in IE firefox, safari and chrome
Example code written in vb.net
Example code that is well documented
Example code designed to help me learn modal windows… not to be copied and used with references

Can anyone point me to a really good match?  I know that there will be TONS of examples out
ASP.NETVisual Basic.NET.NET Programming

Avatar of undefined
Last Comment
santaspores1

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Anuradha Goli

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Nasir Razzaq

I really like this JQuery plugin

http://jquery.malsup.com/block/#demos
santaspores1

ASKER
Thank you!  However, I am really looking for something that shows me more than just a partial code snippet.  I need to know how to take an existing page written in vb.net and add a modal window to it.  So ideally, there would be some instructions on how to (for example):

take an existing asp.net page that only shows the value of a text string.  Add a modal window that prompts for a new string value and has an ok and cancel button.  If the cancel button is pressed, the modal window is deactivated.  If the ok button is pressed, the string value on the underlying document is updated and the model window deactivates, showing the new string value.
Ark

<script type="text/javascript">
var answer = prompt ("What is your name?"," santaspores1");
document.getElementById('nameDiv').InnerText='Hello ' + answer
</script>

Open in new window

I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
santaspores1

ASKER
Thanks!  This relies on a packaged dll... so I have not learned how to code this for myself... but it is easy enough to implement.