title: How to: Redirect after document adding to a sharepoint document library
body: <p>i need to redirect the current user to a custom url after successfully uploading a document.</p>
  
  <ol>
  <li><p>the user clicks "+ new document" in the document library</p></li>
  <li><p>the user selects a local document</p></li>
  <li><p>the document gets uploaded and in that moment after it is successfully uploaded and the item is created in the list, i want to redirect the user to a custom url</p></li>
  </ol>
  
  <p>Normally after successfully uploading a document to a document library under SharePoint 2010, the user gets a modal dialog where he sees only the field "Name" with the filename.</p>
  
  <p>I want to prevent this. How could i achieve this?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Isn't it possible to redirect a User after Document uploading inside a Document Library to redirect from Upload Form to a custom page instead of Edit.aspx within ann EventReceiver?</p>
  
  <p>I am really frustated! I am now trying for over 3 days to get it working.</p>
  
  <p>Here is my sample solution:</p>
  
  <p><a href="http://www.bog1.de/downloads/errd01.zip" rel="nofollow">http://www.bog1.de/downloads/errd01.zip</a></p>
  
  <p>You must create a document library "doclib" to get it work.</p>
  
  <p>But it does not work! I have used samples from several sites. I have added the logic inside the ItemAdded event. But nothing happens. I only want to redirect the user to another page after successfully adding a document to a library. Is this such a hard problem to get it work untder sp2010?</p>