473,395 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

New brower in ASP.Net but not a Pop up

Hello,

I wonder how I can open up a new browser from asp.net, I don't want a
pop up as users' machine might stop them from having pop. I use the
jscript window.ope, but that is a pop up. Can you please let me know
the alternative for having a new window up, but not pop-up please?

Thanks in advance.
Wanda

Jan 26 '06 #1
4 1297
If you want to open the new window from a link, you can set the target
attribute to _blank
<sw**********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I wonder how I can open up a new browser from asp.net, I don't want a
pop up as users' machine might stop them from having pop. I use the
jscript window.ope, but that is a pop up. Can you please let me know
the alternative for having a new window up, but not pop-up please?

Thanks in advance.
Wanda

Jan 26 '06 #2
popups (window.open) are allowed when tied to a click onclick event, or in a
hyperlink.

<a href:="newpage.aspx" target="_blank">click here to open a new
window</a>

or

<button onclick="window.open('newpage.aspx');" value="click here to open
new window">

-- bruce (sqlwork.com)
<sw**********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I wonder how I can open up a new browser from asp.net, I don't want a
pop up as users' machine might stop them from having pop. I use the
jscript window.ope, but that is a pop up. Can you please let me know
the alternative for having a new window up, but not pop-up please?

Thanks in advance.
Wanda

Jan 26 '06 #3
I can use href, as that has to be a button. Secondly, I am using
asp:button. I have just tried making it
<asp:button onclick="..."> but it doesn't work. Besides, before the
page is redirected, I need to do quite a few checking from the code, if
it didn't pass, there will be no redirection.

In that case, how can I get this done?
Thanks in advance. Any help would be greatly appreciated.
Bruce Barker wrote:
popups (window.open) are allowed when tied to a click onclick event, or in a
hyperlink.

<a href:="newpage.aspx" target="_blank">click here to open a new
window</a>

or

<button onclick="window.open('newpage.aspx');" value="click here to open
new window">

-- bruce (sqlwork.com)
<sw**********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I wonder how I can open up a new browser from asp.net, I don't want a
pop up as users' machine might stop them from having pop. I use the
jscript window.ope, but that is a pop up. Can you please let me know
the alternative for having a new window up, but not pop-up please?

Thanks in advance.
Wanda


Jan 26 '06 #4
You can use this in the code behind:
Response.Write("<script>window.open(""PageName.asp x"",""FrameName"");</script>")
<sw**********@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I can use href, as that has to be a button. Secondly, I am using
asp:button. I have just tried making it
<asp:button onclick="..."> but it doesn't work. Besides, before the
page is redirected, I need to do quite a few checking from the code, if
it didn't pass, there will be no redirection.

In that case, how can I get this done?
Thanks in advance. Any help would be greatly appreciated.
Bruce Barker wrote:
popups (window.open) are allowed when tied to a click onclick event, or
in a
hyperlink.

<a href:="newpage.aspx" target="_blank">click here to open a new
window</a>

or

<button onclick="window.open('newpage.aspx');" value="click here to
open
new window">

-- bruce (sqlwork.com)
<sw**********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
> Hello,
>
> I wonder how I can open up a new browser from asp.net, I don't want a
> pop up as users' machine might stop them from having pop. I use the
> jscript window.ope, but that is a pop up. Can you please let me know
> the alternative for having a new window up, but not pop-up please?
>
> Thanks in advance.
> Wanda
>

Jan 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Richard Bell | last post by:
I'm returning to Perl and Linux after many years away and while I know/knew way back when about Perl and Unix I'm new to this world today. I'm considering using LWP as the heart of a Web...
1
by: Obscurr | last post by:
hi, I'm trying to close a browser window, from a window that has been opened using the window.open method. I've tried amongst others: opener.close() <windowname>.close() top.close()...
2
by: Abe Frohnman | last post by:
I'm looking for code that will launch the default browser to a webpage when an event occurs. Specifically, when an item is selected from the menu. Can anyone point me in the right direction?
2
by: Duncan Welch | last post by:
I've got a very simple bit of code that needs to work with IE, Firefox, and Opera on the PC and the Mac: Sound Bite: <asp:TextBox ID="txtEditSoundBite" Width=500 height=600 TextMode="MultiLine"...
3
by: Waldy | last post by:
Hi there, is it possible to disable the browser back button, or trap the event and stop it?
3
by: Tina | last post by:
I am testing for brower type and version. When I use my FireFox version 1.07 browser I'm getting Netscape5 for type and 5.0 for version. Why? Thanks, T
3
by: tshad | last post by:
I have noticed that if I open an IE session and log onto my site. I can open another browser session and that browser will have same session variables as the first. This causes problems for my...
3
by: libsfan01 | last post by:
hi all what is the quickest way to the redirect the user's browser to another page dependent upon what browser they have? Ideally id like it to occur b4 the page content loads (which can take a...
1
by: JOJO123 | last post by:
I got here in search of an answer to this Javascrpt question. I upgraded jave on XP Ie 7, acrobat 5.1 and suddenly can't open any pdf files on web sites using IE. I see u guys all say, this is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.