473,394 Members | 1,722 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.

Server.Transfer - Open page in new window

RJN
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 values.

Regards

Rjn

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
2 6680
No, you cant open a new window by using server.transfer. But other way to
pass values to new window is by using window.showmodaldialog method to open
a new window and then pass the values in argument parameter.. For more
details, refer this link
http://msdn.microsoft.com/library/de...matstrings.asp

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"RJN" <rj*@yahoo.com> wrote in message
news:eS****************@TK2MSFTNGP12.phx.gbl...
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 values.

Regards

Rjn

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #2

RJN,

You can use the context.items to capture your form values and transfer
them usign viewstate in your click/submit event..

something like this:

Context.Items.Add ("Table",Me.lsttables.SelectedValue)
Context.Items ("p_dml") = p_dml
Context.Items ("WageAmount") = Me.txtAmount.Text
Server.Transfer("index.aspx", True)

hth

dave

Nov 19 '05 #3

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,...
6
by: JohnG | last post by:
Hi All, Can anyone tell me how to open a new window when user clicks a button? Thanks. John
3
by: Teckie03 | last post by:
Hi, does anyone know how to display a seperate browser from server process? My ASP.NET app control (ascx) has Archive button that does its own work , including updating an html page called...
3
by: Andreas Klemt | last post by:
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...
3
by: Ken Varn | last post by:
I have Page1 that does a transfer to page2. When the user is done with Page2, there is a button on Page2 that they can press to bring them back to Page1. I use Server.Transfer to navigate from...
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...
2
by: Oscar | last post by:
What's the right coding to open another aspx page within server side vb.net (not within the html) ? In case I only code Server.Execute("page2.aspx") with a VB.net Subroutine, the browser shows a...
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...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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?
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
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
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.