Machaira Posted February 21, 2008 Posted February 21, 2008 I'm sure it's something simple that I'm overlooking, but can someone tell me how to do a redirect to another page from within a web part? Thanks! Quote Here's what I'm up to.
Administrators PlausiblyDamp Posted February 22, 2008 Administrators Posted February 22, 2008 Could you not just do a Response.Redirect or Server.Transfer from within the web part? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Machaira Posted February 22, 2008 Author Posted February 22, 2008 Unfortunately neither the Response nor Server object is recognized inside a web part (that I can tell). That was the first thing I tried, of course. Sorry, I should have mentioned that. Quote Here's what I'm up to.
Administrators PlausiblyDamp Posted February 22, 2008 Administrators Posted February 22, 2008 Could you not use the httpcontext class to get to it? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Machaira Posted February 22, 2008 Author Posted February 22, 2008 Ahh, I didn't see that. Looks like that should work, thanks! Quote Here's what I'm up to.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.