title: How to access current Sitecore item in layout .aspx, while in preview pane in the Sitecore content editor?
body: <p>I have put together an .aspx page which is the layout for a certain template. I cannot get the current item by path (i.e. by calling <code>Database.GetItem(string)</code>) while in the Sitecore preview pane, though it works fine on the web, even using the .NET <code>Request.RawUrl</code> property. </p>
  
  <p>How do I most easily get access to the current item in this context?</p>