Server.Transfer problem

  • Thread starter Thread starter dee
  • Start date Start date
D

dee

Inside Search.aspx I make the following call:
Server.Transfers("Table.aspx");

I'm transfered to Table.aspx and browser still shows Search.aspx in address
bar. However, I do postback within Table.aspx. The first time that there is
postback the address bar shows Table.aspx! Am I correct to assume that this
is not the right place to use Transer function, as it's showing
inconsistancy with the address bar?

Thanks.
Dee
 
That's just how Server.Transfer works. If you can live with the path
displayed in the address bar, than it's ur thing..but if you can't, than
your assumption is correct and you shouldn't use it in your particular case.

Karl
 
Besides QueryString and using Session state is there another way to go to
another page that uses some date from source page? (Now that I cant use
Transfer). Seems one could do better with ASP in this case: add a few hidden
fields and go to to target page.
 
Hi

Is there any reason why you dont want to use response.redirect in
conjunction with querystrings / sesssion vars ?

The only other way I could possibly think of is that it is supposed to be
possible to share viewsttate information betweeen pages by turning the
viewstate encryption off this does however mean that if somebody views the
source of the page they would be able to see all the viewstate information in
plain text which throws up its own security issues

HTH

Felix
 
HI Felix,
How could I access ViewState of the source page from the target page?
Thanks.

p.s. I dont want to use Session for reasons of scalibility and certain data
should be kept invisible so cant use QueryString either.
 
And dont I have to use Transfer to be able to get at the source page's form
data?
If a Redirect doesnt work then I'm still stuck with Transfer which is what
I'm trying to avoid as explained in original post.
 
Thanks Felix,
The encryption is interesting, but I dont remember ever seening it used. I
am considering a redesign where I dont postback but raher redirect to new
page. That way, I could use Transfer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top