Update Panel & Server.Transfer

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Update Panel & Server.Transfer

 
0
  #1
Mar 16th, 2008
Ok, so here is the problem. I googled this and this is a known issue, but I haven't seen any good solutions.

Let's say some clicks a button in an Update Panel (VS 2008). Let's say that button results in a Server.Transfer("somepage.aspx"). It doesn't work. Server.Transfer cannot be called from within an Update Panel.

So, how do I transfer the person to a new page and pass values??!

Thanks,
Eric
--
"Dummy."
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: Update Panel & Server.Transfer

 
0
  #2
Mar 17th, 2008
try using cross-page posting, dont use update panel around that button.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Update Panel & Server.Transfer

 
0
  #3
Mar 17th, 2008
So how does that work? Because only in certain circumstances do I want to transfer the user to another page (and pass some values along)... othertimes I keep the user on the current page and update stuff within the panel?
--
"Dummy."
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: Update Panel & Server.Transfer

 
0
  #4
Mar 18th, 2008
What especially do you want to do?
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Update Panel & Server.Transfer

 
0
  #5
Mar 18th, 2008
Ah, I figured this one out. I guess if you want to use a server.transfer within an updatepanel you need to first ScriptManager1.RegisterPostBackControl(WhateverButton) so that the button causes the entire page to update.
--
"Dummy."
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1
Reputation: zgar is an unknown quantity at this point 
Solved Threads: 0
zgar zgar is offline Offline
Newbie Poster

Re: Update Panel & Server.Transfer

 
0
  #6
Aug 26th, 2008
I know this is an old thread, but I just wanted to thank you just in case you come across this. I had been having the exact problem and couldn't find a solution until I stumbled on this page. Thank you for taking the time to come back and answer your own question, it really helped me out!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC