473,394 Members | 1,742 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,394 software developers and data experts.

How can I use Server.Transfer with Pop Up Window?

Hello,
is there a solution to use server.transfer like this:

Server.Transfer("javascript:void
window.open('webform2.aspx','testwindow','menubar= 1,scrollbars=1,width=600,h
eight=400')")

I get an error message: Invalid path for child request 'javascript:void
window.open......
Thanks for any answer in advance!
Andreas
Nov 18 '05 #1
3 3411
you can't.

Server.Transfer can only transfer to an asp.net page in the same
application. When you call Server.Transfer, it just creates an instance of
the specified page and transfers page processing from the current page to
the new page.

-- bruce (sqlwork.com)
"Andreas Klemt" <ak******@hotmail.com> wrote in message
news:#s**************@TK2MSFTNGP11.phx.gbl...
Hello,
is there a solution to use server.transfer like this:

Server.Transfer("javascript:void
window.open('webform2.aspx','testwindow','menubar= 1,scrollbars=1,width=600,h eight=400')")

I get an error message: Invalid path for child request 'javascript:void
window.open......
Thanks for any answer in advance!
Andreas

Nov 18 '05 #2
You can't.
Window.Open is purely a client side function, while Server.Transfer is
purely a server side function (as the name implies.)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Andreas Klemt" <ak******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,
is there a solution to use server.transfer like this:

Server.Transfer("javascript:void
window.open('webform2.aspx','testwindow','menubar= 1,scrollbars=1,width=600,h eight=400')")

I get an error message: Invalid path for child request 'javascript:void
window.open......
Thanks for any answer in advance!
Andreas

Nov 18 '05 #3
What you need is not to server.transfer but instead to send back to the
client a page that has a script that opens a window. For example:
<html><head><script> window.open (...) </script></head><body></body></html>

If you want to keep the launching window's contents in tact you will
obviously have to prepare the page as before just add the script to open the
window.

Regards,
Eran
"Andreas Klemt" <ak******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,
is there a solution to use server.transfer like this:

Server.Transfer("javascript:void
window.open('webform2.aspx','testwindow','menubar= 1,scrollbars=1,width=600,h eight=400')")

I get an error message: Invalid path for child request 'javascript:void
window.open......
Thanks for any answer in advance!
Andreas

Nov 18 '05 #4

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

Similar topics

12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
2
by: fhadlaq | last post by:
I need a little help here.. I want to transfer ONLY new records AND update any modified records from Oracle into SQL Server using DTS. How should I go about it? a) how do I use global variable...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
1
by: Craig Banks | last post by:
I have 2 ASP.Net solutions/projects. I want to use Server.Transfer in one solution/project to call the aspx webform in the second solution/project. When I try it I get an error message. My call is...
1
by: thomson | last post by:
Hi all, In Javascript we have the option of not showing the title bar, address bar through the window.open function, Is there any option in Server.transfer or Response.redirect to hide the...
2
by: Chris Podmore | last post by:
This is driving me mad so any help will be much appreciated. I have an html page with 3 frames, banner, left and right. The banner frames source is an aspx page. The aspx page has two buttons,...
2
by: RJN | last post by:
Hi Is it possible to a server.transfer and open the page in a new window? I need to pass values between forms and hence using server.transfer. I do not want to use query string for passing...
7
by: kaburke | last post by:
Is there a way to make a page at the receiving end of a Server.Transfer think that the request is a Postback? (When I say "think it is a Postback," I mean I want the page to go through the ENTIRE...
1
by: =?Utf-8?B?c2hldWVydHo=?= | last post by:
Hi, I'm developing a reporting app that works as a subordinate to other apps, ie, users still see the menu structure for the app they're working in, but generate their report in my app. When...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.