It can be nearly anything. First of all, it's not a good idea to directly transfer the UI ideas from Swing to WebForms, where the basics of technology are very different. By this reason, there is no exact "input equivalent", and cannot be. What to do practically, depends on what exactly you want to achieve. Similarity to
JOptionPane
cannot be a real goal. The real goal should be formulated in semantically sensitive form.
First of all
JOptionPane
is used to pop-up some dialog. It's a bad idea to pop-up a web page. Such action is intrusive, inconvenient for the users, and will be blocked by many through some browser plug-in. At the same time, if you really need some modal behavior, you can mimic it on the same page, which should work perfectly fine. One way to do it is the jQuery UI dialog plug-in:
https://jqueryui.com/dialog[
^].
Also, you can find many 3rd-party jQuery plugin collectively known as "modal popup", featuring different visual effects and styles, such as transitions, and, notably, dimming of the rest of the page. Please see:
http://bfy.tw/AJH[
^].
If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery,
http://jquery.com,
http://learn.jquery.com,
http://learn.jquery.com/using-jquery-core,
http://learn.jquery.com/about-jquery/how-jquery-works (start from here).
But, more importantly, re-thing the whole idea. Do you really need to input data in a modal manner, to give a modal request to a user? How about a way more powerful model where the user can edit some changes in data at any moment of time? It may need more work, but can provide a lot more usability. The area for entering the parameters can be something line a "div", or some
extender control (
http://bfy.tw/1ccA[
^]).
As I say, it can be nearly anything.
—SA