CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 7/20/2007 6:07:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 5 Views: 39 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
"asp.netlearner
NewsGroup User
multiple popup windows7/20/2007 6:07:33 PM

0

 

How to open multiple popup windows for a link button in a grid in asp.net using vb.net.I could able to open one window for one click,but when I'm trying to open another by clicking on the button the old window is getting overwritten and the new one opens.How can I overcome this. Help Me!
"deblendewim" <
NewsGroup User
Re: multiple popup windows7/21/2007 9:05:43 PM

0

Hi learner :p

Do you open your window with a javascript action? the window.open?

If this is the case, you should set the key parameter of that method to _blank. This way a new browser window is opened.

Below is an example which opens a new window on the linkbuttonclick:

 

    Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
        Page.ClientScript.RegisterStartupScript(Page.GetType, "popupOpener", "window.open('http://www.google.be', '_blank', 'height=500, width=500');", True)
    End Sub

 

I hope this helps!
Wim


Please mark the reply that resolved your problem!

A Must Read For All!! >> How to get your forum question answered - avoid thread-jacking
"aarti1434" <>
NewsGroup User
Re: multiple popup windows3/20/2009 6:39:50 AM

0

Hi ,

     How you solved this problem ? Please help me ..I am facing the same problem currently.

I am using c#. and using scriptmanager to open the window in code behind page.

Thanks & Regards,

 Aarti

"aravind730" <>
NewsGroup User
Re: multiple popup windows3/20/2009 7:23:10 AM

0

Hi

i tried in c# , faced a few problem , only a blank window was coming  . this code was working

    Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "popupOpener", "window.open('http://www.google.co.in', '_blank', 'height=500, width=500,scrollbars=1');", true);


Aravind
"aarti1434" <>
NewsGroup User
Re: multiple popup windows3/20/2009 9:40:23 AM

0

Hey Thanks it solved my problem Smile

Regards,

 Aarti

"aarti1434" <>
NewsGroup User
Re: multiple popup windows3/20/2009 9:40:25 AM

0

Hey Thanks it solved my problem Smile

Regards,

 Aarti

6 Items, 1 Pages 1 |< << Go >> >|




   
  Privacy | Contact Us
All Times Are GMT