Hi all,
I wrote a simple asp.net with JScript. But it doesn't work
properly. And I don't know why!
The CodeBehind:
Public Class WebForm1
Inherits System.Web.UI.P age
....
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles MyBase.Load
Button1.Attribu tes.Add("AutoPo stBack", "False")
Button1.Attribu tes.Add("onclic k", "openPopup( );")
End Sub
End Class
And the html in VisualStudio:
<HTML>
<HEAD>
<title>WebForm1 </title>
<meta content="Micros oft Visual Studio .NET 7.1"
name="GENERATOR ">
<meta content="Visual Basic .NET 7.1" name="CODE_LANG UAGE">
<meta content="JavaSc ript" name="vs_defaul tClientScript">
<meta
content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
<SCRIPT language="JScri pt">
var oPopup = window.createPo pup();
function openPopup()
{
var oPopBody = oPopup.document .body;
oPopBody.innerH TML="<DIV>This is a popup!</DIV>";
oPopup.show(15, 150,50,50,docum ent.body);
}
</SCRIPT>
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT:
174px; POSITION: absolute; TOP: 95px" runat="server"
Text="Button" Width="233px" Height="64px"
CausesValidatio n="False"></asp:Button></form>
</body>
</HTML>
Once started and clicked a message (This is a popup)
appears for some ms on the screen (And it doesn't look like
a popup window).
thanks for each help on this
Jenny
I wrote a simple asp.net with JScript. But it doesn't work
properly. And I don't know why!
The CodeBehind:
Public Class WebForm1
Inherits System.Web.UI.P age
....
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles MyBase.Load
Button1.Attribu tes.Add("AutoPo stBack", "False")
Button1.Attribu tes.Add("onclic k", "openPopup( );")
End Sub
End Class
And the html in VisualStudio:
<HTML>
<HEAD>
<title>WebForm1 </title>
<meta content="Micros oft Visual Studio .NET 7.1"
name="GENERATOR ">
<meta content="Visual Basic .NET 7.1" name="CODE_LANG UAGE">
<meta content="JavaSc ript" name="vs_defaul tClientScript">
<meta
content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
<SCRIPT language="JScri pt">
var oPopup = window.createPo pup();
function openPopup()
{
var oPopBody = oPopup.document .body;
oPopBody.innerH TML="<DIV>This is a popup!</DIV>";
oPopup.show(15, 150,50,50,docum ent.body);
}
</SCRIPT>
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT:
174px; POSITION: absolute; TOP: 95px" runat="server"
Text="Button" Width="233px" Height="64px"
CausesValidatio n="False"></asp:Button></form>
</body>
</HTML>
Once started and clicked a message (This is a popup)
appears for some ms on the screen (And it doesn't look like
a popup window).
thanks for each help on this
Jenny
Comment