User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 426,898 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,359 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1192 | Replies: 5
Reply
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Update Panel & Server.Transfer

  #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."
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Location: Largo Florida
Posts: 275
Reputation: serkansendur is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 23
serkansendur's Avatar
serkansendur serkansendur is offline Offline
Posting Whiz in Training

Re: Update Panel & Server.Transfer

  #2  
Mar 17th, 2008
try using cross-page posting, dont use update panel around that button.
Serkan Şendur
MCAD.NET
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Update Panel & Server.Transfer

  #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  
Join Date: Jan 2008
Location: Largo Florida
Posts: 275
Reputation: serkansendur is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 23
serkansendur's Avatar
serkansendur serkansendur is offline Offline
Posting Whiz in Training

Re: Update Panel & Server.Transfer

  #4  
Mar 18th, 2008
What especially do you want to do?
Serkan Şendur
MCAD.NET
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Update Panel & Server.Transfer

  #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  
Join Date: Aug 2008
Posts: 1
Reputation: zgar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
zgar zgar is offline Offline
Newbie Poster

Re: Update Panel & Server.Transfer

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 10:55 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC