Bringing up a modal window from an aspx page

Hi,

I want to bring up a popup window(modal window) in an aspx page , while clicking on a link button and don't allow to click any where else until this form is closed.

I am working with C#, ASP.Net and Java Script.

Thanks
RD
DileepgnAsked:
Who is Participating?
 
rdivilbissCommented:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="popupWindow.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script>
function popup() {
  var mywin = window.open("http://localhost/mypage.htm","test","height=200,width=400,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no");
}
</script>
</head>
<body ms_positioning="GridLayout">

<form id="Form1" method="post" runat="server"><input id="b1" style="Z-INDEX: 102; LEFT: 41px; POSITION: absolute; TOP: 29px" type="button" value="Open Popup" name="b1" onclick="popup();">

</form>

</body>
</html>
0
 
justinbilligCommented:
http://www.eglop.com/Contents/Downloads1.asp

There is a site my instructor put up with coding examples. Download the code for the ASP.Net pages( Modal with Web Services )

0
 
DreamMasterCommented:
window.showModalDialog("test.aspx", window);

Should work if I am not totally daft here...

Regards,
Max.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.