How do I read #2 at the end of a URL?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/298503/how-can-you-check-for-a-hash-in-a-url-using-javascript">How can you check for a #hash in a URL using JavaScript?</a>  </p>
</blockquote>



<p>Currently I am generating Urls that look like this:</p>

<p>InspectionPhotos.aspx?inspectionId=10001649#/2</p>

<p>The #2 is for a photogallery plugin, and this would mean go the second photo.</p>

<p>I would like to show a div only if there is a #/[anynumber] but if its just
InspectionPhotos.aspx?inspectionId=10001649
then not show anything.</p>

<p>How could I do this check? Either asp.net on pageload or a client side javascript would be fine.</p>

<p>Thanks.</p>
