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 373,374 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 3,791 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: 719 | Replies: 4
Reply
Join Date: Dec 2007
Posts: 286
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: istanbul
Posts: 264
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: 286
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: istanbul
Posts: 264
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: 286
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  
Reply

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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Other Threads in the ASP.NET Forum

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