473,406 Members | 2,259 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,406 software developers and data experts.

Server.Transfer with url change

Hi;

I would like to do the equivilent of a Server.Transfer() so I can pass data
along in the context. But I want the new url to show like a
Response.Redirect() - but that loses the data I stuffed in Context.

What I need is a way to a) have the url of the page redirected to show up,
b) pass data to the redirected page, and c) have the passed data go away once
the new page is up. I don't want to use Session because if for some reason it
does not get to the second page, that data is left connected to the Session.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Jun 21 '06 #1
3 4421
the url in the browser winow, is the url of the last request. if you do a
server transfer, all you are doing is calling different backend code to
process the request, not changing the request. there is no way to change the
url in the browser without doing a request to that url (think of the
security problems if you could).

so the only way for the server to change the url in the browser is with a
redirect.

what you shoudl do is tie the data to ticket, and pass the ticket in the url
string in the redirect. the ticket should only be good for one fetch and
should have a timeout. session should be fine for this.
-- bruce (sqlwork.com)

"David Thielen" <th*****@nospam.nospam> wrote in message
news:AD**********************************@microsof t.com...
Hi;

I would like to do the equivilent of a Server.Transfer() so I can pass
data
along in the context. But I want the new url to show like a
Response.Redirect() - but that loses the data I stuffed in Context.

What I need is a way to a) have the url of the page redirected to show up,
b) pass data to the redirected page, and c) have the passed data go away
once
the new page is up. I don't want to use Session because if for some reason
it
does not get to the second page, that data is left connected to the
Session.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Jun 21 '06 #2
perfect - thanks

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

"bruce barker (sqlwork.com)" wrote:
the url in the browser winow, is the url of the last request. if you do a
server transfer, all you are doing is calling different backend code to
process the request, not changing the request. there is no way to change the
url in the browser without doing a request to that url (think of the
security problems if you could).

so the only way for the server to change the url in the browser is with a
redirect.

what you shoudl do is tie the data to ticket, and pass the ticket in the url
string in the redirect. the ticket should only be good for one fetch and
should have a timeout. session should be fine for this.
-- bruce (sqlwork.com)

"David Thielen" <th*****@nospam.nospam> wrote in message
news:AD**********************************@microsof t.com...
Hi;

I would like to do the equivilent of a Server.Transfer() so I can pass
data
along in the context. But I want the new url to show like a
Response.Redirect() - but that loses the data I stuffed in Context.

What I need is a way to a) have the url of the page redirected to show up,
b) pass data to the redirected page, and c) have the passed data go away
once
the new page is up. I don't want to use Session because if for some reason
it
does not get to the second page, that data is left connected to the
Session.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com


Jun 21 '06 #3
E.g
TextBox txt=(TextBox) PreviousPage.FindControl("txtname");
with this way you can access the data which store previous page.
"David Thielen" wrote:
perfect - thanks

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

"bruce barker (sqlwork.com)" wrote:
the url in the browser winow, is the url of the last request. if you do a
server transfer, all you are doing is calling different backend code to
process the request, not changing the request. there is no way to change the
url in the browser without doing a request to that url (think of the
security problems if you could).

so the only way for the server to change the url in the browser is with a
redirect.

what you shoudl do is tie the data to ticket, and pass the ticket in the url
string in the redirect. the ticket should only be good for one fetch and
should have a timeout. session should be fine for this.
-- bruce (sqlwork.com)

"David Thielen" <th*****@nospam.nospam> wrote in message
news:AD**********************************@microsof t.com...
Hi;

I would like to do the equivilent of a Server.Transfer() so I can pass
data
along in the context. But I want the new url to show like a
Response.Redirect() - but that loses the data I stuffed in Context.

What I need is a way to a) have the url of the page redirected to show up,
b) pass data to the redirected page, and c) have the passed data go away
once
the new page is up. I don't want to use Session because if for some reason
it
does not get to the second page, that data is left connected to the
Session.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com


Jun 22 '06 #4

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

Similar topics

4
by: rcmail14872 | last post by:
I have MS SQL Server 2000 evaluation version on my desktop PC. I have the SQL Server client tools (only) on the laptop. The two computers are networked. I had an Access MDB database on my laptop,...
4
by: Bob H | last post by:
Hi, I'm aware of the different ways to pass variables between ASP.Net pages. For pages that need to pass a variable, we're using the server.transfer method. For others, we're using...
2
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
4
by: Keith Patrick | last post by:
I have an app where a Shockwave splash animation starts off my app and then sets its parent iframe's src to the value of a default page "BasicReports". BasicReports has a link to another report...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
5
by: Richard | last post by:
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply...
8
by: p3t3r | last post by:
I am using .NET2 and have a number of aspx pages. On each page is a LinkButton that performs a server.transfer() to another page. If we use page names A,B,C,D,E as an example. I start on page A...
10
by: John Salerno | last post by:
I always read about how you need to set certain file permissions (for cgi files, for example), but it's never been clear to me *how* you do this. I know you can run the line chmod 755...
0
Frinavale
by: Frinavale | last post by:
Platform: WindowsXP and IIS Language: Asp .NET (using Visual Basic back end) I'm not sure if anyone will be able to understand my code because its written using ASPX and Visual Basic back end. ...
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?
0
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,...
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
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
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...

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.