Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

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
0
Dileepgn
Asked:
Dileepgn
1 Solution
 
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
 
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
 
DreamMasterCommented:
window.showModalDialog("test.aspx", window);

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

Regards,
Max.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now