Asp.Net: Javascript modal window

I would like to create a javascript modal popup to get some values ​​from the user on an ASP.Net 2.0 web page.

The basic idea is this. When the user clicks the button, a modal window appears and asks 3 or 4 questions. The Asp.net page cannot be changed while this window is not working. After answering the questions, I need to get the values ​​from this window so that the asp.net page has access to them and can process them in code.

May I give some examples of how to implement this scenario.

+3
source share
3 answers

- ModalPopupExtender, , jQuery thickbox - .

JS, .

+3

You can use the javascript function 'window.showModalDialog', but it only works in Internet Explorer.

You can pass and return any number of variables by wrapping them in an object.

+1
source

Source: https://habr.com/ru/post/1698379/


All Articles