473,813 Members | 3,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

force aspx page in new viewer?

I have an aspx page that is always invoked by Response.Redire ct calls from
other pages. I want my aspx page to always display in a new browser window.
Since the Response.Redire ct calls from the other pages can't inoke _blank as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window without using javascript?
Thanks,
Tina

Nov 18 '05 #1
6 2822
instead of a _blank for the name, pass a random value
window.open(pag e,System.Text.R egularExpressio n.Regex.Replace (DateTime.Now," \\D",string.emp tye)...

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"T. Seaburn" <ti**********@r emovespamexcite .com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I have an aspx page that is always invoked by Response.Redire ct calls from
other pages. I want my aspx page to always display in a new browser
window.
Since the Response.Redire ct calls from the other pages can't inoke _blank
as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window without using javascript?
Thanks,
Tina

Nov 18 '05 #2
You can't open a new browser window without using client-side scripts.

"T. Seaburn" <ti**********@r emovespamexcite .com> ¦b¶l¥ó
news:%2******** ********@TK2MSF TNGP11.phx.gbl ¤¤¼¶¼g...
I have an aspx page that is always invoked by Response.Redire ct calls from
other pages. I want my aspx page to always display in a new browser window. Since the Response.Redire ct calls from the other pages can't inoke _blank as a target value, is there any way I can ensure that my aspx page always
displays in a new browser window without using javascript?
Thanks,
Tina

Nov 18 '05 #3
Tha's not true. put an ordinary hyperlink on any aspx page and set it's
target to _blank. execute that hyperlink and the new aspx page will display
in a new window - no client script involved. I do it all the time.
T

"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:OD******** ********@TK2MSF TNGP09.phx.gbl. ..
You can't open a new browser window without using client-side scripts.

"T. Seaburn" <ti**********@r emovespamexcite .com> ¦b¶l¥ó
news:%2******** ********@TK2MSF TNGP11.phx.gbl ¤¤¼¶¼g...
I have an aspx page that is always invoked by Response.Redire ct calls from other pages. I want my aspx page to always display in a new browser window.
Since the Response.Redire ct calls from the other pages can't inoke

_blank as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window without using javascript?
Thanks,
Tina


Nov 18 '05 #4
Seems that there isn't any click() method associated with HyperLink control,
how would you "execute" it without using client-side script?

Btw, the client-side functionalities of ASP.NET are in fact implemented by
client-side scripts such as the __doPostBack() function.

"GaryB" <gb@nospam.co m> ¦b¶l¥ó news:Oj******** ******@TK2MSFTN GP09.phx.gbl ¤¤
¼¶¼g...
Tha's not true. put an ordinary hyperlink on any aspx page and set it's
target to _blank. execute that hyperlink and the new aspx page will display in a new window - no client script involved. I do it all the time.
T

"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:OD******** ********@TK2MSF TNGP09.phx.gbl. ..
You can't open a new browser window without using client-side scripts.

"T. Seaburn" <ti**********@r emovespamexcite .com> ¦b¶l¥ó
news:%2******** ********@TK2MSF TNGP11.phx.gbl ¤¤¼¶¼g...
I have an aspx page that is always invoked by Response.Redire ct calls from other pages. I want my aspx page to always display in a new browser

window.
Since the Response.Redire ct calls from the other pages can't inoke

_blank
as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window without using javascript?
Thanks,
Tina



Nov 18 '05 #5
the user simply clicks on a hyperlink - no need for an event. Point is that
you don't need javascript to pop up a new window so if it can be done by a
hyperlink (without javascript) the notion was that there must be some way to
do it from code (without javascript)

"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:OJ******** ******@tk2msftn gp13.phx.gbl...
Seems that there isn't any click() method associated with HyperLink control, how would you "execute" it without using client-side script?

Btw, the client-side functionalities of ASP.NET are in fact implemented by
client-side scripts such as the __doPostBack() function.

"GaryB" <gb@nospam.co m> ¦b¶l¥ó news:Oj******** ******@TK2MSFTN GP09.phx.gbl ¤¤ ¼¶¼g...
Tha's not true. put an ordinary hyperlink on any aspx page and set it's
target to _blank. execute that hyperlink and the new aspx page will

display
in a new window - no client script involved. I do it all the time.
T

"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:OD******** ********@TK2MSF TNGP09.phx.gbl. ..
You can't open a new browser window without using client-side scripts.

"T. Seaburn" <ti**********@r emovespamexcite .com> ¦b¶l¥ó
news:%2******** ********@TK2MSF TNGP11.phx.gbl ¤¤¼¶¼g...
> I have an aspx page that is always invoked by Response.Redire ct calls
from
> other pages. I want my aspx page to always display in a new browser
window.
> Since the Response.Redire ct calls from the other pages can't inoke

_blank
as
> a target value, is there any way I can ensure that my aspx page

always > displays in a new browser window without using javascript?
> Thanks,
> Tina
>
>
>



Nov 18 '05 #6
I posted this in your other question

Response.Write( "<script
type='text/javascript'>det ailedresults=wi ndow.open('Deta iledResults.asp x');</script>")

"T. Seaburn" wrote:
I have an aspx page that is always invoked by Response.Redire ct calls from
other pages. I want my aspx page to always display in a new browser window.
Since the Response.Redire ct calls from the other pages can't inoke _blank as
a target value, is there any way I can ensure that my aspx page always
displays in a new browser window without using javascript?
Thanks,
Tina

Nov 18 '05 #7

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

Similar topics

5
7214
by: Pete Wason | last post by:
Hiall! I have a demo viewer page for javascript stuff that has three buttons "DEMO" "HTML" and "JSCR", and an IFRAME called 'viewer'. Initially, the IFRAME gets loaded with the actual demo page, ie., viewer.location = dName + '.html'; where dName is the filename of the demo without extension.
1
1928
by: london calling | last post by:
Hi everyone, I am developing an application which uses custom httpmodules and httphandlers to display 'portaled' content. (asp.net 1.1) The front end consists of aspx templates which contain masterzones which in turn have subzones which in turn have modules. (sound familiar!!) when a request is received an httpmodule looks at the hostname to determine which portal the request is for before working out which page is being requested and...
8
16550
by: Keith H | last post by:
I'm looking for a way to force the user to re-authenticate with their Windows username/password/domain after clicking the submit button on an ASP.NET page. This is for an internal application. Does anyone know if/how this can be done?
13
51718
by: ron1972 | last post by:
Hi I have a large pdf file that if I create an anchor link to, the browser will try to open the file, which takes quite a long time. Is there a way to force the browser to download the file rather than try to open it? Thankss
9
3090
by: Andrew Poulos | last post by:
I have some js that looks like this: fOpenPDFInNewWindow = function(url,page) { var page = page || 1; newPDF = window.open(url+"#pagemode=bookmarks&page="+page, "location=no,menubar=no;toolbar=no,scrollbars=no,width="+800+",height="+600+"\""); } and some HTML that looks like this:
7
21748
by: steve | last post by:
Hi All I have created rdlc files and when I load them into Report Viewer at run time they appear OK If I click on 'Print layout' button on Report Viewer the view again appears acceptable If I click on 'Page setup' button the margins left & right are not what I set on the rdlc file at design time (1.5cm) they are 5.9mm
6
12065
by: =?Utf-8?B?QWxoYW1icmEtRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello mister, I want to use AcroPDF.dll (ActiveX for Acrobat Reader 7.0) in an application web ASP.NET 2.0. My question, it is possible ?? What I can do about it ? The target for me is load PDF files in a ASPX page. Thanks, mister. Greetings. --
1
3639
by: DevNll2002 | last post by:
Can it be done? ( This is a related issue to my recent post... http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/a229a66642bedfaf/870614ae257ae699 ...but with a twist. ) Here's the scenario: Method in MyMaster.master.cs: public void Logout(object sender, EventArgs e)
1
5641
by: William LaMartin | last post by:
I have an aspx page, A.aspx, that uses some xml. The source of the xml is another aspx page, B.aspx. B.aspx is populated with xml by code that depends on several Session variables. This all works fine the first time you load A.aspx. however, on subsequent times--with changed session variables--A.aspx is the same, as is B.aspx, if you check it. However, B.aspx is not really the same, since if you refresh the browser, B.aspx will then...
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9607
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10667
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10407
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10422
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10139
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5568
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.