Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 264195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:39:55+00:00 2026-05-11T22:39:55+00:00

how can i redirect to a page from sharepoint? i have this within the

  • 0

how can i redirect to a page from sharepoint?

i have this within the itemadded event receiver for a list:

SPUtility.Redirect("http://mysite", SPRedirectFlags.Default, HttpContext.Current );

but on debugging HttpContext.Current is null so it doesnt do any redirect when a list item is added.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:39:55+00:00Added an answer on May 11, 2026 at 10:39 pm

    The ItemAdded event occurs asynchronously (i.e. sometime after the item is added). It’s executing on a separate thread that doesn’t have access to the HttpContext for the current request (and therefore you won’t be able to send a response to tell the user’s browser to redirect).

    This might work in the ItemAdding event receiver – it executes on the same thread that adds the item to a the list. I’m not sure that it’s safe to perform a redirect since it might prevent other underlying code to be executed in SharePoint.

    This was echoed by Lars Fastrup in one of your previous questions (redirect using itemreceiver sharepoint). Consider implementing the solution he recommends there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how i can redirect from my login page to home page after the login
How can I redirect the user from one page to another using jQuery or
How can I redirect a page request in Go running on GAE, so that
I would like to know how I can redirect to a certain page (during
How can I perform a redirect with Server.Transfer() to the same page that is
I have a url redirect controller called go. It can redirect topic model and
How can I redirect www.mysite.com/picture/12345 to www.mysite.com/picture/some-picture-title/12345? Right now, /picture/12345 is rewritten on picture.aspx?picid=12345
how can i redirect index.php?search= to the base url? I tried it with this
I want to redirect JSP page from one servlet. All JSP pages are under
I want to redirect to a page from a controller in zend. Before redirection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.