在asp.net中的另一个窗口上打开一个窗口

在asp.net中的另一个窗口上打开一个窗口,asp.net,Asp.net,我想在aspx表单上有一个按钮(使用vb.net) 该按钮将打开一个较小的表单,其中有一些文本解释需要完成的内容。 有人有关于如何做到这一点的示例代码吗 我希望新窗口只是在当前窗口前面弹出。 谢谢使用javascript窗口。打开方法可打开一个新窗口 var mywindow = window.open("myhelpPage.html, '', 'status=1,width=700, height=600,scrollbars=1,res

我想在aspx表单上有一个按钮(使用vb.net) 该按钮将打开一个较小的表单,其中有一些文本解释需要完成的内容。 有人有关于如何做到这一点的示例代码吗

我希望新窗口只是在当前窗口前面弹出。
谢谢

使用javascript
窗口。打开
方法可打开一个新窗口

var mywindow = window.open("myhelpPage.html, '', 'status=1,width=700,
                           height=600,scrollbars=1,resizable=1,top=10,left=200');

这将打开一个新窗口。如果您想要任何新奇的模型弹出窗口,有很多javascript插件可以实现这一点。我用过和。插件(这需要页面中的jQuery库)

有很多选项。您可以包括jQuery UI()并创建如下对话框:

<html lang="en">
<head>
   <meta charset="utf-8" />
  <title>jQuery UI Dialog - Default functionality</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <script>
  $(function() {
     $( "#dialog" ).dialog();
  });
  </script>
</head>
<body>

<div id="dialog" title="Basic dialog">
  <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>


</body>
</html>

jQuery UI对话框-默认功能
$(函数(){
$(“#dialog”).dialog();
});
这是用于显示信息的默认对话框。可以使用“x”图标移动、调整和关闭对话框窗口


我建议使用模式而不是弹出窗口: