Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Open a new webform in a new window from another webform


Message #1 by "Jos Verbeek" <oudev@w...> on Sat, 19 May 2001 10:29:40
Hello can anybody help me with this?



Has anybody a solution for the following , maybe simple, problem:

1 I use visual dot net beta 1.

2 I have a webform with the code behind in c#.

3 I want in the onclick event of a button of the webform ,open in a new 

window, a next webform.

  with Navigate i can go to a new webform, but i want to open a new, 

extra, window.

4 The frame of the click function looks like:

 		public void cmdFirst_Click (object sender, 

System.EventArgs e)

		{

		}

Greetings,

Jos

Message #2 by "Michiel van Otegem \(lists ONLY\)" <michiel_lists@a...> on Sat, 19 May 2001 19:03:09 +0200
As this is a server-side function, opening a new window is not possible

(that is client-side functionality). What you should do is attach a

client-side function that opens a new window, and if needed post into that.

Something like

<form target="MyNewWindow">





---

Michiel van Otegem

ASP/XML Teacher

off-list email:  michiel@a...



ASPNL.com / IT Composer

www:    http://www.aspnl.com

---

----- Original Message -----

From: "Jos Verbeek" <oudev@w...>

To: "aspx_beginners" <aspx_beginners@p...>

Sent: Saturday, May 19, 2001 10:29 AM

Subject: [aspx_beginners] Open a new webform in a new window from another

webform





> Hello can anybody help me with this?

>

> Has anybody a solution for the following , maybe simple, problem:

> 1 I use visual dot net beta 1.

> 2 I have a webform with the code behind in c#.

> 3 I want in the onclick event of a button of the webform ,open in a new

> window, a next webform.

>   with Navigate i can go to a new webform, but i want to open a new,

> extra, window.

> 4 The frame of the click function looks like:

>   public void cmdFirst_Click (object sender,

> System.EventArgs e)

> {

> }

> Greetings,

> Jos

  Return to Index