Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2011, 01:49 PM
Authorized User
 
Join Date: Feb 2011
Posts: 21
Thanks: 9
Thanked 0 Times in 0 Posts
Default Button1 - Window1, Button2 - Window2

Hi,

Can anyone help?
I'm working in a default.aspx file.
I have three buttons, Button1, Button2 and Button3.

I want to open 3 different windows (400px x 400px) or frames or somthings
with those buttons, but I don't manage to do so.

I have tryed the windows_open() function, with no luck.
I can open one or several windows with Button1, but not a window2 with Button2.

Does anyone here have a solution?

Thanks
JimP
 
Old February 9th, 2011, 01:53 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Jim,

Can you show us the code you're working on?

Also, this sounds like a client side issue so you may get better responses in a JavaScript category here at p2p.wrox.com.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
JimP (February 11th, 2011)
 
Old February 9th, 2011, 02:25 PM
Authorized User
 
Join Date: Feb 2011
Posts: 21
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Hi, and thanks.

Here is some code:

<script type="text/javascript">
function open_win() {
window.open("http://www.wrox.com", "_blank", "toolbar=no, resizable=no, copyhistory=yes, width=400, height=400");
}
</script>

<body>
<form id="form1" runat="server">
<p>
<table cellpadding="0" class="style1">
<tr>
<td class="style2">
<input type="button" value="Button1" onclick="open_win()" /></td>
<td>
<input type="button" value="Button2" onclick="open_win()" /></td>

JimP
 
Old February 9th, 2011, 02:47 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I just posted a reply in the other thread: Button1 - Window1, Button2 - Window2

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
JimP (February 11th, 2011)









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.